pub struct DeviceOpWrite {
pub target_system: u8,
pub target_component: u8,
pub request_id: u32,
pub bustype: DeviceOpBustype,
pub bus: u8,
pub address: u8,
pub busname: [u8; 40],
pub regstart: u8,
pub count: u8,
pub data: [u8; 128],
pub bank: u8,
}Expand description
MAVLink DEVICE_OP_WRITE message.
The minimum supported MAVLink version is MAVLink 2.
§Description
Write registers for a device.
§Encoding/Decoding
Message encoding/decoding are provided by implementing core::convert::TryFrom<Payload> for
DeviceOpWrite (encoding) and [IntoPayload] (decoding) traits.
These traits are implemented by Message proc macro.
Fields§
§target_system: u8MAVLink field target_system.
System ID.
target_component: u8MAVLink field target_component.
Component ID.
request_id: u32MAVLink field request_id.
Request ID - copied to reply.
bustype: DeviceOpBustypeMAVLink field bustype.
The bus type.
bus: u8MAVLink field bus.
Bus number.
address: u8MAVLink field address.
Bus address.
busname: [u8; 40]MAVLink field busname.
Name of device on bus (for SPI).
regstart: u8MAVLink field regstart.
First register to write.
count: u8MAVLink field count.
Count of registers to write.
data: [u8; 128]MAVLink field data.
Write data.
bank: u8MAVLink field bank.
Bank number.
Implementations§
Source§impl DeviceOpWrite
impl DeviceOpWrite
Sourcepub const fn spec() -> MessageInfo
pub const fn spec() -> MessageInfo
Returns specification for this message.
Sourcepub const fn message_id() -> u32
pub const fn message_id() -> u32
Message ID.
Sourcepub const fn min_supported_mavlink_version() -> MavLinkVersion
pub const fn min_supported_mavlink_version() -> MavLinkVersion
Minimum supported MAVLink version for this message.
Trait Implementations§
Source§impl Clone for DeviceOpWrite
impl Clone for DeviceOpWrite
Source§fn clone(&self) -> DeviceOpWrite
fn clone(&self) -> DeviceOpWrite
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeviceOpWrite
impl Debug for DeviceOpWrite
Source§impl Default for DeviceOpWrite
impl Default for DeviceOpWrite
Source§fn default() -> DeviceOpWrite
fn default() -> DeviceOpWrite
Source§impl<'de> Deserialize<'de> for DeviceOpWrite
impl<'de> Deserialize<'de> for DeviceOpWrite
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceOpWrite, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeviceOpWrite, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl From<DeviceOpWrite> for Ardupilotmega
impl From<DeviceOpWrite> for Ardupilotmega
Source§fn from(value: DeviceOpWrite) -> Ardupilotmega
fn from(value: DeviceOpWrite) -> Ardupilotmega
Source§impl IntoPayload for DeviceOpWrite
impl IntoPayload for DeviceOpWrite
Source§impl MessageSpec for DeviceOpWrite
impl MessageSpec for DeviceOpWrite
Source§impl MessageSpecStatic for DeviceOpWrite
impl MessageSpecStatic for DeviceOpWrite
Source§fn spec() -> MessageInfo
fn spec() -> MessageInfo
Source§fn message_id() -> u32
fn message_id() -> u32
ID.Source§fn min_supported_mavlink_version() -> MavLinkVersion
fn min_supported_mavlink_version() -> MavLinkVersion
Source§impl NamedType for DeviceOpWrite
impl NamedType for DeviceOpWrite
fn sid() -> SpectaID
Source§fn named_data_type(
type_map: &mut TypeCollection,
generics: &[DataType],
) -> NamedDataType
fn named_data_type( type_map: &mut TypeCollection, generics: &[DataType], ) -> NamedDataType
Source§fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
fn definition_named_data_type(type_map: &mut TypeCollection) -> NamedDataType
Source§impl PartialEq for DeviceOpWrite
impl PartialEq for DeviceOpWrite
Source§impl Serialize for DeviceOpWrite
impl Serialize for DeviceOpWrite
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl TryFrom<&Payload> for DeviceOpWrite
impl TryFrom<&Payload> for DeviceOpWrite
Source§impl Type for DeviceOpWrite
impl Type for DeviceOpWrite
Source§fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
fn inline(type_map: &mut TypeCollection, generics: Generics<'_>) -> DataType
Source§fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
fn reference(type_map: &mut TypeCollection, generics: &[DataType]) -> Reference
definition will be put into the type map.