Wixel SDK
uart1.h
Go to the documentation of this file.
1 
7 #ifndef _UART1_H
8 #define _UART1_H
9 
10 #include <cc2511_map.h>
11 #include <cc2511_types.h>
12 #include <com.h>
13 
14 void uart1Init();
15 void uart1SetBaudRate(uint32 baudrate);
16 void uart1SetParity(uint8 parity);
17 void uart1SetStopBits(uint8 stopBits);
18 uint8 uart1TxAvailable(void);
19 void uart1TxSendByte(uint8 byte);
20 void uart1TxSend(const uint8 XDATA * buffer, uint8 size);
21 uint8 uart1RxAvailable(void);
22 uint8 uart1RxReceiveByte(void);
23 ISR(UTX1, 0);
24 ISR(URX1, 0);
25 extern volatile BIT uart1RxParityErrorOccurred;
26 extern volatile BIT uart1RxFramingErrorOccurred;
27 extern volatile BIT uart1RxBufferFullOccurred;
28 
29 #endif /* UART_H_ */
#define XDATA
Definition: cc2511_types.h:65
unsigned long uint32
Definition: cc2511_types.h:21
__bit BIT
Definition: cc2511_types.h:32
#define ISR(source, bank)
Definition: cc2511_map.h:71
unsigned char uint8
Definition: cc2511_types.h:9