36 #ifndef DRIVER_SVH_SERIAL_SERIALFLAGS_H_INCLUDED 37 #define DRIVER_SVH_SERIAL_SERIALFLAGS_H_INCLUDED 115 MCF_UNDEFINED = 0x800
122 , m_baud_rate(BR_9600)
123 , m_flow_control(FC_HAND_SHAKE)
124 , m_use_modem_control(true)
125 , m_modem_control_flags(MCF_UNDEFINED)
126 , m_enable_receiver(false)
127 , m_enable_stop_on_receive(false)
133 bool use_modem_control =
false,
134 bool enable_receiver =
false,
135 bool enable_stop_on_receive =
false,
137 : m_data_bits(data_bits)
140 , m_baud_rate(BR_9600)
141 , m_flow_control(FC_HAND_SHAKE)
142 , m_use_modem_control(use_modem_control)
143 , m_modem_control_flags(modem_control_flags)
144 , m_enable_receiver(enable_receiver)
145 , m_enable_stop_on_receive(enable_stop_on_receive)
152 bool use_modem_control =
false,
153 bool enable_receiver =
false,
154 bool enable_stop_on_receive =
false,
156 : m_data_bits(data_bits)
159 , m_baud_rate(baud_rate)
160 , m_flow_control(FC_HAND_SHAKE)
161 , m_use_modem_control(use_modem_control)
162 , m_modem_control_flags(modem_control_flags)
163 , m_enable_receiver(enable_receiver)
164 , m_enable_stop_on_receive(enable_stop_on_receive)
172 bool use_modem_control =
false,
173 bool enable_receiver =
false,
174 bool enable_stop_on_receive =
false,
176 : m_data_bits(data_bits)
177 , m_stop_bits(stop_bits)
179 , m_baud_rate(baud_rate)
180 , m_flow_control(FC_HAND_SHAKE)
181 , m_use_modem_control(use_modem_control)
182 , m_modem_control_flags(modem_control_flags)
183 , m_enable_receiver(enable_receiver)
184 , m_enable_stop_on_receive(enable_stop_on_receive)
189 : m_data_bits(flags.m_data_bits)
190 , m_stop_bits(flags.m_stop_bits)
191 , m_parity(flags.m_parity)
192 , m_baud_rate(flags.m_baud_rate)
193 , m_flow_control(flags.m_flow_control)
194 , m_use_modem_control(flags.m_use_modem_control)
195 , m_modem_control_flags(flags.m_modem_control_flags)
196 , m_enable_receiver(flags.m_enable_receiver)
197 , m_enable_stop_on_receive(false)
214 #ifdef _SYSTEM_POSIX_ 215 unsigned long cFlags()
const;
216 static unsigned long cFlags(
BaudRate baud_rate);
218 #ifdef _SYSTEM_WIN32_ 219 void GetDCB(LPDCB dcb)
const;
ModemControlFlags m_modem_control_flags
bool enableReceiver() const
#define DRIVER_SVH_IMPORT_EXPORT
bool useModemControl() const
void setBaudRate(BaudRate baud_rate)
bool enableStopOnReceive() const
SerialFlags(BaudRate baud_rate, DataBits data_bits, Parity parity=P_NONE, bool use_modem_control=false, bool enable_receiver=false, bool enable_stop_on_receive=false, ModemControlFlags modem_control_flags=MCF_UNDEFINED)
FlowControl getFlowControl() const
BaudRate getBaudRate() const
bool m_enable_stop_on_receive
ModemControlFlags getModemControlFlags() const
SerialFlags(BaudRate baud_rate, Parity parity, DataBits data_bits, StopBits stop_bits, bool use_modem_control=false, bool enable_receiver=false, bool enable_stop_on_receive=false, ModemControlFlags modem_control_flags=MCF_UNDEFINED)
SerialFlags(const SerialFlags &flags)
SerialFlags(DataBits data_bits, Parity parity=P_NONE, bool use_modem_control=false, bool enable_receiver=false, bool enable_stop_on_receive=false, ModemControlFlags modem_control_flags=MCF_UNDEFINED)
FlowControl m_flow_control
StopBits getStopBits() const
DataBits getDataBits() const
Short description of tSerialFlags.