UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
uart.h
1 
13 #ifndef __UART_H__
14 #define __UART_H__
15 
16 #include <stdint.h>
17 #include <stdbool.h>
18 
28 void UART_init(uint8_t uart_num, uint32_t baudrate);
29 
40 char UART_getc(uint8_t uart_num);
41 
52 void UART_putc(uint8_t uart_num, char c);
53 
64 void UART_puts(uint8_t uart_num, char *str);
65 
77 void UART_putb(uint8_t uart_num, char *str, uint32_t len);
78 
79 
91 bool UART_getc_nonblocking(uint8_t uart_num, char *c);
92 
104 bool UART_putc_nonblocking(uint8_t uart_num, char c);
105 
117 bool UART_puts_nonblocking(uint8_t uart_num, char *str);
118 
131 bool UART_putb_nonblocking(uint8_t uart_num, char *str, uint32_t len);
132 
142 bool UART_busy(uint8_t uart_num);
143 
153 bool UART_charsAvail(uint8_t uart_num);
154 
155 #endif /* __UART_H__ */
void UART_init(uint8_t uart_num, uint32_t baudrate)
Definition: uart.c:78
bool UART_getc_nonblocking(uint8_t uart_num, char *c)
Definition: uart.c:145
char UART_getc(uint8_t uart_num)
Definition: uart.c:113
bool UART_putb_nonblocking(uint8_t uart_num, char *str, uint32_t len)
Definition: uart.c:183
void UART_putb(uint8_t uart_num, char *str, uint32_t len)
Definition: uart.c:137
bool UART_charsAvail(uint8_t uart_num)
Definition: uart.c:203
bool UART_putc_nonblocking(uint8_t uart_num, char c)
Definition: uart.c:163
void UART_puts(uint8_t uart_num, char *str)
Definition: uart.c:129
bool UART_busy(uint8_t uart_num)
Definition: uart.c:195
void UART_putc(uint8_t uart_num, char c)
Definition: uart.c:121
bool UART_puts_nonblocking(uint8_t uart_num, char *str)
Definition: uart.c:171