TCAN4550  1p2
TCAN4x5x_Data_Structs.h File Reference

Go to the source code of this file.

Data Structures

struct  TCAN4x5x_MCAN_Data_Timing_Simple
 Used to setup the data timing parameters of the MCAN module This is a simplified struct, requiring only the prescaler value (1:x), number of time quanta before and after the sample point. More...
 
struct  TCAN4x5x_MCAN_Data_Timing_Raw
 Used to setup the timing parameters of the MCAN module This is the raw MCAN form of the struct which takes in the same values as the actual Bosch MCAN core. More...
 
struct  TCAN4x5x_MCAN_Nominal_Timing_Simple
 Used to setup the nominal timing parameters of the MCAN module This is a simplified struct, requiring only the prescaler value (1:x), number of time quanta before and after the sample point. More...
 
struct  TCAN4x5x_MCAN_Nominal_Timing_Raw
 Used to setup the nominal timing parameters of the MCAN module This is the raw MCAN form of the struct which takes in the same values as the actual Bosch MCAN core. More...
 
struct  TCAN4x5x_MRAM_Config
 Defines the number of MRAM elements and the size of the elements. More...
 
struct  TCAN4x5x_MCAN_CCCR_Config
 struct containing the bit fields of the MCAN CCCR register More...
 
struct  TCAN4x5x_MCAN_Interrupts
 Struct containing the MCAN interrupt bit field. More...
 
struct  TCAN4x5x_MCAN_Interrupt_Enable
 Struct containing the MCAN interrupt enable bit field. More...
 
struct  TCAN4x5x_MCAN_RX_Header
 CAN message header. More...
 
struct  TCAN4x5x_MCAN_TX_Header
 CAN message header for transmitted messages. More...
 
struct  TCAN4x5x_MCAN_SID_Filter
 Standard ID filter struct. More...
 
struct  TCAN4x5x_MCAN_XID_Filter
 Extended ID filter struct. More...
 
struct  TCAN4x5x_MCAN_Global_Filter_Configuration
 Struct containing the register values for the Global Filter Configuration Register. More...
 
struct  TCAN4x5x_Device_Interrupts
 Struct containing the device interrupt bit field. More...
 
struct  TCAN4x5x_Device_Interrupt_Enable
 Struct containing the device interrupt enable bit field. More...
 
struct  TCAN4x5x_DEV_CONFIG
 

Enumerations

enum  TCAN4x5x_MRAM_Element_Data_Size {
  MRAM_8_Byte_Data = 0, MRAM_12_Byte_Data = 0x1, MRAM_16_Byte_Data = 0x2, MRAM_20_Byte_Data = 0x3,
  MRAM_24_Byte_Data = 0x4, MRAM_32_Byte_Data = 0x5, MRAM_48_Byte_Data = 0x6, MRAM_64_Byte_Data = 0x7
}
 Data payload defines for the different MRAM sections, used by the TCAN4x5x_MRAM_Config struct. More...
 
enum  TCAN4x5x_SID_SFEC_Values {
  TCAN4x5x_SID_SFEC_DISABLED = 0x0, TCAN4x5x_SID_SFEC_STORERX0 = 0x1, TCAN4x5x_SID_SFEC_STORERX1 = 0x2, TCAN4x5x_SID_SFEC_REJECTMATCH = 0x3,
  TCAN4x5x_SID_SFEC_PRIORITY = 0x4, TCAN4x5x_SID_SFEC_PRIORITYSTORERX0 = 0x5, TCAN4x5x_SID_SFEC_PRIORITYSTORERX1 = 0x6, TCAN4x5x_SID_SFEC_STORERXBUFORDEBUG = 0x7
}
 
enum  TCAN4x5x_SID_SFT_Values { TCAN4x5x_SID_SFT_DISABLED = 0x3, TCAN4x5x_SID_SFT_CLASSIC = 0x2, TCAN4x5x_SID_SFT_DUALID = 0x1, TCAN4x5x_SID_SFT_RANGE = 0x0 }
 
enum  TCAN4x5x_XID_EFEC_Values {
  TCAN4x5x_XID_EFEC_DISABLED = 0x0, TCAN4x5x_XID_EFEC_STORERX0 = 0x1, TCAN4x5x_XID_EFEC_STORERX1 = 0x2, TCAN4x5x_XID_EFEC_REJECTMATCH = 0x3,
  TCAN4x5x_XID_EFEC_PRIORITY = 0x4, TCAN4x5x_XID_EFEC_PRIORITYSTORERX0 = 0x5, TCAN4x5x_XID_EFEC_PRIORITYSTORERX1 = 0x6, TCAN4x5x_XID_EFEC_STORERXBUFORDEBUG = 0x7
}
 
