#[repr(C)]pub struct usartConnectParameters {
pub portName: [c_char; 100],
pub baudrate: c_uint,
pub parity: usartParity,
pub dataBits: c_uchar,
pub stopBits: f32,
pub flowControl: usartFlowControl,
pub statusRTS: c_int,
pub statusDTR: c_int,
pub noinitBits: c_uchar,
pub rdu: c_char,
pub tzenreg: c_char,
}
Expand description
\struct usartConnectParameters \brief Specify the USART connect parameters.
Fields§
§portName: [c_char; 100]
< Interface identifier: COM1, COM2, /dev/ttyS0…
baudrate: c_uint
< Speed transmission: 115200, 9600…
parity: usartParity
< Parity bit: value in usartParity.
dataBits: c_uchar
< Data bit: value in {6, 7, 8}.
stopBits: f32
< Stop bit: value in {1, 1.5, 2}.
flowControl: usartFlowControl
< Flow control: value in usartFlowControl.
statusRTS: c_int
< RTS: Value in {0,1}.
statusDTR: c_int
< DTR: Value in {0,1}.
noinitBits: c_uchar
< Set No Init bits: value in {0,1}.
rdu: c_char
< request a read unprotect: value in {0,1}.
tzenreg: c_char
< request a TZEN regression: value in {0,1}.
Trait Implementations§
Source§impl Clone for usartConnectParameters
impl Clone for usartConnectParameters
Source§fn clone(&self) -> usartConnectParameters
fn clone(&self) -> usartConnectParameters
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for usartConnectParameters
impl Debug for usartConnectParameters
impl Copy for usartConnectParameters
Auto Trait Implementations§
impl Freeze for usartConnectParameters
impl RefUnwindSafe for usartConnectParameters
impl Send for usartConnectParameters
impl Sync for usartConnectParameters
impl Unpin for usartConnectParameters
impl UnwindSafe for usartConnectParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more