Used to present a unique serial interface to the world
![]() | crc (unsigned short int crc_value, unsigned char data) CRC function |
![]() | remove_lock (void) Remove the lock file |
Used to present a unique serial interface to the world. It is an object taylor made for BSD on NeXT. If it is necessary to port it elsewhere feel free to do so... NeXT handles some things different as the LOCK file and some other things. The only things handled are sending and receiving bytes through the serial I/O. What is an addition is the crc checksum on the fly. This could take place in the protocol but was left for the basics to ensure a reliable transmission. Something that is still missing in version 1.0 is a good treatment of a timeout and a reconnection of the line... What is also in this package is the signal handler serving a lot of different signals. What was added in version 1.1 is the method Activities, to remove all the nasty syslog stuff out of the signal handler. Nevertheless is this the right place for a future extension.
unsigned short int rx_crc
int fd
bool locked
unsigned short int crc(unsigned short int crc_value, unsigned char data)
data - The data to take into account
void remove_lock(void)
void RTS_toggle(void)
bool Ring_Alarm(void)
bool Signal_Escape(void)
void Activities(void)
void tx_crc_init(void)
void rx_crc_init(void)
bool rx_ok(void)
bool send(const unsigned char data)
bool send_crc(void)
bool receive(unsigned char *cptr, int n=1)
n - Number of desired bytes, default is one
void enable_watchdog(void)
void disable_watchdog(void)
rs232(void)
~rs232(void)
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de