forked from open-LIN/open-LIN-c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
open_lin_hw.h
46 lines (35 loc) · 903 Bytes
/
open_lin_hw.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* @file open_lin_hw.h
* @author LJ
* @date 25.01.2018
* @brief LIN hardware function calls
*
*/
#ifndef OPEN_LIN_OPEN_LIN_HW_H_
#define OPEN_LIN_OPEN_LIN_HW_H_
#include "open_lin_types.h"
/**
* @brief Checks if break signal occurred on UART
*
* @return @c true is break is detected
*/
l_bool open_lin_hw_check_for_break(void);
/**
* @brief resets hardware to default state
*
* @return @c true is break is detected
*/
void open_lin_hw_reset(void);
void open_lin_set_rx_enabled(l_bool status);
void open_lin_hw_init(void);
l_bool open_lin_hw_tx_data(l_u8* data, l_u8 len);
l_bool open_lin_hw_tx_break(void);
l_bool open_lin_hw_tx_byte(l_u8 data);
#ifdef OPEN_LIN_AUTO_BAUND
/**
* @brief Starts auto baud procedure
*
*/
void open_lin_hw_set_auto_baud(void);
#endif /* OPEN_LIN_AUTO_BAUND */
#endif /* OPEN_LIN_OPEN_LIN_HW_H_ */