Embedded System Design 2 - Project
leuart.h
Go to the documentation of this file.
1 /* ____ ____ _ __ __ ____ ___
2  * | _ \| _ \ / \ | \/ |/ ___/ _ \
3  * | | | | |_) | / _ \ | |\/| | | | | | |
4  * | |_| | _ < / ___ \| | | | |__| |_| |
5  * |____/|_| \_\/_/ \_\_| |_|\____\___/
6  * research group
7  * dramco.be/
8  *
9  * KU Leuven - Technology Campus Gent,
10  * Gebroeders De Smetstraat 1,
11  * B-9000 Gent, Belgium
12  *
13  * File: leuart.h
14  * Created: 2017-12-19
15  * Author: Guus Leenders
16  *
17  * Description: Header file for leuart.c
18  */
19 
20 #ifndef _LEUART_H_
21 #define _LEUART_H_
22 
23 #define RECEIVE_BUFFER_SIZE 50
24 #define COMMAND_BUFFER_SIZE 50
25 
26 typedef enum leuart_statuses{
32 
33 void Leuart_Init(void);
34 void Leuart_Reinit(void);
35 void Leuart_ClearBuffers(void);
36 void Leuart_BreakCondition(void);
37 void Leuart_SendData(char * buffer, uint8_t bufferLength);
38 void Leuart_ReadResponse(char * buffer, uint8_t bufferLength);
39 Leuart_Status_t Leuart_SendCommand(char * cb, uint8_t cbl, volatile bool * wakeUp);
41 
42 #endif /* _LEUART_H_ */
enum leuart_statuses Leuart_Status_t
leuart_statuses
Definition: leuart.h:26
void Leuart_ReadResponse(char *buffer, uint8_t bufferLength)
Definition: leuart.c:351
void Leuart_SendData(char *buffer, uint8_t bufferLength)
Definition: leuart.c:358
void Leuart_ClearBuffers(void)
Definition: leuart.c:83
Leuart_Status_t Leuart_SendCommand(char *cb, uint8_t cbl, volatile bool *wakeUp)
Definition: leuart.c:392
void Leuart_Init(void)
Definition: leuart.c:306
Leuart_Status_t Leuart_WaitForResponse()
Definition: leuart.c:430
void Leuart_Reinit(void)
Definition: leuart.c:323
void Leuart_BreakCondition(void)
Definition: leuart.c:342