Struct sGCSerialInterface
#[repr(C)]pub struct sGCSerialInterface {
pub interface: [i8; 50],
pub baud_rate: u32,
pub parity: u32,
pub stop_bits: u32,
pub data_bits: u32,
}Expand description
@brief Serial interface configuration
Contains configuration for a single serial interface. Plugins query this configuration by logical name to obtain the OS device path and settings. The plugin allocates this structure on the stack and passes a pointer to gcGetSerialInterface so it is overwritten by the function.
Fields§
§interface: [i8; 50]@brief OS interface path (e.g., “/dev/ttyS0”, “/dev/ttyM0”)
baud_rate: u32@brief Baud rate (e.g., 9600, 115200)
parity: u32@brief Parity setting
stop_bits: u32@brief Number of stop bits
data_bits: u32@brief Number of data bits
Trait Implementations§
§impl Clone for sGCSerialInterface
impl Clone for sGCSerialInterface
§fn clone(&self) -> sGCSerialInterface
fn clone(&self) -> sGCSerialInterface
Returns a duplicate 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 more§impl Debug for sGCSerialInterface
impl Debug for sGCSerialInterface
impl Copy for sGCSerialInterface
Auto Trait Implementations§
impl Freeze for sGCSerialInterface
impl RefUnwindSafe for sGCSerialInterface
impl Send for sGCSerialInterface
impl Sync for sGCSerialInterface
impl Unpin for sGCSerialInterface
impl UnsafeUnpin for sGCSerialInterface
impl UnwindSafe for sGCSerialInterface
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