Go to the source code of this file.
Defines | |
| #define | USART_1_5_STOPBITS 1 |
| #define | USART_1_STOPBIT 0 |
| #define | USART_2_STOPBITS 2 |
| #define | USART_ADDR_RECEIVED 1 |
| #define | USART_AUTO_ECHO 1 |
| #define | USART_DEFAULT_TIMEOUT 10000 |
| #define | USART_EVEN_PARITY 0 |
| #define | USART_FAILURE -1 |
| #define | USART_INVALID_ARGUMENT -1 |
| #define | USART_INVALID_INPUT 1 |
| #define | USART_LOCAL_LOOPBACK 2 |
| #define | USART_MARK_PARITY 3 |
| #define | USART_MODE_FAULT 5 |
| #define | USART_MODE_HW_HSH 0x02 |
| #define | USART_MODE_IRDA 0x08 |
| #define | USART_MODE_ISO7816_T0 0x04 |
| #define | USART_MODE_ISO7816_T1 0x06 |
| #define | USART_MODE_MODEM 0x03 |
| #define | USART_MODE_NORMAL 0x00 |
| #define | USART_MODE_RS485 0x01 |
| #define | USART_MODE_SW_HSH 0x0C |
| #define | USART_MULTIDROP_PARITY 6 |
| #define | USART_NO_PARITY 4 |
| #define | USART_NORMAL_CHMODE 0 |
| #define | USART_ODD_PARITY 1 |
| #define | USART_REMOTE_LOOPBACK 3 |
| #define | USART_RX_EMPTY 3 |
| #define | USART_RX_ERROR 4 |
| #define | USART_SPACE_PARITY 2 |
| #define | USART_SUCCESS 0 |
| #define | USART_TX_BUSY 2 |
| #define USART_1_5_STOPBITS 1 |
Use 1.5 stop bits
Definition at line 70 of file usart_defines.h.
| #define USART_1_STOPBIT 0 |
Use 1 stop bit
Definition at line 68 of file usart_defines.h.
| #define USART_2_STOPBITS 2 |
Use 2 stop bits (for more, just give the number of bits)
Definition at line 72 of file usart_defines.h.
| #define USART_ADDR_RECEIVED 1 |
Value returned by receiver function when an address character was received
Definition at line 23 of file usart_defines.h.
| #define USART_AUTO_ECHO 1 |
Set usart channel to echo data
Definition at line 61 of file usart_defines.h.
| #define USART_DEFAULT_TIMEOUT 10000 |
Default timeout value; number of tries before timing out
Definition at line 26 of file usart_defines.h.
| #define USART_EVEN_PARITY 0 |
Use even parity on character transmission
Definition at line 29 of file usart_defines.h.
| #define USART_FAILURE -1 |
Value returned by function when it was unable to complete successfully for some unspecified reason
Definition at line 8 of file usart_defines.h.
| #define USART_INVALID_ARGUMENT -1 |
Definition at line 11 of file usart_defines.h.
| #define USART_INVALID_INPUT 1 |
Value returned by function when the input paramters are out of range
Definition at line 10 of file usart_defines.h.
| #define USART_LOCAL_LOOPBACK 2 |
Set usart channel to local loopback
Definition at line 63 of file usart_defines.h.
| #define USART_MARK_PARITY 3 |
Use a mark as parity bit
Definition at line 35 of file usart_defines.h.
| #define USART_MODE_FAULT 5 |
Value returned by a function when the usart is not in the appropriate mode
Definition at line 20 of file usart_defines.h.
| #define USART_MODE_HW_HSH 0x02 |
Operate usart in rs232 with hardware handshaking
Definition at line 46 of file usart_defines.h.
| #define USART_MODE_IRDA 0x08 |
Oparte usart in irda mode
Definition at line 54 of file usart_defines.h.
| #define USART_MODE_ISO7816_T0 0x04 |
Operate usart in iso7816, T=0 mode
Definition at line 50 of file usart_defines.h.
| #define USART_MODE_ISO7816_T1 0x06 |
Operate usart in iso7816, T=1 mode
Definition at line 52 of file usart_defines.h.
| #define USART_MODE_MODEM 0x03 |
Operate usart in modem mode
Definition at line 48 of file usart_defines.h.
| #define USART_MODE_NORMAL 0x00 |
Operate usart in normal rs232 mode
Definition at line 42 of file usart_defines.h.
| #define USART_MODE_RS485 0x01 |
Operate usart in rs485 mode
Definition at line 44 of file usart_defines.h.
| #define USART_MODE_SW_HSH 0x0C |
Operate usart in rs232 with software handshaking
Definition at line 56 of file usart_defines.h.
| #define USART_MULTIDROP_PARITY 6 |
Parity bit is used to flag address characters
Definition at line 39 of file usart_defines.h.
| #define USART_NO_PARITY 4 |
Don't use a parity bit
Definition at line 37 of file usart_defines.h.
| #define USART_NORMAL_CHMODE 0 |
Set usart channel to normal communcation
Definition at line 59 of file usart_defines.h.
| #define USART_ODD_PARITY 1 |
Use odd parity on character transmission
Definition at line 31 of file usart_defines.h.
| #define USART_REMOTE_LOOPBACK 3 |
Set usart channel to remote loopback
Definition at line 65 of file usart_defines.h.
| #define USART_RX_EMPTY 3 |
Value returned by receiver function when nothing was received
Definition at line 15 of file usart_defines.h.
| #define USART_RX_ERROR 4 |
Value returned by receiver function when transmission error occured
Definition at line 17 of file usart_defines.h.
| #define USART_SPACE_PARITY 2 |
Use a space as parity bit
Definition at line 33 of file usart_defines.h.
| #define USART_SUCCESS 0 |
Value returned by function when it completed successfully
Definition at line 5 of file usart_defines.h.
| #define USART_TX_BUSY 2 |
Value returned by transmission function when transmitter was busy
Definition at line 13 of file usart_defines.h.
1.5.1