![]() |
Infineon MOTIX™ MCU TLE987x Device Family SDK
|
Go to the source code of this file.
LIN low level access library.
Macros | |
#define | LIN_MODE_SLEEP (0u) |
LIN MODE, SLEEP MODE. More... | |
#define | LIN_MODE_RCV_ONLY (1u) |
LIN MODE, RCV ONLY MODE. More... | |
#define | LIN_MODE_NORMAL (3u) |
LIN MODE, NORMAL MODE. More... | |
#define | LIN_GET_MODE_SLEEP (1u) |
LIN MODE READ, SLEEP MODE. More... | |
#define | LIN_GET_MODE_RCV_ONLY (5u) |
LIN MODE READ, RCV ONLY MODE. More... | |
#define | LIN_GET_MODE_NORMAL (7u) |
LIN MODE READ, NORMAL MODE. More... | |
#define | LIN_SLOPE_NORMAL (0u) |
LIN SLOPE MODE, NORMAL SLOPE. More... | |
#define | LIN_SLOPE_FAST (1u) |
LIN SLOPE MODE, FAST SLOPE. More... | |
#define | LIN_SLOPE_LOW (2u) |
LIN SLOPE MODE, LOW SLOPE. More... | |
#define | LIN_SLOPE_FLASH (3u) |
LIN SLOPE MODE, FLASH SLOPE. More... | |
Functions | |
INLINE uint8 | LIN_End_Of_Sync_Sts (void) |
reads End of SYN Byte Interrupt Status. More... | |
INLINE uint8 | LIN_Err_In_Sync_Sts (void) |
reads SYN Byte Error Interrupt Status. More... | |
INLINE uint8 | LIN_Break_Sts (void) |
reads Break Field Status. More... | |
INLINE void | LIN_Break_Detect_En (void) |
enables Baud Rate Detection. More... | |
INLINE void | LIN_Break_Detect_Dis (void) |
disables Baud Rate Detection. More... | |
INLINE void | LIN_BaudRate_Range_Sel (uint8 a) |
selects Baud Rate Detection. More... | |
INLINE void | LIN_Over_Curr_Int_Clr (void) |
clears LIN Receiver Overcurrent interrupt flag. More... | |
INLINE void | LIN_Over_Temp_Int_Clr (void) |
clears LIN Receiver Overtemperature interrupt flag. More... | |
INLINE void | LIN_Time_Out_Int_Clr (void) |
clears LIN TXD time-out interrupt flag. More... | |
INLINE void | LIN_End_Of_Sync_Int_Clr (void) |
clears End of SYN Byte interrupt flag. More... | |
INLINE void | LIN_Err_In_Sync_Int_Clr (void) |
clears SYN Byte Error interrupt flag. More... | |
INLINE void | LIN_Break_Int_Clr (void) |
clears Break Field flag. More... | |
INLINE void | LIN_Over_Curr_Int_En (void) |
enables LIN Transceiver Overcurrent interrupt. More... | |
INLINE void | LIN_Over_Curr_Int_Dis (void) |
disables LIN Transceiver Overcurrent interrupt. More... | |
INLINE void | LIN_Over_Temp_Int_En (void) |
enables LIN Transceiver Overtemperature interrupt. More... | |
INLINE void | LIN_Over_Temp_Int_Dis (void) |
disables LIN Transceiver Overtemperature interrupt. More... | |
INLINE void | LIN_Time_Out_Int_En (void) |
enables LIN Transceiver TxD-Timeout interrupt. More... | |
INLINE void | LIN_Time_Out_Int_Dis (void) |
disables LIN Transceiver TxD-Timeout interrupt. More... | |
INLINE void | LIN_Sync_Int_En (void) |
enables End of SYN Byte and SYN Byte Error interrupt. More... | |
INLINE void | LIN_Sync_Int_Dis (void) |
disables End of SYN Byte and SYN Byte Error interrupt. More... | |
void | LIN_Init (void) |
Initializes the LIN based on the Config Wizard for MOTIX MCU configuration. More... | |
INLINE void | LIN_Set_Mode (uint8 Mode) |
Sets LIN Trx. Mode. More... | |
INLINE uint32 | LIN_Get_Mode (void) |
Gets LIN Trx. Mode. More... | |
INLINE void | LIN_Set_Slope (uint8 SlopeMode) |
Sets LIN Trx. Slope Mode. More... | |
#define LIN_GET_MODE_NORMAL (7u) |
LIN MODE READ, NORMAL MODE.
#define LIN_GET_MODE_RCV_ONLY (5u) |
LIN MODE READ, RCV ONLY MODE.
#define LIN_GET_MODE_SLEEP (1u) |
LIN MODE READ, SLEEP MODE.
#define LIN_MODE_NORMAL (3u) |
LIN MODE, NORMAL MODE.
#define LIN_MODE_RCV_ONLY (1u) |
LIN MODE, RCV ONLY MODE.
#define LIN_MODE_SLEEP (0u) |
LIN MODE, SLEEP MODE.
#define LIN_SLOPE_FAST (1u) |
LIN SLOPE MODE, FAST SLOPE.
#define LIN_SLOPE_FLASH (3u) |
LIN SLOPE MODE, FLASH SLOPE.
#define LIN_SLOPE_LOW (2u) |
LIN SLOPE MODE, LOW SLOPE.
#define LIN_SLOPE_NORMAL (0u) |
LIN SLOPE MODE, NORMAL SLOPE.
selects Baud Rate Detection.
a | BGSEL Value (2 bits) |
Example
This example selects the first range of the Baud Rate Detection.
INLINE void LIN_Break_Detect_Dis | ( | void | ) |
disables Baud Rate Detection.
Example
This example disables Baud Rate Detection.
INLINE void LIN_Break_Detect_En | ( | void | ) |
enables Baud Rate Detection.
Example
This example enables Baud Rate Detection.
INLINE void LIN_Break_Int_Clr | ( | void | ) |
clears Break Field flag.
Example
This example clears Break Field flag.
reads Break Field Status.
Example
This example reads Break Field Status.
INLINE void LIN_End_Of_Sync_Int_Clr | ( | void | ) |
clears End of SYN Byte interrupt flag.
Example
This example treats the LIN End of SYN Byte interrupt.
reads End of SYN Byte Interrupt Status.
Example
This example treats the LIN End of SYN Byte interrupt.
INLINE void LIN_Err_In_Sync_Int_Clr | ( | void | ) |
clears SYN Byte Error interrupt flag.
Example
This example threats the SYN Byte Error interrupt.
reads SYN Byte Error Interrupt Status.
Example
This example threats the SYN Byte Error interrupt.
Gets LIN Trx. Mode.
Example
This example reads LIN Transmitter Mode.
void LIN_Init | ( | void | ) |
Initializes the LIN based on the Config Wizard for MOTIX MCU configuration.
INLINE void LIN_Over_Curr_Int_Clr | ( | void | ) |
clears LIN Receiver Overcurrent interrupt flag.
Example
This example treats the LIN Receiver Overcurrent interrupt.
INLINE void LIN_Over_Curr_Int_Dis | ( | void | ) |
disables LIN Transceiver Overcurrent interrupt.
Example
This example treats the LIN Receiver Overcurrent interrupt.
INLINE void LIN_Over_Curr_Int_En | ( | void | ) |
enables LIN Transceiver Overcurrent interrupt.
Example
This example treats the LIN Receiver Overcurrent interrupt.
INLINE void LIN_Over_Temp_Int_Clr | ( | void | ) |
clears LIN Receiver Overtemperature interrupt flag.
Example
This example treats the LIN Receiver Overtemperature interrupt.
INLINE void LIN_Over_Temp_Int_Dis | ( | void | ) |
disables LIN Transceiver Overtemperature interrupt.
Example
This example treats the LIN Receiver Overtemperature interrupt.
INLINE void LIN_Over_Temp_Int_En | ( | void | ) |
enables LIN Transceiver Overtemperature interrupt.
Example
This example treats the LIN Receiver Overtemperature interrupt.
Sets LIN Trx. Mode.
Mode | LIN Mode Selection |
Example
This example sets LIN Transmitter Sleep Mode as Transceiver power mode.
Sets LIN Trx. Slope Mode.
SlopeMode | LIN Trx Slope Mode Selection |
Example
This example sets LIN Normal Mode as Transmitter Slope mode.
INLINE void LIN_Sync_Int_Dis | ( | void | ) |
disables End of SYN Byte and SYN Byte Error interrupt.
Example
This example treats the LIN End of SYN Byte interrupt.
INLINE void LIN_Sync_Int_En | ( | void | ) |
enables End of SYN Byte and SYN Byte Error interrupt.
Example
This example treats the LIN End of SYN Byte interrupt.
INLINE void LIN_Time_Out_Int_Clr | ( | void | ) |
clears LIN TXD time-out interrupt flag.
Example
This example treats the LIN TXD time-out interrupt.
INLINE void LIN_Time_Out_Int_Dis | ( | void | ) |
disables LIN Transceiver TxD-Timeout interrupt.
Example
This example treats the LIN TXD time-out interrupt.
INLINE void LIN_Time_Out_Int_En | ( | void | ) |
enables LIN Transceiver TxD-Timeout interrupt.
Example
This example treats the LIN TXD time-out interrupt.