|
template<typename T , std::size_t N> |
void | writeStringWithoutNullTerminator (vrpn_SerialPort &port, T(&buf)[N], std::size_t repetitions=1) |
| Utility function to take in a (typically) string literal and write it, without its null terminator, to the serial port, optionally repeatedly. More...
|
|
template<typename T , std::size_t N> |
void | writeCommand (vrpn_SerialPort &port, T(&buf)[N], std::size_t repetitions=1) |
| Utility function to take in a string literal and write it, without its null terminator, followed by a newline, to the serial port, optionally repeatedly. More...
|
|
template<std::size_t N> |
void | writeBinaryArray (vrpn_SerialPort &port, SerialBufType(&buf)[N], std::size_t repetitions=1) |
| Utility function to take in a binary array and write it verbatim to the serial port, optionally repeatedly. More...
|
|
int | main (int argc, char *argv[]) |
|
template<typename T , std::size_t N>
void writeCommand |
( |
vrpn_SerialPort & |
port, |
|
|
T(&) |
buf[N], |
|
|
std::size_t |
repetitions = 1 |
|
) |
| |
|
inline |
Utility function to take in a string literal and write it, without its null terminator, followed by a newline, to the serial port, optionally repeatedly.
(Size deduced by template)
template<typename T , std::size_t N>
void writeStringWithoutNullTerminator |
( |
vrpn_SerialPort & |
port, |
|
|
T(&) |
buf[N], |
|
|
std::size_t |
repetitions = 1 |
|
) |
| |
|
inline |
Utility function to take in a (typically) string literal and write it, without its null terminator, to the serial port, optionally repeatedly.
(Size deduced by template)