![]() | Astra MCU SDK Peripheral Driver Library |
Initialize a CAN instance and reset software context.
Return: can_status_en.
Configure resources and runtime controller state.
Return values: CAN_OK, CAN_ERROR_PARAMETER, CAN_ERROR_NOT_INITIALIZED, CAN_ERROR_BUSY.
Release resources and deinitialize CAN instance.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Enable controller operation and bus participation.
Return values: CAN_OK, CAN_ERROR_PARAMETER, CAN_ERROR_NOT_INITIALIZED, CAN_ERROR_BUS_OFF.
Disable controller operation.
Return values: CAN_OK, CAN_ERROR_PARAMETER, CAN_ERROR_NOT_INITIALIZED.
Queue a CAN/CAN FD frame for immediate or scheduled transmission.
Return values: CAN_OK, CAN_ERROR_NOT_RUNNING, CAN_ERROR_NOT_INITIALIZED, CAN_ERROR_NO_RESOURCE, CAN_ERROR_PARAMETER.
Install an RX filter and register callback subscription.
Return values: CAN_OK, CAN_ERROR_NO_RESOURCE, CAN_ERROR_PARAMETER, CAN_ERROR_NOT_INITIALIZED.
Remove a previously installed RX subscription.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Update classical/FD bitrates and sampling points.
Return values: CAN_OK, CAN_ERROR_PARAMETER, CAN_ERROR_BUSY, CAN_ERROR_NOT_INITIALIZED, CAN_ERROR_UNSUPPORTED.
Register callback for timestamp sample events.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Read timestamp and timestamp resolution.
Return values: CAN_OK, CAN_ERROR_TIMEOUT, CAN_ERROR_PARAMETER.
Attach externally allocated aligned driver buffer block.
Return values: CAN_OK, CAN_ERROR_PARAMETER, CAN_ERROR_BUSY.
Enable selected hardware interrupt mask bits.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Enable all hardware interrupts.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Disable selected hardware interrupt mask bits.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Disable all hardware interrupts.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Clear selected pending interrupt bits.
Return values: CAN_OK, CAN_ERROR_PARAMETER.
Clear all pending interrupts.
Return values: CAN_OK, CAN_ERROR_PARAMETER.