Astra MCU SDK Peripheral Driver Library
Enumerated Types

CAN enums

enum can_instance_en { CAN0 = 0, CAN_COUNT }
enum can_status_en
enum can_transfer_status_en
enum can_frame_format_en
enum can_rx_frame_type_en
enum can_id_type_en
enum can_rtr_type_en
enum can_operating_mode_en
enum can_bus_state_en
enum can_interrupt_en

can_instance_en

CAN controller instance identifier enumeration.

Enumerator
CAN0 

CAN instance 0.

CAN_COUNT 

Total number of CAN instances.

can_status_en

CAN API status codes.

Enumerator
CAN_OK 

Operation succeeded.

CAN_ERROR 

Internal or unspecified driver error.

CAN_ERROR_PARAMETER 

Invalid parameter.

CAN_ERROR_BUSY 

Driver busy.

CAN_ERROR_TIMEOUT 

Operation timeout.

CAN_ERROR_UNSUPPORTED 

Unsupported operation.

CAN_ERROR_NOT_INITIALIZED 

Instance not initialized/configured.

CAN_ERROR_NOT_RUNNING 

Controller not running.

CAN_ERROR_NO_RESOURCE 

No resource available.

CAN_ERROR_TX_FAILED 

TX failed.

CAN_ERROR_RX_FAILED 

RX failed.

CAN_ERROR_DMA_FAILED 

DMA failed.

CAN_ERROR_BUS_OFF 

Bus-off state.

CAN_ERROR_ECC 

ECC/parity error.

can_transfer_status_en

Transfer completion status codes for callback reporting.

can_frame_format_en

Classical CAN or CAN FD frame format selector.

can_rx_frame_type_en

Raw hardware frame-type encoding in RX descriptors.

can_id_type_en

Standard (11-bit) or extended (29-bit) identifier type.

Enumerator
CAN_ID_STANDARD 

11-bit standard identifier.

CAN_ID_EXTENDED 

29-bit extended identifier.

can_rtr_type_en

Data frame or remote frame selector.

can_operating_mode_en

Controller operating mode.

can_bus_state_en

CAN bus error state classification.

can_interrupt_en

Interrupt mask bits used by CAN interrupt control APIs.