47 #define TCAN4x5x_MCAN_CACHE_CONFIGURATION 50 #define TCAN4x5x_MCAN_VERIFY_CONFIGURATION_WRITES 53 #define TCAN4x5x_DEVICE_VERIFY_CONFIGURATION_WRITES 57 #ifdef TCAN4x5x_MCAN_CACHE_CONFIGURATION 58 #define TCAN4x5x_MCAN_CACHE_SIDFC 0 59 #define TCAN4x5x_MCAN_CACHE_XIDFC 1 60 #define TCAN4x5x_MCAN_CACHE_RXF0C 2 61 #define TCAN4x5x_MCAN_CACHE_RXF1C 3 62 #define TCAN4x5x_MCAN_CACHE_RXBC 4 63 #define TCAN4x5x_MCAN_CACHE_TXEFC 5 64 #define TCAN4x5x_MCAN_CACHE_TXBC 6 65 #define TCAN4x5x_MCAN_CACHE_RXESC 7 66 #define TCAN4x5x_MCAN_CACHE_TXESC 8 void TCAN4x5x_MCAN_ConfigureInterruptEnable(TCAN4x5x_MCAN_Interrupt_Enable *ie)
Configures the MCAN interrupt enable register.
TCAN4x5x_Device_Mode_Enum
uint8_t TCAN4x5x_MCAN_DLCtoBytes(uint8_t inputDLC)
Converts the CAN message DLC hex value to the number of bytes it corresponds to.
void TCAN4x5x_MCAN_ReadNominalTiming_Raw(TCAN4x5x_MCAN_Nominal_Timing_Raw *nomTiming)
Reads the MCAN nominal/arbitration time settings, using the raw MCAN timing struct.
void TCAN4x5x_Device_ClearSPIERR(void)
Clears a SPIERR flag that may be set.
bool TCAN4x5x_MCAN_ConfigureNominalTiming_Raw(TCAN4x5x_MCAN_Nominal_Timing_Raw *nomTiming)
Writes the MCAN nominal timing settings, using the raw MCAN nominal timing struct.
bool TCAN4x5x_MCAN_ConfigureCCCRRegister(TCAN4x5x_MCAN_CCCR_Config *cccr)
Configure the MCAN CCCR Register.
Used to setup the timing parameters of the MCAN module This is the raw MCAN form of the struct which ...
Struct containing the device interrupt enable bit field.
bool TCAN4x5x_MRAM_Configure(TCAN4x5x_MRAM_Config *MRAMConfig)
Configures the MRAM registers.
bool TCAN4x5x_MCAN_ConfigureNominalTiming_Simple(TCAN4x5x_MCAN_Nominal_Timing_Simple *nomTiming)
Writes the MCAN nominal timing settings, using the simple nominal timing struct.
uint8_t TCAN4x5x_MCAN_TXRXESC_DataByteValue(uint8_t inputESCValue)
Converts the MCAN ESC (Element Size) value to number of bytes that it corresponds to...
bool TCAN4x5x_MCAN_EnableProtectedRegisters(void)
Enable Protected MCAN Registers.
void TCAN4x5x_Device_ReadConfig(TCAN4x5x_DEV_CONFIG *devCfg)
Reads the device mode and pin register.
void TCAN4x5x_Device_ClearInterruptsAll(void)
Clear all device interrupts.
bool TCAN4x5x_MCAN_TransmitBufferContents(uint8_t bufIndex)
Transmit TX buffer contents of the specified tx buffer.
bool TCAN4x5x_MCAN_WriteSIDFilter(uint8_t filterIndex, TCAN4x5x_MCAN_SID_Filter *filter)
Write MCAN Standard ID filter into MRAM.
bool TCAN4x5x_MCAN_ConfigureGlobalFilter(TCAN4x5x_MCAN_Global_Filter_Configuration *gfc)
Configures the MCAN global filter configuration register, using the passed Global Filter Configuratio...
void TCAN4x5x_Device_ReadInterrupts(TCAN4x5x_Device_Interrupts *ir)
Read the device interrupts.
Struct containing the register values for the Global Filter Configuration Register.
Used to setup the nominal timing parameters of the MCAN module This is the raw MCAN form of the struc...
bool TCAN4x5x_Device_SetMode(TCAN4x5x_Device_Mode_Enum modeDefine)
Sets the TCAN4x5x device mode.
bool TCAN4x5x_WDT_Enable(void)
Enable the watchdog timer.
void TCAN4x5x_MCAN_ReadNominalTiming_Simple(TCAN4x5x_MCAN_Nominal_Timing_Simple *nomTiming)
Reads the MCAN nominal/arbitration time settings, using the simple timing struct. ...
bool TCAN4x5x_MCAN_WriteXIDFilter(uint8_t fifoIndex, TCAN4x5x_MCAN_XID_Filter *filter)
Write MCAN Extended ID filter into MRAM.
void TCAN4x5x_MCAN_ClearInterrupts(TCAN4x5x_MCAN_Interrupts *ir)
Clear the MCAN interrupts.
bool TCAN4x5x_MCAN_ConfigureDataTiming_Raw(TCAN4x5x_MCAN_Data_Timing_Raw *dataTiming)
Writes the MCAN data time settings, using the raw MCAN data timing struct.
uint32_t TCAN4x5x_MCAN_WriteTXBuffer(uint8_t bufIndex, TCAN4x5x_MCAN_TX_Header *header, uint8_t dataPayload[])
Write CAN message to the specified TX buffer.
bool TCAN4x5x_WDT_Disable(void)
Disable the watchdog timer.
void TCAN4x5x_MCAN_ReadInterruptEnable(TCAN4x5x_MCAN_Interrupt_Enable *ie)
Read the MCAN interrupt enable register.
Standard ID filter struct.
void TCAN4x5x_Device_ClearInterrupts(TCAN4x5x_Device_Interrupts *ir)
Clear the device interrupts.
void TCAN4x5x_WDT_Reset(void)
Reset the watchdog timer.
TCAN4x5x_Device_Mode_Enum TCAN4x5x_Device_ReadMode(void)
Reads the TCAN4x5x device mode.
bool TCAN4x5x_MCAN_DisableProtectedRegisters(void)
Disable Protected MCAN Registers.
bool TCAN4x5x_MCAN_ReadSIDFilter(uint8_t filterIndex, TCAN4x5x_MCAN_SID_Filter *filter)
Read a MCAN Standard ID filter from MRAM.
bool TCAN4x5x_Device_ConfigureInterruptEnable(TCAN4x5x_Device_Interrupt_Enable *ie)
Configures the device interrupt enable register.
Defines the number of MRAM elements and the size of the elements.
Struct containing the MCAN interrupt enable bit field.
struct containing the bit fields of the MCAN CCCR register
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.
void TCAN4x5x_MCAN_ReadCCCRRegister(TCAN4x5x_MCAN_CCCR_Config *cccrConfig)
Read the MCAN CCCR configuration register.
void TCAN4x5x_MCAN_ReadInterrupts(TCAN4x5x_MCAN_Interrupts *ir)
Read the MCAN interrupts.
Struct containing the device interrupt bit field.
TCAN4x5x_Device_Test_Mode_Enum TCAN4x5x_Device_ReadTestMode(void)
Reads the TCAN4x5x device test mode.
TCAN4x5x_Device_Test_Mode_Enum
uint8_t TCAN4x5x_MCAN_ReadNextFIFO(TCAN4x5x_MCAN_FIFO_Enum FIFODefine, TCAN4x5x_MCAN_RX_Header *header, uint8_t dataPayload[])
Read the next MCAN FIFO element.
bool TCAN4x5x_WDT_Configure(TCAN4x5x_WDT_Timer_Enum WDTtimeout)
Configure the watchdog.
void TCAN4x5x_MCAN_ClearInterruptsAll(void)
Clear all MCAN interrupts.
Extended ID filter struct.
void TCAN4x5x_Device_ReadInterruptEnable(TCAN4x5x_Device_Interrupt_Enable *ie)
Read the device interrupt enable register.
void TCAN4x5x_MCAN_ReadDataTimingFD_Raw(TCAN4x5x_MCAN_Data_Timing_Raw *dataTiming)
Reads the MCAN data time settings, using the raw MCAN struct.
bool TCAN4x5x_MCAN_ConfigureDataTiming_Simple(TCAN4x5x_MCAN_Data_Timing_Simple *dataTiming)
Writes the MCAN data time settings, using the simple data timing struct.
void TCAN4x5x_MRAM_Clear(void)
Clear (Zero-fill) the contents of MRAM.
void TCAN4x5x_MCAN_ReadDataTimingFD_Simple(TCAN4x5x_MCAN_Data_Timing_Simple *dataTiming)
Reads the MCAN data time settings, using the simple struct.
bool TCAN4x5x_Device_Configure(TCAN4x5x_DEV_CONFIG *devCfg)
Configures the device mode and pin register.
Struct containing the MCAN interrupt bit field.
uint16_t TCAN4x5x_Device_ReadDeviceVersion(void)
Read the TCAN4x5x device version register.
bool TCAN4x5x_Device_EnableTestMode(TCAN4x5x_Device_Test_Mode_Enum modeDefine)
Sets the TCAN4x5x device test mode.
uint8_t TCAN4x5x_MCAN_ReadRXBuffer(uint8_t bufIndex, TCAN4x5x_MCAN_RX_Header *header, uint8_t dataPayload[])
Read the specified RX buffer element.
bool TCAN4x5x_Device_DisableTestMode(void)
Disables the TCAN4x5x device test mode.
Used to setup the nominal timing parameters of the MCAN module This is a simplified struct...
TCAN4x5x_WDT_Timer_Enum TCAN4x5x_WDT_Read(void)
Read the watchdog configuration.