![]() |
Infineon MOTIX™ MCU TLE988x/9x Device Family SDK
|
Go to the source code of this file.
Application interface declaration for Can driver.
Functions | |
void | Can_Init (void) |
Initialization of Can driver. More... | |
void | Can_DeInit (void) |
This function shall be called only during shutdown routine. More... | |
uint8 | Can_ControllerReset (uint8 Channel) |
trigger a specific CAN controller channel to re-init the hardware after bus-off More... | |
void | Can_MainFunctionWrite (void) |
Runnable of Can module. More... | |
void | Can_MainFunctionRead (void) |
Runnable of Can module: cyclic call required when receive path operates in polling mode. More... | |
uint8 | Can_Transmit (tComFrameHandle TxFrameHdl, const uint8 *DataPtr, uint8 Length) |
Copy a data string and trigger transmission. More... | |
trigger a specific CAN controller channel to re-init the hardware after bus-off
@function Can_ControllerReset
Channel | the controller channel index which shall be reset |
result | of operation: E_OK: operation successful E_NOT_OK: parameter out of range |
void Can_DeInit | ( | void | ) |
This function shall be called only during shutdown routine.
@function Can_DeInit
void |
void |
void Can_Init | ( | void | ) |
Initialization of Can driver.
@function Can_Init
void |
void |
void Can_MainFunctionRead | ( | void | ) |
Runnable of Can module: cyclic call required when receive path operates in polling mode.
@function Can_MainFunctionRead
void |
void |
void Can_MainFunctionWrite | ( | void | ) |
Runnable of Can module.
@function Can_MainFunctionWrite
void |
void |
uint8 Can_Transmit | ( | tComFrameHandle | TxFrameHdl, |
const uint8 * | DataPtr, | ||
uint8 | Length | ||
) |
Copy a data string and trigger transmission.
@function Can_Transmit
TxFrameHdl | a handle index from the Tx frames list DataPtr: a pointer to the data source array Length: number of bytes to be copied, limited to the size of the frame buffer. |
result | of operation: E_OK: operation successful E_NOT_OK: parameter out of range E_NOT_AVAILABLE: driver not initialized or in wrong state E_BUSY: BasicCAN Fifo is full, repeat request later |