Struct mavlink::common::SERIAL_CONTROL_DATA
source · pub struct SERIAL_CONTROL_DATA {
pub baudrate: u32,
pub timeout: u16,
pub device: SerialControlDev,
pub flags: SerialControlFlag,
pub count: u8,
pub data: [u8; 70],
pub target_system: u8,
pub target_component: u8,
}
Available on crate feature
common
only.Expand description
id: 126 Control a serial port. This can be used for raw access to an onboard serial peripheral such as a GPS or telemetry radio. It is designed to make it possible to update the devices firmware via MAVLink messages or change the devices settings. A message with zero bytes can be used to change just the baudrate..
Fields§
§baudrate: u32
Baudrate of transfer. Zero means no change..
timeout: u16
Timeout for reply data.
device: SerialControlDev
Serial control device type..
flags: SerialControlFlag
Bitmap of serial control flags..
count: u8
how many bytes in this transfer.
data: [u8; 70]
serial data.
target_system: u8
System ID.
target_component: u8
Component ID.
Implementations§
source§impl SERIAL_CONTROL_DATA
impl SERIAL_CONTROL_DATA
pub const ENCODED_LEN: usize = 81usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for SERIAL_CONTROL_DATA
impl Clone for SERIAL_CONTROL_DATA
source§fn clone(&self) -> SERIAL_CONTROL_DATA
fn clone(&self) -> SERIAL_CONTROL_DATA
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 SERIAL_CONTROL_DATA
impl Debug for SERIAL_CONTROL_DATA
source§impl Default for SERIAL_CONTROL_DATA
impl Default for SERIAL_CONTROL_DATA
source§impl<'de> Deserialize<'de> for SERIAL_CONTROL_DATA
impl<'de> Deserialize<'de> for SERIAL_CONTROL_DATA
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageData for SERIAL_CONTROL_DATA
impl MessageData for SERIAL_CONTROL_DATA
const ID: u32 = 126u32
const NAME: &'static str = "SERIAL_CONTROL"
const EXTRA_CRC: u8 = 220u8
const ENCODED_LEN: usize = 81usize
type Message = MavMessage
fn deser(_version: MavlinkVersion, __input: &[u8]) -> Result<Self, ParserError>
fn ser(&self, version: MavlinkVersion, bytes: &mut [u8]) -> usize
source§impl PartialEq for SERIAL_CONTROL_DATA
impl PartialEq for SERIAL_CONTROL_DATA
source§impl Serialize for SERIAL_CONTROL_DATA
impl Serialize for SERIAL_CONTROL_DATA
impl StructuralPartialEq for SERIAL_CONTROL_DATA
Auto Trait Implementations§
impl Freeze for SERIAL_CONTROL_DATA
impl RefUnwindSafe for SERIAL_CONTROL_DATA
impl Send for SERIAL_CONTROL_DATA
impl Sync for SERIAL_CONTROL_DATA
impl Unpin for SERIAL_CONTROL_DATA
impl UnwindSafe for SERIAL_CONTROL_DATA
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)