Simple config class that encapsulate the port parameters for a USB port.
This should cover enough paramter to setup the USB port for the imu_3DM_GX3_25, imu_3DM_GX3_45 and the imu_3DM_GX5 in xenomai, rt_preempt and ubuntu (potentially MacOS: non posix).
Public Types
-
enum StopBits
This is if one wants 1 or 2 stop bits.
Values:
-
enumerator one
-
enumerator two
-
enum DataBits
This correspond to the number of data bits echanged.
Values:
-
enumerator cs7
-
enumerator cs8
Public Functions
-
int get_bauderate()
Get the _bauderate object.
- Returns:
int
Public Members
-
bool rts_cts_enabled_
Enabling/Disabling rts cts.
TODO: look for what is rts cts
-
bool parity_
Use or not a parity bit.
-
StopBits stop_bits_
Defines the choice of the stop bits.
(see enum StopBits)
-
bool prepare_size_definition_
Defines if the port should prepare the size definition.
-
DataBits data_bits_
Defines the number of bits echanged.
(see enum DataBits)
-
int baude_rate_
Defines the BaudeRate to be used.
(see enum BaudeRate)