Wixel SDK
|
Go to the source code of this file.
Data Structures | |
struct | ACM_LINE_CODING |
Macros | |
#define | ACM_SERIAL_STATE_RX_CARRIER (1<<0) |
#define | ACM_SERIAL_STATE_TX_CARRIER (1<<1) |
#define | ACM_SERIAL_STATE_BREAK (1<<2) |
#define | ACM_SERIAL_STATE_RING_SIGNAL (1<<3) |
#define | ACM_SERIAL_STATE_FRAMING (1<<4) |
#define | ACM_SERIAL_STATE_PARITY (1<<5) |
#define | ACM_SERIAL_STATE_OVERRUN (1<<6) |
#define | ACM_IRREGULAR_SIGNAL_MASK (ACM_SERIAL_STATE_BREAK | ACM_SERIAL_STATE_RING_SIGNAL | ACM_SERIAL_STATE_FRAMING | ACM_SERIAL_STATE_PARITY | ACM_SERIAL_STATE_OVERRUN) |
#define | ACM_CONTROL_LINE_DTR 1 |
#define | ACM_CONTROL_LINE_RTS 2 |
#define | PARITY_NONE 0 |
#define | PARITY_ODD 1 |
#define | PARITY_EVEN 2 |
#define | PARITY_MARK 3 |
#define | PARITY_SPACE 4 |
#define | STOP_BITS_1 0 |
#define | STOP_BITS_1_5 1 |
#define | STOP_BITS_2 2 |
Typedefs | |
typedef struct ACM_LINE_CODING | ACM_LINE_CODING |
Contains common code that is needed by usb_com.h, uart1.h, and uart0.h.
The ACM_SERIAL_STATE_* defines all come from Table 31 of PSTN specification. They serve to define the bits used in usbComTxSignals() (see usb_com.h).
The ACM_CONTROL_LINE_* defines all from the Table 18 of the PSTN specification. They serve to define the bits returned by usbComRxSignals() (see usb_com.h).
PSTN is a subclass of the USB CDC Device Class. You can find the specification of PSTN in PSTN120.pdf, available for download from USB Implementers Forum at this url: http://www.usb.org/developers/devclass_docs
Definition in file com.h.
#define ACM_CONTROL_LINE_DTR 1 |
#define ACM_CONTROL_LINE_RTS 2 |
#define ACM_IRREGULAR_SIGNAL_MASK (ACM_SERIAL_STATE_BREAK | ACM_SERIAL_STATE_RING_SIGNAL | ACM_SERIAL_STATE_FRAMING | ACM_SERIAL_STATE_PARITY | ACM_SERIAL_STATE_OVERRUN) |
These are the "irregular" signals, described in PSTN 1.20 Section 6.5.4. These bits represent events that can be reported to the USB host. They are more like interrupts than I/O lines. See the usbComTxControlSignals() function in usb_com.h for more information.
#define ACM_SERIAL_STATE_BREAK (1<<2) |
#define ACM_SERIAL_STATE_FRAMING (1<<4) |
#define ACM_SERIAL_STATE_OVERRUN (1<<6) |
#define ACM_SERIAL_STATE_PARITY (1<<5) |
#define ACM_SERIAL_STATE_RING_SIGNAL (1<<3) |
#define ACM_SERIAL_STATE_RX_CARRIER (1<<0) |
#define ACM_SERIAL_STATE_TX_CARRIER (1<<1) |
#define PARITY_EVEN 2 |
#define PARITY_MARK 3 |
#define PARITY_NONE 0 |
#define PARITY_ODD 1 |
#define PARITY_SPACE 4 |
#define STOP_BITS_1 0 |
#define STOP_BITS_1_5 1 |
#define STOP_BITS_2 2 |
typedef struct ACM_LINE_CODING ACM_LINE_CODING |
Specifies the type of coding to use on an asynchronous serial line.
This struct is defined in PSTN120.pdf in Table 17: Line Coding Structure. PSTN120.pdf is available for download from USB Implementers Forum at this url: http://www.usb.org/developers/devclass_docs