4#include "vrpn_Configure.h"
33 vrpn_SER_PARITY parity = vrpn_SER_PARITY_NONE,
34 bool rts_flow =
false);
42extern VRPN_API
int vrpn_set_rts(
int comm);
43extern VRPN_API
int vrpn_clear_rts(
int comm);
46extern VRPN_API
int vrpn_close_commport(
int comm);
71vrpn_read_available_characters(
int comm,
unsigned char *buffer,
size_t count);
72extern VRPN_API
int vrpn_read_available_characters(
int comm,
73 unsigned char *buffer,
75 struct timeval *timeout);
86extern VRPN_API
int vrpn_write_characters(
int comm,
const unsigned char *buffer,
88extern VRPN_API
int vrpn_write_slowly(
int comm,
const unsigned char *buffer,
89 size_t bytes,
int millisec_delay);
VRPN_API int vrpn_flush_input_buffer(int comm)
Throw out any characters within the input buffer.
VRPN_API int vrpn_open_commport(const char *portname, long baud, int charsize=8, vrpn_SER_PARITY parity=vrpn_SER_PARITY_NONE, bool rts_flow=false)
Open a serial port, given its name and baud rate.
VRPN_API int vrpn_flush_output_buffer(int comm)
Throw out any characters (do not send) within the output buffer
VRPN_API int vrpn_drain_output_buffer(int comm)
Wait until all of the characters in the output buffer are sent, then return.