|
Monado OpenXR Runtime
|
Representing a single serial interface on a device. More...
#include <os/os_serial.h>

Static Public Member Functions | |
| static ssize_t | os_serial_read (struct os_serial_device *serial_dev, uint8_t *data, size_t size, int milliseconds) |
| Read the next input report, if any, from the given serial device. | |
| static ssize_t | os_serial_write (struct os_serial_device *serial_dev, const uint8_t *data, size_t size) |
| Write an output report to the given device. | |
| static int | os_serial_set_line_control (struct os_serial_device *serial_dev, bool dtr, bool rts) |
| Set the line control signals (DTR and RTS) for the given serial device. | |
| static void | os_serial_destroy (struct os_serial_device *serial_dev) |
| Close and free the given device. | |
Data Fields | |
| ssize_t(* | read )(struct os_serial_device *serial_dev, uint8_t *data, size_t size, int milliseconds) |
| ssize_t(* | write )(struct os_serial_device *serial_dev, const uint8_t *data, size_t size) |
| int(* | set_line_control )(struct os_serial_device *serial_dev, bool dtr, bool rts) |
| void(* | destroy )(struct os_serial_device *serial_dev) |
Representing a single serial interface on a device.
|
inlinestatic |
Close and free the given device.
|
inlinestatic |
Read the next input report, if any, from the given serial device.
If milliseconds are negative, this call blocks indefinitely, 0 polls, and positive will block for that amount of milliseconds.
|
inlinestatic |
Set the line control signals (DTR and RTS) for the given serial device.
|
inlinestatic |
Write an output report to the given device.