|
OpenCPN Partial API docs
|
Structure for setting the timeout of the serial port, times are in milliseconds. More...
#include <serial.h>
Public Member Functions | |
| Timeout (uint32_t inter_byte_timeout_=0, uint32_t read_timeout_constant_=0, uint32_t read_timeout_multiplier_=0, uint32_t write_timeout_constant_=0, uint32_t write_timeout_multiplier_=0) | |
Static Public Member Functions | |
| static uint32_t | max () |
| static Timeout | simpleTimeout (uint32_t timeout) |
| Convenience function to generate Timeout structs using a single absolute timeout. | |
Public Attributes | |
| uint32_t | inter_byte_timeout |
| Number of milliseconds between bytes received to timeout on. | |
| uint32_t | read_timeout_constant |
| A constant number of milliseconds to wait after calling read. | |
| uint32_t | read_timeout_multiplier |
| A multiplier against the number of requested bytes to wait after calling read. | |
| uint32_t | write_timeout_constant |
| A constant number of milliseconds to wait after calling write. | |
| uint32_t | write_timeout_multiplier |
| A multiplier against the number of requested bytes to wait after calling write. | |
Structure for setting the timeout of the serial port, times are in milliseconds.
In order to disable the interbyte timeout, set it to Timeout::max().
|
inlineexplicit |
|
inlinestatic |
| uint32_t serial::Timeout::inter_byte_timeout |
| uint32_t serial::Timeout::read_timeout_constant |
| uint32_t serial::Timeout::read_timeout_multiplier |
| uint32_t serial::Timeout::write_timeout_constant |
| uint32_t serial::Timeout::write_timeout_multiplier |