383 uint8_t message_data[8];
416 uint8_t rx_fifo_number;
err_t hal_can_receive(handle_t *handle, hal_can_receive_message_struct *receive_message)
Get data from the RX FIFO.
err_t hal_can_set_frequency(handle_t *handle, hal_can_config_t *config, hal_can_filter_config_t *filter_config)
Set CAN module frequency.
void hal_can_configure_default(hal_can_config_t *config)
Configure CAN HAL configuration structure.
err_t hal_can_init(handle_t *handle, hal_can_config_t *config, hal_can_filter_config_t *filter_config)
Initialize CAN module.
void hal_can_filter_configure_default(hal_can_filter_config_t *filter_config)
Configure CAN HAL filter configuration structure.
err_t hal_can_get_frequency(handle_t *handle)
Get CAN module frequency.
void hal_can_transmission_stop(handle_t *handle)
Stop transmit operation.
err_t hal_can_transmit(handle_t *handle, hal_can_transmit_message_struct *transmit_message)
Transmit data to the first free TX mailbox.
err_t hal_can_close(handle_t *handle)
Close CAN HAL object.
err_t hal_can_set_filter(handle_t *handle, hal_can_config_t *config, hal_can_filter_config_t *filter_config)
Initialize CAN module filter.
err_t hal_can_open(handle_t *handle, bool hal_obj_open_state)
Open the CAN HAL object.
err_t hal_can_set_mode(handle_t *handle, hal_can_config_t *config, hal_can_filter_config_t *filter_config)
Set CAN module mode.
err_t hal_can_get_mode(handle_t *handle)
Get CAN module mode.
hal_can_frame_type_t
Definition hal_can.h:125
@ HAL_CAN_FRAME_TYPE_RTR
Definition hal_can.h:127
@ HAL_CAN_FRAME_TYPE_DATA
Definition hal_can.h:126
hal_can_err_t
Definition hal_can.h:71
@ HAL_CAN_SUCCESS
Definition hal_can.h:72
@ HAL_CAN_ERROR
Definition hal_can.h:75
@ HAL_CAN_WRONG_PINS
Definition hal_can.h:73
@ HAL_CAN_MODULE_ERROR
Definition hal_can.h:74
hal_can_filter_mode_t
Definition hal_can.h:134
@ HAL_CAN_FILTER_MODE_IDMASK
Definition hal_can.h:135
@ HAL_CAN_FILTER_MODE_IDLIST
Definition hal_can.h:136
hal_can_state_t
Definition hal_can.h:105
@ HAL_CAN_STATE_LISTENING
Definition hal_can.h:108
@ HAL_CAN_STATE_ERROR
Definition hal_can.h:109
@ HAL_CAN_STATE_READY
Definition hal_can.h:107
@ HAL_CAN_STATE_RESET
Definition hal_can.h:106
hal_can_filter_activation_t
Definition hal_can.h:191
@ HAL_CAN_FILTER_DISABLE
Definition hal_can.h:192
@ HAL_CAN_FILTER_ENABLE
Definition hal_can.h:193
hal_can_filter_fifo_t
Definition hal_can.h:152
@ HAL_CAN_FILTER_FIFO16
Definition hal_can.h:169
@ HAL_CAN_FILTER_FIFO30
Definition hal_can.h:183
@ HAL_CAN_FILTER_FIFO13
Definition hal_can.h:166
@ HAL_CAN_FILTER_FIFO4
Definition hal_can.h:157
@ HAL_CAN_FILTER_FIFO14
Definition hal_can.h:167
@ HAL_CAN_FILTER_FIFO15
Definition hal_can.h:168
@ HAL_CAN_FILTER_FIFO7
Definition hal_can.h:160
@ HAL_CAN_FILTER_FIFO19
Definition hal_can.h:172
@ HAL_CAN_FILTER_FIFO21
Definition hal_can.h:174
@ HAL_CAN_FILTER_FIFO23
Definition hal_can.h:176
@ HAL_CAN_FILTER_FIFO26
Definition hal_can.h:179
@ HAL_CAN_FILTER_FIFO18
Definition hal_can.h:171
@ HAL_CAN_FILTER_FIFO27
Definition hal_can.h:180
@ HAL_CAN_FILTER_FIFO31
Definition hal_can.h:184
@ HAL_CAN_FILTER_FIFO8
Definition hal_can.h:161
@ HAL_CAN_FILTER_FIFO24
Definition hal_can.h:177
@ HAL_CAN_FILTER_FIFO10
Definition hal_can.h:163
@ HAL_CAN_FILTER_FIFO25
Definition hal_can.h:178
@ HAL_CAN_FILTER_FIFO9
Definition hal_can.h:162
@ HAL_CAN_FILTER_FIFO6
Definition hal_can.h:159
@ HAL_CAN_FILTER_FIFO1
Definition hal_can.h:154
@ HAL_CAN_FILTER_FIFO29
Definition hal_can.h:182
@ HAL_CAN_FILTER_FIFO17
Definition hal_can.h:170
@ HAL_CAN_FILTER_FIFO12
Definition hal_can.h:165
@ HAL_CAN_FILTER_FIFO2
Definition hal_can.h:155
@ HAL_CAN_FILTER_FIFO3
Definition hal_can.h:156
@ HAL_CAN_FILTER_FIFO5
Definition hal_can.h:158
@ HAL_CAN_FILTER_FIFO20
Definition hal_can.h:173
@ HAL_CAN_FILTER_FIFO22
Definition hal_can.h:175
@ HAL_CAN_FILTER_FIFO11
Definition hal_can.h:164
@ HAL_CAN_FILTER_FIFO28
Definition hal_can.h:181
@ HAL_CAN_FILTER_FIFO0
Definition hal_can.h:153
hal_can_frame_format_t
Definition hal_can.h:116
@ HAL_CAN_FRAME_FORMAT_STANDARD_11BITS
Definition hal_can.h:117
@ HAL_CAN_FRAME_FORMAT_EXTENDED_29BITS
Definition hal_can.h:118
hal_can_filter_scale_t
Definition hal_can.h:143
@ HAL_CAN_FILTER_SCALE_32BIT
Definition hal_can.h:145
@ HAL_CAN_FILTER_SCALE_16BIT
Definition hal_can.h:144
hal_can_mode_t
Definition hal_can.h:82
@ HAL_CAN_MODE_STOP
Definition hal_can.h:93
@ HAL_CAN_MODE_LISTENALL
Definition hal_can.h:96
@ HAL_CAN_MODE_DOZE
Definition hal_can.h:92
@ HAL_CAN_MODE_LOOPBACK
Definition hal_can.h:85
@ HAL_CAN_MODE_CONFIGURATION
Definition hal_can.h:98
@ HAL_CAN_MODE_DISABLE
Definition hal_can.h:86
@ HAL_CAN_MODE_NORMAL
Definition hal_can.h:84
@ HAL_CAN_MODE_FREEZE
Definition hal_can.h:94
@ HAL_CAN_MODE_LOOPBACK_SILENT
Definition hal_can.h:89
@ HAL_CAN_MODE_LISTENONLY
Definition hal_can.h:91
@ HAL_CAN_MODE_SILENT
Definition hal_can.h:88
HAL target macros and typedefs.
int32_t err_t
Definition hal_target.h:64
hal_ll_pin_name_t hal_pin_name_t
Definition hal_target.h:60
CAN HAL init configuration structure.
Definition hal_can.h:336
hal_pin_name_t tx_pin
Definition hal_can.h:337
hal_pin_name_t rx_pin
Definition hal_can.h:338
hal_can_mode_t mode
Definition hal_can.h:339
uint32_t frequency
Definition hal_can.h:340
CAN HAL filter init configuration structure.
Definition hal_can.h:287
uint32_t can_filter_id
Definition hal_can.h:293
hal_can_filter_scale_t can_filter_scale
Definition hal_can.h:306
uint16_t can_filter_id_low
Definition hal_can.h:290
hal_can_filter_mode_t can_filter_mode
Definition hal_can.h:305
hal_can_filter_fifo_t can_filter_fifo
Definition hal_can.h:307
uint16_t can_filter_mask_id_low
Definition hal_can.h:297
uint32_t can_filter_mask_id
Definition hal_can.h:300
uint16_t can_filter_id_high
Definition hal_can.h:291
hal_can_filter_activation_t can_filter_enable
Definition hal_can.h:304
uint16_t can_filter_mask_id_high
Definition hal_can.h:298
uint8_t can_filter_bank
Definition hal_can.h:302
bool init_state
Definition hal_can.h:64
handle_t * hal_can_handle
Definition hal_can.h:62
handle_t * drv_can_handle
Definition hal_can.h:63
CAN HAL message structure.
Definition hal_can.h:372
uint16_t std_id
Definition hal_can.h:375
uint8_t data_len
Definition hal_can.h:382
uint16_t ext_id
Definition hal_can.h:376
hal_can_frame_format_t frame_format
Definition hal_can.h:380
hal_can_frame_type_t frame_type
Definition hal_can.h:381
CAN HAL receive message structure.
Definition hal_can.h:414
CAN HAL context structure.
Definition hal_can.h:354
handle_t handle
Definition hal_can.h:355
hal_can_filter_config_t filter_config
Definition hal_can.h:357
hal_can_config_t config
Definition hal_can.h:356
CAN HAL transmit message structure.
Definition hal_can.h:398