libwwcl libwwcl
WWitch compatibility layer for the Wonderful toolchain
Loading...
Searching...
No Matches
comm.h File Reference
#include <ws.h>
#include "types.h"

Go to the source code of this file.

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

FreyaBIOS serial calls.

Definition in file comm.h.