pub struct COMPONENT_INFORMATION_BASIC_DATA {
pub capabilities: MavProtocolCapability,
pub time_boot_ms: u32,
pub vendor_name: [u8; 32],
pub model_name: [u8; 32],
pub software_version: [u8; 24],
pub hardware_version: [u8; 24],
pub serial_number: [u8; 32],
}
development
only.Expand description
id: 396 Basic component information data. Should be requested using MAV_CMD_REQUEST_MESSAGE on startup, or when required..
Fields§
§capabilities: MavProtocolCapability
Component capability flags.
time_boot_ms: u32
Timestamp (time since system boot)..
vendor_name: [u8; 32]
Name of the component vendor. Needs to be zero terminated. The field is optional and can be empty/all zeros..
model_name: [u8; 32]
Name of the component model. Needs to be zero terminated. The field is optional and can be empty/all zeros..
software_version: [u8; 24]
Software version. The recommended format is SEMVER: ‘major.minor.patch’ (any format may be used). The field must be zero terminated if it has a value. The field is optional and can be empty/all zeros..
hardware_version: [u8; 24]
Hardware version. The recommended format is SEMVER: ‘major.minor.patch’ (any format may be used). The field must be zero terminated if it has a value. The field is optional and can be empty/all zeros..
serial_number: [u8; 32]
Hardware serial number. The field must be zero terminated if it has a value. The field is optional and can be empty/all zeros..
Implementations§
source§impl COMPONENT_INFORMATION_BASIC_DATA
impl COMPONENT_INFORMATION_BASIC_DATA
pub const ENCODED_LEN: usize = 156usize
pub const DEFAULT: Self = _
Trait Implementations§
source§impl Clone for COMPONENT_INFORMATION_BASIC_DATA
impl Clone for COMPONENT_INFORMATION_BASIC_DATA
source§fn clone(&self) -> COMPONENT_INFORMATION_BASIC_DATA
fn clone(&self) -> COMPONENT_INFORMATION_BASIC_DATA
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de> Deserialize<'de> for COMPONENT_INFORMATION_BASIC_DATA
impl<'de> Deserialize<'de> for COMPONENT_INFORMATION_BASIC_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>,
source§impl MessageData for COMPONENT_INFORMATION_BASIC_DATA
impl MessageData for COMPONENT_INFORMATION_BASIC_DATA
const ID: u32 = 396u32
const NAME: &'static str = "COMPONENT_INFORMATION_BASIC"
const EXTRA_CRC: u8 = 129u8
const ENCODED_LEN: usize = 156usize
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 COMPONENT_INFORMATION_BASIC_DATA
impl PartialEq for COMPONENT_INFORMATION_BASIC_DATA
source§fn eq(&self, other: &COMPONENT_INFORMATION_BASIC_DATA) -> bool
fn eq(&self, other: &COMPONENT_INFORMATION_BASIC_DATA) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for COMPONENT_INFORMATION_BASIC_DATA
Auto Trait Implementations§
impl Freeze for COMPONENT_INFORMATION_BASIC_DATA
impl RefUnwindSafe for COMPONENT_INFORMATION_BASIC_DATA
impl Send for COMPONENT_INFORMATION_BASIC_DATA
impl Sync for COMPONENT_INFORMATION_BASIC_DATA
impl Unpin for COMPONENT_INFORMATION_BASIC_DATA
impl UnwindSafe for COMPONENT_INFORMATION_BASIC_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
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)
clone_to_uninit
)