MG32F157 Standard Peripherals Firmware Library
Data Fields
CAN_FilterInitTypeDef Struct Reference

CAN Filter Config structure definition. More...

#include <mg32f157_can.h>

Data Fields

uint8_t Filter_Mode
 
uint8_t Filter_FrameFormat
 
uint8_t Filter1_Type
 
uint8_t Filter1_RTRCmd
 
uint32_t Filter1_Code
 
uint32_t Filter1_Mask
 
uint8_t Filter2_Type
 
uint8_t Filter2_RTRCmd
 
uint32_t Filter2_Code
 
uint32_t Filter2_Mask
 

Detailed Description

CAN Filter Config structure definition.

Field Documentation

◆ Filter1_Code

uint32_t Filter1_Code

Specifies CAN Filter1 Code. It ranges from 0x0 to 0xFFFFFFFF.

◆ Filter1_Mask

uint32_t Filter1_Mask

Specifies CAN Filter1 Mask. It ranges from 0x0 to 0xFFFFFFFF.

◆ Filter1_RTRCmd

uint8_t Filter1_RTRCmd

Specifies whether the filter1 filters RTR bits. This parameter can be set either to ENABLE or DISABLE.

◆ Filter1_Type

uint8_t Filter1_Type

Specifies CAN Filter1 Type, remote frame or data frame. This parameter can be a value of CAN_Filter_Type

◆ Filter2_Code

uint32_t Filter2_Code

Specifies CAN Filter2 Code. It ranges from 0x0 to 0xFFFFFFFF.

◆ Filter2_Mask

uint32_t Filter2_Mask

Specifies CAN Filter2 Mask. It ranges from 0x0 to 0xFFFFFFFF.

◆ Filter2_RTRCmd

uint8_t Filter2_RTRCmd

Specifies whether the filter1 filters RTR bits. This parameter can be set either to ENABLE or DISABLE.

◆ Filter2_Type

uint8_t Filter2_Type

Specifies CAN Filter2 Type, remote frame or data frame. This parameter can be a value of CAN_Filter_Type

◆ Filter_FrameFormat

uint8_t Filter_FrameFormat

Specifies CAN Filter1 Format, Standard Frame or Extended Frame This parameter can be a value of CAN_Filter_FrameFormat

◆ Filter_Mode

uint8_t Filter_Mode

Specifies CAN Filter Mode, dual filter or single filter This parameter can be a value of CAN_Filter_Mode


The documentation for this struct was generated from the following file: