libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
|
Macros | |
#define | ERR_SIO_BUSY 0x8100 |
#define | ERR_SIO_TIMEOUT 0x8101 |
#define | ERR_SIO_OVERRUN 0x8102 |
#define | ERR_SIO_CANCEL 0x8103 |
#define | COMM_SPEED_9600 0 |
#define | COMM_SPEED_38400 1 |
Functions | |
void | comm_open (void) |
void | comm_close (void) |
uint16_t | comm_send_char (int c) |
int | comm_receive_char (void) |
int | comm_receive_with_timeout (uint16_t timeout) |
uint16_t | comm_send_string (const char __far *str) |
uint16_t | comm_send_block (const void __far *buf, uint16_t length) |
void | comm_receive_block (const void __far *buf, uint16_t length, uint16_t *out_length) |
void | comm_set_timeout (uint16_t recv_timeout, uint16_t send_timeout) |
void | comm_set_baudrate (uint16_t rate) |
Set the new baud rate. | |
uint16_t | comm_get_baudrate (void) |
void | comm_set_cancel_key (uint16_t value) |
uint16_t | comm_get_cancel_key (void) |
void comm_close | ( | void | ) |
uint16_t comm_get_baudrate | ( | void | ) |
uint16_t comm_get_cancel_key | ( | void | ) |
void comm_open | ( | void | ) |
void comm_receive_block | ( | const void __far * | buf, |
uint16_t | length, | ||
uint16_t * | out_length ) |
int comm_receive_char | ( | void | ) |
int comm_receive_with_timeout | ( | uint16_t | timeout | ) |
uint16_t comm_send_block | ( | const void __far * | buf, |
uint16_t | length ) |
uint16_t comm_send_char | ( | int | c | ) |
uint16_t comm_send_string | ( | const char __far * | str | ) |
void comm_set_baudrate | ( | uint16_t | rate | ) |
Set the new baud rate.
This function cannot be called while the serial connection is open.
rate | The new baud rate ( COMM_SPEED_9600 or COMM_SPEED_38400 ) |
void comm_set_cancel_key | ( | uint16_t | value | ) |
void comm_set_timeout | ( | uint16_t | recv_timeout, |
uint16_t | send_timeout ) |