libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
BIOS - INT 14h - Serial

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)
 

Detailed Description

Macro Definition Documentation

◆ COMM_SPEED_38400

#define COMM_SPEED_38400   1

Definition at line 54 of file comm.h.

◆ COMM_SPEED_9600

#define COMM_SPEED_9600   0

Definition at line 53 of file comm.h.

◆ ERR_SIO_BUSY

#define ERR_SIO_BUSY   0x8100

Definition at line 38 of file comm.h.

◆ ERR_SIO_CANCEL

#define ERR_SIO_CANCEL   0x8103

Definition at line 41 of file comm.h.

◆ ERR_SIO_OVERRUN

#define ERR_SIO_OVERRUN   0x8102

Definition at line 40 of file comm.h.

◆ ERR_SIO_TIMEOUT

#define ERR_SIO_TIMEOUT   0x8101

Definition at line 39 of file comm.h.

Function Documentation

◆ comm_close()

void comm_close ( void )

◆ comm_get_baudrate()

uint16_t comm_get_baudrate ( void )

◆ comm_get_cancel_key()

uint16_t comm_get_cancel_key ( void )

◆ comm_open()

void comm_open ( void )

◆ comm_receive_block()

void comm_receive_block ( const void __far * buf,
uint16_t length,
uint16_t * out_length )

◆ comm_receive_char()

int comm_receive_char ( void )

◆ comm_receive_with_timeout()

int comm_receive_with_timeout ( uint16_t timeout)

◆ comm_send_block()

uint16_t comm_send_block ( const void __far * buf,
uint16_t length )

◆ comm_send_char()

uint16_t comm_send_char ( int c)

◆ comm_send_string()

uint16_t comm_send_string ( const char __far * str)

◆ comm_set_baudrate()

void comm_set_baudrate ( uint16_t rate)

Set the new baud rate.

This function cannot be called while the serial connection is open.

Parameters
rateThe new baud rate ( COMM_SPEED_9600 or COMM_SPEED_38400 )

◆ comm_set_cancel_key()

void comm_set_cancel_key ( uint16_t value)

◆ comm_set_timeout()

void comm_set_timeout ( uint16_t recv_timeout,
uint16_t send_timeout )