Wixel SDK
uart0.h
Go to the documentation of this file.
1 
26 #ifndef _UART0_H
27 #define _UART0_H
28 
29 #include <cc2511_map.h>
30 #include <cc2511_types.h>
31 #include <com.h>
32 
37 void uart0Init();
38 
42 void uart0SetBaudRate(uint32 baudrate);
43 
51 void uart0SetParity(uint8 parity);
52 
68 void uart0SetStopBits(uint8 stopBits);
69 
73 
81 void uart0TxSendByte(uint8 byte);
82 
91 void uart0TxSend(const uint8 XDATA * buffer, uint8 size);
92 
99 
111 
113 ISR(UTX0, 0);
114 
116 ISR(URX0, 0);
117 
119 extern volatile BIT uart0RxParityErrorOccurred;
120 
122 extern volatile BIT uart0RxFramingErrorOccurred;
123 
127 extern volatile BIT uart0RxBufferFullOccurred;
128 
129 #endif /* UART_H_ */
uint8 uart0RxAvailable(void)
volatile BIT uart0RxBufferFullOccurred
uint8 uart0RxReceiveByte(void)
void uart0TxSendByte(uint8 byte)
#define XDATA
Definition: cc2511_types.h:65
volatile BIT uart0RxFramingErrorOccurred
volatile BIT uart0RxParityErrorOccurred
uint8 uart0TxAvailable(void)
unsigned long uint32
Definition: cc2511_types.h:21
__bit BIT
Definition: cc2511_types.h:32
void uart0SetParity(uint8 parity)
void uart0SetStopBits(uint8 stopBits)
unsigned char uint8
Definition: cc2511_types.h:9
void uart0SetBaudRate(uint32 baudrate)
void uart0TxSend(const uint8 XDATA *buffer, uint8 size)
ISR(UTX0, 0)
void uart0Init()