pub struct SECURE_COMMAND_DATA {
pub sequence: u32,
pub operation: SecureCommandOp,
pub target_system: u8,
pub target_component: u8,
pub data_length: u8,
pub sig_length: u8,
pub data: [u8; 220],
}
Available on crate feature
storm32
only.Expand description
id: 11004 Send a secure command. Data should be signed with a private key corresponding with a public key known to the recipient. Signature should be over the concatenation of the sequence number (little-endian format), the operation (little-endian format) the data and the session key. For SECURE_COMMAND_GET_SESSION_KEY the session key should be zero length. The data array consists of the data followed by the signature. The sum of the data_length and the sig_length cannot be more than 220. The format of the data is command specific.
Fields§
§sequence: u32
Sequence ID for tagging reply.
operation: SecureCommandOp
Operation being requested.
target_system: u8
System ID.
target_component: u8
Component ID.
data_length: u8
Data length.
sig_length: u8
Signature length.
data: [u8; 220]
Signed data.
Implementations§
Source§impl SECURE_COMMAND_DATA
impl SECURE_COMMAND_DATA
pub const ENCODED_LEN: usize = 232usize
pub const DEFAULT: Self
Trait Implementations§
Source§impl Clone for SECURE_COMMAND_DATA
impl Clone for SECURE_COMMAND_DATA
Source§fn clone(&self) -> SECURE_COMMAND_DATA
fn clone(&self) -> SECURE_COMMAND_DATA
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 moreSource§impl Debug for SECURE_COMMAND_DATA
impl Debug for SECURE_COMMAND_DATA
Source§impl Default for SECURE_COMMAND_DATA
impl Default for SECURE_COMMAND_DATA
Source§impl<'de> Deserialize<'de> for SECURE_COMMAND_DATA
impl<'de> Deserialize<'de> for SECURE_COMMAND_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 SECURE_COMMAND_DATA
impl MessageData for SECURE_COMMAND_DATA
const ID: u32 = 11_004u32
const NAME: &'static str = "SECURE_COMMAND"
const EXTRA_CRC: u8 = 11u8
const ENCODED_LEN: usize = 232usize
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 SECURE_COMMAND_DATA
impl PartialEq for SECURE_COMMAND_DATA
Source§impl Serialize for SECURE_COMMAND_DATA
impl Serialize for SECURE_COMMAND_DATA
impl StructuralPartialEq for SECURE_COMMAND_DATA
Auto Trait Implementations§
impl Freeze for SECURE_COMMAND_DATA
impl RefUnwindSafe for SECURE_COMMAND_DATA
impl Send for SECURE_COMMAND_DATA
impl Sync for SECURE_COMMAND_DATA
impl Unpin for SECURE_COMMAND_DATA
impl UnwindSafe for SECURE_COMMAND_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