![]() |
Infineon MOTIX™ MCU TLE985x 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_DISABLED (0u) |
LIN MODE READ, LIN MODULE DISABLED. 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 | |
void | LIN_Init (void) |
Initializes the LIN module. More... | |
INLINE void | LIN_Set_Mode (uint8 Mode) |
Sets LIN Trx. Mode. More... | |
INLINE uint8 | LIN_Get_Mode (void) |
Gets LIN Trx. Mode. More... | |
INLINE void | LIN_Set_Slope (uint8 SlopeMode) |
Sets LIN Trx. Slope Mode. 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 value) |
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_Mode_Error_Int_Clr (void) |
Clears LIN Transceiver Mode Error - Slope Mode Error 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_M_SM_ERR_Int_En (void) |
Enables LIN Transceiver Mode Error - Slope Mode Error interrupt. More... | |
INLINE void | LIN_M_SM_ERR_Int_Dis (void) |
Disables LIN Transceiver Mode Error - Slope Mode Error 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... | |
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... | |
#define LIN_GET_MODE_DISABLED (0u) |
LIN MODE READ, LIN MODULE DISABLED.
#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.
value | 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 treats the SYN Byte Error interrupt.
Gets LIN Trx. Mode.
Example
This example reads LIN Transmitter Mode.
void LIN_Init | ( | void | ) |
Initializes the LIN module.
INLINE void LIN_M_SM_ERR_Int_Dis | ( | void | ) |
Disables LIN Transceiver Mode Error - Slope Mode Error interrupt.
Example
This example treats the LIN Transceiver Mode Error - Slope Mode Error interrupt.
INLINE void LIN_M_SM_ERR_Int_En | ( | void | ) |
Enables LIN Transceiver Mode Error - Slope Mode Error interrupt.
Example
This example treats the LIN Transceiver Mode Error - Slope Mode Error interrupt.
INLINE void LIN_Mode_Error_Int_Clr | ( | void | ) |
Clears LIN Transceiver Mode Error - Slope Mode Error interrupt flag.
Example
This example treats the LIN Transceiver Mode Error - Slope Mode Error interrupt.
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 | 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.