Go to the source code of this file.
Data Structures | |
| struct | lin_timing_t |
| struct | lin_trans_config_t |
| LIN config. More... | |
Macros | |
| #define | LIN_ID_DATA_LEN_SHIFT 4U |
| #define | LIN_ID_DATA_LEN_MASK 0x30U |
| #define | LIN_ID_DATA_LEN_GET(x) (((uint8_t)(x) & LIN_ID_DATA_LEN_MASK) >> LIN_ID_DATA_LEN_SHIFT) |
Enumerations | |
| enum | lin_id_data_length_t { id_data_length_2bytes , id_data_length_2bytes_2 , id_data_length_4bytes , id_data_length_8bytes , id_data_length_2bytes , id_data_length_2bytes_2 , id_data_length_4bytes , id_data_length_8bytes } |
| data length in ID bit4 and bit5 More... | |
| enum | lin_bus_inactivity_time_t { bus_inactivity_time_4s , bus_inactivity_time_6s , bus_inactivity_time_8s , bus_inactivity_time_10s , bus_inactivity_time_4s , bus_inactivity_time_6s , bus_inactivity_time_8s , bus_inactivity_time_10s } |
| bus inactivity tome to go to sleep More... | |
| enum | lin_wakeup_repeat_time_t { wakeup_repeat_time_180ms , wakeup_repeat_time_200ms , wakeup_repeat_time_220ms , wakeup_repeat_time_240ms , wakeup_repeat_time_180ms , wakeup_repeat_time_200ms , wakeup_repeat_time_220ms , wakeup_repeat_time_240ms } |
| wakeup repeat time More... | |
Functions | |
| static uint8_t | lin_get_status (LIN_Type *ptr) |
| lin get STATE register value More... | |
| static void | lin_reset_interrupt (LIN_Type *ptr) |
| lin reset interrupt More... | |
| static void | lin_reset_error (LIN_Type *ptr) |
| lin reset error More... | |
| static void | lin_wakeup (LIN_Type *ptr) |
| lin wakeup More... | |
| static void | lin_sleep (LIN_Type *ptr) |
| lin sleep More... | |
| static void | lin_slave_stop (LIN_Type *ptr) |
| lin slave stop More... | |
| static void | lin_slave_ack (LIN_Type *ptr) |
| lin slave ack More... | |
| static void | lin_slave_set_bus_inactivity_time (LIN_Type *ptr, lin_bus_inactivity_time_t time) |
| lin slave set bus inactivity time More... | |
| static void | lin_slave_set_wakeup_repeat_time (LIN_Type *ptr, lin_wakeup_repeat_time_t time) |
| lin slave set wakeup repeat time More... | |
| static void | lin_set_mode (LIN_Type *ptr, bool master) |
| lin set mode More... | |
| static uint8_t | lin_get_data_byte (LIN_Type *ptr, uint8_t index) |
| lin get data value in byte More... | |
| static void | lin_write_data_byte (LIN_Type *ptr, uint8_t index, uint8_t data) |
| lin write data value in byte More... | |
| static bool | lin_is_active (LIN_Type *ptr) |
| lin active status More... | |
| static bool | lin_is_complete (LIN_Type *ptr) |
| lin complete status More... | |
| static uint8_t | lin_get_id (LIN_Type *ptr) |
| lin get ID More... | |
| hpm_stat_t | lin_master_configure_timing (LIN_Type *ptr, lin_timing_t *timing) |
| lin configure timing on master mode More... | |
| hpm_stat_t | lin_slave_configure_timing (LIN_Type *ptr, uint32_t src_freq_in_hz) |
| lin config timing on slave mode More... | |
| void | lin_master_transfer (LIN_Type *ptr, lin_trans_config_t *config) |
| lin transfer on master mode More... | |
| void | lin_slave_transfer (LIN_Type *ptr, lin_trans_config_t *config) |
| lin transfer on slave mode More... | |
| uint8_t | lin_get_data_length (LIN_Type *ptr) |
| get data length More... | |
| hpm_stat_t | lin_master_sent (LIN_Type *ptr, lin_trans_config_t *config) |
| lin send data on master mode More... | |
| hpm_stat_t | lin_master_receive (LIN_Type *ptr, lin_trans_config_t *config) |
| lin receive data on master mode More... | |
| hpm_stat_t | lin_slave_sent (LIN_Type *ptr, lin_trans_config_t *config) |
| lin send data on slave mode More... | |
| hpm_stat_t | lin_slave_receive (LIN_Type *ptr, lin_trans_config_t *config) |
| lin receive data on slave mode More... | |
| #define LIN_ID_DATA_LEN_GET | ( | x | ) | (((uint8_t)(x) & LIN_ID_DATA_LEN_MASK) >> LIN_ID_DATA_LEN_SHIFT) |
| #define LIN_ID_DATA_LEN_MASK 0x30U |
| #define LIN_ID_DATA_LEN_SHIFT 4U |
bit4 and bit5 encode data length in ID