pub struct ActivationSet {
pub manufacturer_id: u16,
pub firmware_id: u16,
pub checksum: u16,
pub target: u8,
pub hardware_version: Option<u8>,
}Expand description
Firmware Update Meta Data Activation Set (0x7a 0x08).
Fields§
§manufacturer_id: u16The manufacturer_id field.
firmware_id: u16The firmware_id field.
checksum: u16The checksum field.
target: u8The target field.
hardware_version: Option<u8>The hardware_version field.
Implementations§
Source§impl ActivationSet
impl ActivationSet
Sourcepub fn parse(p: &[u8]) -> Result<Self, ParseError>
pub fn parse(p: &[u8]) -> Result<Self, ParseError>
Parses the payload after the command id. Extra trailing bytes (newer versions) are ignored.
Sourcepub fn encode_payload(&self, w: &mut Vec<u8>)
pub fn encode_payload(&self, w: &mut Vec<u8>)
Appends the payload after the command id.
Trait Implementations§
Source§impl Clone for ActivationSet
impl Clone for ActivationSet
Source§impl Debug for ActivationSet
impl Debug for ActivationSet
Source§impl Default for ActivationSet
impl Default for ActivationSet
impl Eq for ActivationSet
Source§impl From<ActivationSet> for Command
impl From<ActivationSet> for Command
Source§fn from(c: ActivationSet) -> Self
fn from(c: ActivationSet) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ActivationSet
impl PartialEq for ActivationSet
impl StructuralPartialEq for ActivationSet
Auto Trait Implementations§
impl Freeze for ActivationSet
impl RefUnwindSafe for ActivationSet
impl Send for ActivationSet
impl Sync for ActivationSet
impl Unpin for ActivationSet
impl UnsafeUnpin for ActivationSet
impl UnwindSafe for ActivationSet
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