EPD Extension Kit for MSP430 LaunchPad

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Uart_Driver.h
Go to the documentation of this file.
1
34 #ifndef __UART_H_
35 #define __UART_H_
36
37 #define SERIAL_TX_MAX_LEN 16
38 #define SERIAL_RX_MAX_LEN 16
39
43 typedef struct
44 {
45 uint8_t put_index,get_index;
46 uint8_t count;
47 char buffer[SERIAL_RX_MAX_LEN];
48 } serial_buffer_t;
49
50 typedef void (*receive_event_handler)(uint8_t *Rx_data,uint8_t len);
51
52 void data_interface_init(receive_event_handler OnRxEventHandle);
53 void data_transmit (uint8_t *s,uint8_t len);
54 void data_interface_detach(void);
55 #endif
56