enum  TCAN4x5x_XID_EFT_Values { TCAN4x5x_XID_EFT_RANGENOMASK = 0x3, TCAN4x5x_XID_EFT_CLASSIC = 0x2, TCAN4x5x_XID_EFT_DUALID = 0x1, TCAN4x5x_XID_EFT_RANGE = 0x0 }
 
enum  TCAN4x5x_GFC_NO_MATCH_BEHAVIOR { TCAN4x5x_GFC_ACCEPT_INTO_RXFIFO0 = 0, TCAN4x5x_GFC_ACCEPT_INTO_RXFIFO1 = 1, TCAN4x5x_GFC_REJECT = 2 }
 
enum  TCAN4x5x_DEV_CONFIG_GPO1_CONFIG { TCAN4x5x_DEV_CONFIG_GPO1_SPI_FAULT_INT = 0, TCAN4x5x_DEV_CONFIG_GPO1_MCAN_INT1 = 1, TCAN4x5x_DEV_CONFIG_GPO1_UNDER_VOLTAGE_OR_THERMAL_INT = 2 }
 
enum  TCAN4x5x_DEV_CONFIG_GPIO1_CONFIG { TCAN4x5x_DEV_CONFIG_GPIO1_CONFIG_GPO = 0, TCAN4x5x_DEV_CONFIG_GPIO1_CONFIG_WATCHDOG_INPUT = 2 }
 
enum  TCAN4x5x_DEV_CONFIG_WDT_ACTION { TCAN4x5x_DEV_CONFIG_WDT_ACTION_nINT = 0, TCAN4x5x_DEV_CONFIG_WDT_ACTION_PULSE_INH = 1, TCAN4x5x_DEV_CONFIG_WDT_ACTION_PULSE_WDT_OUTPUT = 2 }
 
enum  TCAN4x5x_DEV_CONFIG_GPO2_CONFIG { TCAN4x5x_DEV_CONFIG_GPO2_NO_ACTION = 0, TCAN4x5x_DEV_CONFIG_GPO2_MCAN_INT0 = 1, TCAN4x5x_DEV_CONFIG_GPO2_WATCHDOG = 2, TCAN4x5x_DEV_CONFIG_GPO2_MIRROR_INT = 3 }
 
enum  TCAN4x5x_DEV_CONFIG_WAKE_CONFIG { TCAN4x5x_DEV_CONFIG_WAKE_DISABLED = 0, TCAN4x5x_DEV_CONFIG_WAKE_RISING_EDGE = 1, TCAN4x5x_DEV_CONFIG_WAKE_FALLING_EDGE = 2, TCAN4x5x_DEV_CONFIG_WAKE_BOTH_EDGES = 3 }
 

Enumeration Type Documentation

◆ TCAN4x5x_DEV_CONFIG_GPIO1_CONFIG

Enumerator
TCAN4x5x_DEV_CONFIG_GPIO1_CONFIG_GPO 
TCAN4x5x_DEV_CONFIG_GPIO1_CONFIG_WATCHDOG_INPUT 

Definition at line 1000 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_DEV_CONFIG_GPO1_CONFIG

Enumerator
TCAN4x5x_DEV_CONFIG_GPO1_SPI_FAULT_INT 
TCAN4x5x_DEV_CONFIG_GPO1_MCAN_INT1 
TCAN4x5x_DEV_CONFIG_GPO1_UNDER_VOLTAGE_OR_THERMAL_INT 

Definition at line 993 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_DEV_CONFIG_GPO2_CONFIG

Enumerator
TCAN4x5x_DEV_CONFIG_GPO2_NO_ACTION 
TCAN4x5x_DEV_CONFIG_GPO2_MCAN_INT0 
TCAN4x5x_DEV_CONFIG_GPO2_WATCHDOG 
TCAN4x5x_DEV_CONFIG_GPO2_MIRROR_INT 

Definition at line 1013 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_DEV_CONFIG_WAKE_CONFIG

Enumerator
TCAN4x5x_DEV_CONFIG_WAKE_DISABLED 
TCAN4x5x_DEV_CONFIG_WAKE_RISING_EDGE 
TCAN4x5x_DEV_CONFIG_WAKE_FALLING_EDGE 
TCAN4x5x_DEV_CONFIG_WAKE_BOTH_EDGES 

Definition at line 1021 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_DEV_CONFIG_WDT_ACTION

Enumerator
TCAN4x5x_DEV_CONFIG_WDT_ACTION_nINT 
TCAN4x5x_DEV_CONFIG_WDT_ACTION_PULSE_INH 
TCAN4x5x_DEV_CONFIG_WDT_ACTION_PULSE_WDT_OUTPUT 

Definition at line 1006 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_GFC_NO_MATCH_BEHAVIOR

