Data Fields
CANFD_DriverMCB_t Struct Reference

CANFD Master Control Block. More...

#include <drivers/canfd/include/canfd_internal.h>

Data Fields

CANFD_DriverState state
 CANFD driver internal state.
 
CANFD_HwCfg hwCfg
 Hardware Configuration of the CAN instance.
 
uint8_t mcanDataSize [16]
 Data Length to DLC mapping.
 
struct CANFD_MessageObject_t * msgObjectHandle [MCAN_MAX_MSG_OBJECTS]
 Message object handle book keeping.
 
struct CANFD_MessageObject_t * txMapping [MCAN_MAX_TX_MSG_OBJECTS]
 Tx Mapping to message handles for transmit post processing.
 
struct CANFD_MessageObject_t * rxMapping [MCAN_MAX_RX_MSG_OBJECTS]
 Rx Mapping to message handles for Rx processing.
 
HwiP_Handle hwiHandle0
 Registered Interrupt Handler. Indicates if interrupt 0 is configured. This needs to be done only during the first message object create. Subsequent interrupts are enabled using interrupt muxing.
 
HwiP_Handle hwiHandle1
 Registered Interrupt Handler. Indicates if interrupt 0 is configured. This needs to be done only during the first message object create. Subsequent interrupts are enabled using interrupt muxing.
 
CANFD_ErrStatusAppCallBack appErrCallBack
 Application specified callback function which is invoked by the CANFD driver on error or status interrrupts.
 
CANFD_DataAppCallBack appDataCallBack
 Application specified callback function which is invoked by the CANFD driver once Tx complete or data receive interrupt has been received.
 
uint32_t errStatusInterrupts
 Number of error and status interrupts received.
 
uint32_t interrupts
 Number of interrupts received for message Tx or Rx.
 
uint32_t eccInterrupts
 Number of ECC interrupts received.
 
uint32_t busOffInterrupts
 Number of Bus-Off interrupts received.
 
uint32_t protoDataErrInterrupts
 Number of Protocol error in data phase interrupts received.
 
uint32_t protoArbErrInterrupts
 Number of Protocol error in arbitration phase interrupts received.
 
uint8_t txStatus [MCAN_MAX_TX_MSG_OBJECTS]
 Tx Status of the message object.
 
uint32_t useFifoNum
 Flag to toggle the usage of FIFO 0 and FIFO 1. Valid values are 0 and 1.
 
MCAN_RxBufElement rxBuffElem
 Buffer used to read message RAM.
 

Detailed Description

CANFD Master Control Block.

The structure describes the CANFD Driver and is used to hold the relevant information with respect to the CANFD module.


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

Copyright 2020, Texas Instruments Incorporated