Lin_Hal_InstanceType
Module: HAL (AM13E230X) API / LIN HAL API
LIN HW instance structure. Should not be modified by application directly.
#include <Lin_Hal.h>
Public Attributes
Name |
|
|---|---|
HwRegsPtr |
|
void * |
UserArgsPtr |
CurrentState |
|
OperatingMode |
|
EnableTransmit |
|
uint8 * |
BufferPtr |
SizeInBytes |
|
ReceivedFrameId |
|
TransferErrorStatus |
|
BytesTransferred |
|
TxPhase |
|
HeaderState |
|
TbitWidthCounts |
|
TbitWidthCpuCycles |
Public Attributes Documentation
variable HwRegsPtr
DL_UNICOMM_Inst_Regs * HwRegsPtr;
Pointer to LIN HW registers.
variable UserArgsPtr
void * UserArgsPtr;
Pointer to user arguments, returned back to user when any LIN callback is called.
variable CurrentState
Lin_Hal_StateType CurrentState;
Current state of LIN HAL.
variable OperatingMode
Lin_Hal_ModeType OperatingMode;
LIN operating mode: Controller or Target.
variable EnableTransmit
boolean EnableTransmit;
TRUE to enable transmit, FALSE to enable receive.
variable BufferPtr
uint8 * BufferPtr;
Pointer to data buffer to transmit or receive data.
variable SizeInBytes
uint8 SizeInBytes;
Size of data to transmit or receive.
variable ReceivedFrameId
uint8 ReceivedFrameId;
Raw FrameId of the header most recently seen (controller: sent; target: received)
variable TransferErrorStatus
uint32 TransferErrorStatus;
Bit mask of errors accumulated during the current transaction, see [Lin_Hal_TransferErrorType].
variable BytesTransferred
uint8 BytesTransferred;
Payload bytes queued into TX FIFO, or received into BufferPtr; excludes header and checksum.
variable TxPhase
Lin_Hal_TxPhaseType TxPhase;
Next transmit field to queue; DONE means all outgoing bytes are queued, not sent.
variable HeaderState
Lin_Hal_HeaderStateType HeaderState;
Target-mode software header-detection state.
variable TbitWidthCounts
uint32 TbitWidthCounts;
UART bit-time width in peripheral clock counts, used for LIN counter thresholds.
variable TbitWidthCpuCycles
uint32 TbitWidthCpuCycles;
UART bit-time width in CPU clock cycles, used for break generation timing.