Mcan_Hal_InstanceType
Module: HAL (AM13E230X) API / CAN HAL API
CAN HW instance structure. Should not be modified by application directly.
#include <Mcan_Hal.h>
Public Attributes
Name |
|
|---|---|
void * |
HwRegsPtr |
void * |
UserArgsPtr |
CurrentState |
|
MaxMsgFormat |
|
TxProcessingMode |
|
RxProcessingMode |
|
ErrorProcessingMode |
|
RxIndicationCb |
|
RxDedicatedBufCb |
|
TxConfirmationCb |
|
ErrorCb |
|
TxIntrMask |
|
RxIntrMask |
|
ErrorIntrMask |
|
TxBufNum |
|
TxFifoSize |
|
StdFilterCount |
|
ExtFilterCount |
Public Attributes Documentation
variable HwRegsPtr
void * HwRegsPtr;
Pointer to CAN HW registers - MCAN base address.
variable UserArgsPtr
void * UserArgsPtr;
Pointer to user arguments, returned back to user when any CAN callback is called.
variable CurrentState
Mcan_Hal_StateType CurrentState;
Current state of CAN HAL.
variable MaxMsgFormat
Mcan_Hal_MsgFormatType MaxMsgFormat;
Maximum message format supported by this instance (Classic or FD)
variable TxProcessingMode
Mcan_Hal_ProcessingModeType TxProcessingMode;
TX processing mode; mirrors Mcan_Hal_InitParamsType::TxProcessingMode set during Mcan_Hal_Init.
variable RxProcessingMode
Mcan_Hal_ProcessingModeType RxProcessingMode;
RX FIFO processing mode; mirrors Mcan_Hal_InitParamsType::RxProcessingMode set during Mcan_Hal_Init.
variable ErrorProcessingMode
Mcan_Hal_ProcessingModeType ErrorProcessingMode;
Error processing mode; mirrors Mcan_Hal_InitParamsType::ErrorProcessingMode set during Mcan_Hal_Init.
variable RxIndicationCb
Mcan_Hal_RxIndicationCallbackType RxIndicationCb;
RX Indication callback - called on FIFO 0/1 new message.
variable RxDedicatedBufCb
Mcan_Hal_RxDedicatedBufCallbackType RxDedicatedBufCb;
Dedicated RX buffer callback - called on MCAN_IR.DRX with NDAT1/NDAT2 bitmasks.
variable TxConfirmationCb
Mcan_Hal_TxConfirmationCallbackType TxConfirmationCb;
TX Confirmation callback - called on successful message transmission.
variable ErrorCb
Mcan_Hal_ErrorCallbackType ErrorCb;
Error/status callback - called when error/status interrupt sources fire.
variable TxIntrMask
uint32 TxIntrMask;
TX interrupt enable mask (MCAN_IR bits)
variable RxIntrMask
uint32 RxIntrMask;
RX interrupt enable mask (MCAN_IR bits)
variable ErrorIntrMask
uint32 ErrorIntrMask;
Error interrupt enable mask (MCAN_IR bits)
variable TxBufNum
uint8 TxBufNum;
Number of dedicated TX buffers allocated in message RAM (mirrors TxConfig.TxBufNum)
variable TxFifoSize
uint8 TxFifoSize;
TX FIFO/Queue size allocated in message RAM (mirrors TxConfig.TxFifoSize).
variable StdFilterCount
uint8 StdFilterCount;
Number of Standard ID filter slots allocated in message RAM (mirrors RxConfig.StdFilterCount)
variable ExtFilterCount
uint8 ExtFilterCount;
Number of Extended ID filter slots allocated in message RAM (mirrors RxConfig.ExtFilterCount)