Go to the source code of this file.
◆ COMM_SPEED_38400
#define COMM_SPEED_38400 1 |
◆ COMM_SPEED_9600
#define COMM_SPEED_9600 0 |
◆ ERR_SIO_BUSY
#define ERR_SIO_BUSY 0x8100 |
◆ ERR_SIO_CANCEL
#define ERR_SIO_CANCEL 0x8103 |
◆ ERR_SIO_OK
◆ ERR_SIO_OVERRUN
#define ERR_SIO_OVERRUN 0x8102 |
◆ ERR_SIO_TIMEOUT
#define ERR_SIO_TIMEOUT 0x8101 |
◆ ERR_XM_BLOCK_LOST
#define ERR_XM_BLOCK_LOST 0x8106 |
◆ ERR_XM_CANCELED
#define ERR_XM_CANCELED 0x8105 |
◆ ERR_XM_STATECODE
#define ERR_XM_STATECODE 0x8104 |
◆ ERR_XM_TOO_LARGE
#define ERR_XM_TOO_LARGE 0x8107 |
◆ comm_close()
static void comm_close |
( |
void | | ) |
|
|
inlinestatic |
◆ comm_get_baudrate()
static uint16_t comm_get_baudrate |
( |
void | | ) |
|
|
inlinestatic |
- Returns
- Current baud rate
Definition at line 146 of file comm.h.
◆ comm_get_cancel_key()
static uint16_t comm_get_cancel_key |
( |
void | | ) |
|
|
inlinestatic |
- Returns
- Current cancel key combination
Definition at line 173 of file comm.h.
◆ comm_open()
static void comm_open |
( |
void | | ) |
|
|
inlinestatic |
◆ comm_receive_block()
int16_t comm_receive_block |
( |
void __far * | data, |
|
|
uint16_t | length, |
|
|
int16_t __far * | out_length ) |
- Parameters
-
data | Data buffer |
length | Length of buffer, in bytes |
out_length | Length of data received, in bytes |
- Returns
- Return code
◆ comm_receive_char()
static int16_t comm_receive_char |
( |
void | | ) |
|
|
inlinestatic |
Receive a character using the default timeout.
- Returns
- Character read on success, negative on error
Definition at line 68 of file comm.h.
◆ comm_receive_with_timeout()
static int16_t comm_receive_with_timeout |
( |
uint16_t | timeout | ) |
|
|
inlinestatic |
Receive a character using an user-provided timeout.
- Parameters
-
timeout | Timeout, in frames |
- Returns
- Character read on success, negative on error
Definition at line 84 of file comm.h.
◆ comm_send_block()
int16_t comm_send_block |
( |
const void __far * | data, |
|
|
uint16_t | length ) |
- Parameters
-
data | Data to send |
length | Length of data to send |
- Returns
- Return code
◆ comm_send_char()
static int16_t comm_send_char |
( |
uint8_t | ch | ) |
|
|
inlinestatic |
- Parameters
-
- Returns
- Zero on success, negative on error
Definition at line 53 of file comm.h.
◆ comm_send_string()
int16_t comm_send_string |
( |
const char __far * | str | ) |
|
- Parameters
-
- Returns
- Return code
◆ comm_set_baudrate()
static void comm_set_baudrate |
( |
uint16_t | value | ) |
|
|
inlinestatic |
- Parameters
-
Definition at line 133 of file comm.h.
◆ comm_set_cancel_key()
static void comm_set_cancel_key |
( |
uint16_t | value | ) |
|
|
inlinestatic |
- Parameters
-
value | New cancel key combination |
Definition at line 160 of file comm.h.
◆ comm_set_timeout()
static void comm_set_timeout |
( |
uint16_t | recv_timeout, |
|
|
uint16_t | send_timeout ) |
|
inlinestatic |
- Parameters
-
recv_timeout | Receive timeout |
send_timeout | Send timeout |
Definition at line 120 of file comm.h.