mikroSDK Reference Manual
|
CAN filter init configuration structure. More...
Data Fields | |
union { | |
struct { | |
uint16_t can_filter_id_low | |
uint16_t can_filter_id_high | |
} | |
uint32_t can_filter_id | |
}; | |
union { | |
struct { | |
uint16_t can_filter_mask_id_low | |
uint16_t can_filter_mask_id_high | |
} | |
uint32_t can_filter_mask_id | |
}; | |
uint8_t | can_filter_bank |
can_frame_type_t | can_filter_frame_type [4] |
can_filter_activation_t | can_filter_enable |
can_filter_mode_t | can_filter_mode |
can_filter_scale_t | can_filter_scale |
can_filter_fifo_t | can_filter_fifo |
User needs to specify values herein.
16-bit ID and Mask structure variables for ARM MCUs: CAN_FILTER_MODE_IDMASK and CAN_FILTER_SCALE_32BIT - user is configuring 1 32-bit filter with mask:
CAN_FILTER_MODE_IDLIST and CAN_FILTER_SCALE_32BIT - you user is configuring 2 32-bit filters without masks:
CAN_FILTER_MODE_IDMASK and CAN_FILTER_SCALE_16BIT - user is configuring 2 16-bit filters with masks:
CAN_FILTER_MODE_IDLIST and CAN_FILTER_SCALE_16BIT - user is configuring 4 16-bit filters:
16-bit ID and Mask structure variables for PIC MCUs:
Example
uint16_t can_filter_config_t::can_filter_id_low |
16-bit Filter ID.
uint16_t can_filter_config_t::can_filter_id_high |
16-bit Filter ID.
uint32_t can_filter_config_t::can_filter_id |
32-bit Filter ID.
uint16_t can_filter_config_t::can_filter_mask_id_low |
16-bit Filter ID or Filter Mask.
uint16_t can_filter_config_t::can_filter_mask_id_high |
16-bit Filter ID or Filter Mask.
uint32_t can_filter_config_t::can_filter_mask_id |
32-bit Filter ID or Filter Mask.
uint8_t can_filter_config_t::can_filter_bank |
Filter bank.
can_frame_type_t can_filter_config_t::can_filter_frame_type[4] |
Type of frame, data or remote.
can_filter_activation_t can_filter_config_t::can_filter_enable |
Filter activation status.
can_filter_mode_t can_filter_config_t::can_filter_mode |
Filter mode.
can_filter_scale_t can_filter_config_t::can_filter_scale |
Filter scale.
can_filter_fifo_t can_filter_config_t::can_filter_fifo |
Filter-to-FIFO mapping.