Wixel SDK
usb_com.h
Go to the documentation of this file.
1 
6 #ifndef _USB_COM_H
7 #define _USB_COM_H
8 
9 #include <time.h>
10 #include <com.h>
11 
12 typedef void (HandlerFunction)(void);
13 
49 
59 void usbComTxControlSignals(uint8 signals);
60 
86 void usbComTxControlSignalEvents(uint8 signalEvents);
87 
91 
94 extern HandlerFunction * usbComLineCodingChangeHandler;
95 
99 void usbComService(void); // This should be called regularly.
100 
112 
122 
134 void usbComRxReceive(uint8 XDATA * buffer, uint8 size);
135 
142 
151 void usbComTxSendByte(uint8 byte);
152 
162 void usbComTxSend(const uint8 XDATA * buffer, uint8 size);
163 
164 #endif
ACM_LINE_CODING XDATA usbComLineCoding
Definition: usb_cdc_acm.c:79
void usbComTxSend(const uint8 XDATA *buffer, uint8 size)
Definition: usb_cdc_acm.c:477
HandlerFunction * usbComLineCodingChangeHandler
Definition: usb_cdc_acm.c:87
#define XDATA
Definition: cc2511_types.h:65
void usbComTxControlSignalEvents(uint8 signalEvents)
Definition: usb_cdc_acm.c:525
void usbComRxReceive(uint8 XDATA *buffer, uint8 size)
Definition: usb_cdc_acm.c:343
void usbComTxControlSignals(uint8 signals)
Definition: usb_cdc_acm.c:520
void usbComTxSendByte(uint8 byte)
Definition: usb_cdc_acm.c:498
uint8 usbComRxControlSignals(void)
Definition: usb_cdc_acm.c:515
uint8 usbComRxReceiveByte(void)
Definition: usb_cdc_acm.c:325
unsigned char uint8
Definition: cc2511_types.h:9
void usbComService(void)
Definition: usb_cdc_acm.c:373
uint8 usbComRxAvailable(void)
Definition: usb_cdc_acm.c:299
uint8 usbComTxAvailable(void)
Definition: usb_cdc_acm.c:449