vrpn
07.33
Virtual Reality Peripheral Network
|
Go to the documentation of this file.
34 bool rts_flow =
false);
73 unsigned char *buffer,
75 struct timeval *timeout);
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_clear_rts(int comm)
VRPN_API int vrpn_close_commport(int comm)
VRPN_API int vrpn_write_slowly(int comm, const unsigned char *buffer, size_t bytes, int millisec_delay)
VRPN_API int vrpn_flush_output_buffer(int comm)
Throw out any characters (do not send) within the output buffer.
VRPN_API int vrpn_read_available_characters(int comm, unsigned char *buffer, size_t count)
VRPN_API int vrpn_set_rts(int comm)
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_write_characters(int comm, const unsigned char *buffer, size_t bytes)
Write the buffer to the serial port.
VRPN_API int vrpn_drain_output_buffer(int comm)
Wait until all of the characters in the output buffer are sent, then return.