Enumerator
TCAN4x5x_GFC_ACCEPT_INTO_RXFIFO0 
TCAN4x5x_GFC_ACCEPT_INTO_RXFIFO1 
TCAN4x5x_GFC_REJECT 

Definition at line 741 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_MRAM_Element_Data_Size

Data payload defines for the different MRAM sections, used by the TCAN4x5x_MRAM_Config struct.

Enumerator
MRAM_8_Byte_Data 

8 bytes of data payload

MRAM_12_Byte_Data 

12 bytes of data payload

MRAM_16_Byte_Data 

16 bytes of data payload

MRAM_20_Byte_Data 

20 bytes of data payload

MRAM_24_Byte_Data 

24 bytes of data payload

MRAM_32_Byte_Data 

32 bytes of data payload

MRAM_48_Byte_Data 

48 bytes of data payload

MRAM_64_Byte_Data 

64 bytes of data payload

Definition at line 154 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_SID_SFEC_Values

Enumerator
TCAN4x5x_SID_SFEC_DISABLED 

Disabled filter. This filter will do nothing if it matches a packet.

TCAN4x5x_SID_SFEC_STORERX0 

Store in RX FIFO 0 if the filter matches the incoming message.

TCAN4x5x_SID_SFEC_STORERX1 

Store in RX FIFO 1 if the filter matches the incoming message.

TCAN4x5x_SID_SFEC_REJECTMATCH 

Reject the packet (do not store, do not notify MCU) if the filter matches the incoming message.

TCAN4x5x_SID_SFEC_PRIORITY 

Store in default location but set a high priority message interrupt if the filter matches the incoming message.

TCAN4x5x_SID_SFEC_PRIORITYSTORERX0 

Store in RX FIFO 0 and set a high priority message interrupt if the filter matches the incoming message.

TCAN4x5x_SID_SFEC_PRIORITYSTORERX1 

Store in RX FIFO 1 and set a high priority message interrupt if the filter matches the incoming message.

TCAN4x5x_SID_SFEC_STORERXBUFORDEBUG 

Store in RX Buffer for debug if the filter matches the incoming message. SFT is ignored if this is selected.

Definition at line 600 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_SID_SFT_Values

Enumerator
TCAN4x5x_SID_SFT_DISABLED 

Disabled filter. This filter will match nothing.

TCAN4x5x_SID_SFT_CLASSIC 

Classic filter with SFID1 as the ID to match, and SFID2 as the bit mask that applies to SFID1.

TCAN4x5x_SID_SFT_DUALID 

Dual ID filter, where both SFID1 and SFID2 hold IDs that can match (must match exactly)

TCAN4x5x_SID_SFT_RANGE 

Range Filter. SFID1 holds the start address, and SFID2 holds the end address. Any address in between will match.

Definition at line 627 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_XID_EFEC_Values

Enumerator
TCAN4x5x_XID_EFEC_DISABLED 

Disabled filter. This filter will do nothing if it matches a packet.

TCAN4x5x_XID_EFEC_STORERX0 

Store in RX FIFO 0 if the filter matches the incoming message.

TCAN4x5x_XID_EFEC_STORERX1 

Store in RX FIFO 1 if the filter matches the incoming message.

TCAN4x5x_XID_EFEC_REJECTMATCH 

Reject the packet (do not store, do not notify MCU) if the filter matches the incoming message.

TCAN4x5x_XID_EFEC_PRIORITY 

Store in default location but set a high priority message interrupt if the filter matches the incoming message.

TCAN4x5x_XID_EFEC_PRIORITYSTORERX0 

Store in RX FIFO 0 and set a high priority message interrupt if the filter matches the incoming message.

TCAN4x5x_XID_EFEC_PRIORITYSTORERX1 

Store in RX FIFO 1 and set a high priority message interrupt if the filter matches the incoming message.

TCAN4x5x_XID_EFEC_STORERXBUFORDEBUG 

Store in RX Buffer for debug if the filter matches the incoming message.

Definition at line 675 of file TCAN4x5x_Data_Structs.h.

◆ TCAN4x5x_XID_EFT_Values

Enumerator
TCAN4x5x_XID_EFT_RANGENOMASK 

Range filter from EFID1 to EFID2, The XIDAM mask is not applied.

TCAN4x5x_XID_EFT_CLASSIC 

Classic Filter, EFID1 is the ID/filter, and EFID2 is the mask.

TCAN4x5x_XID_EFT_DUALID 

Dual ID filter matches if the incoming ID matches EFID1 or EFID2.

TCAN4x5x_XID_EFT_RANGE 

Range filter from EFID1 to EFID2.

Definition at line 702 of file TCAN4x5x_Data_Structs.h.