Expand description
Reset the device (host => Piksi)
This message from the host resets the Piksi back into the bootloader.
Fields
sender_id: Option<u16>
The message sender_id
flags: u32
Reset flags
Implementations
sourceimpl MsgReset
impl MsgReset
sourcepub fn default_settings(&self) -> Result<DefaultSettings, u8>
pub fn default_settings(&self) -> Result<DefaultSettings, u8>
Gets the DefaultSettings stored in the flags
bitfield.
Returns Ok
if the bitrange contains a known DefaultSettings
variant.
Otherwise the value of the bitrange is returned as an Err(u8)
. This may be because of a malformed message,
or because new variants of DefaultSettings
were added.
sourcepub fn set_default_settings(&mut self, default_settings: DefaultSettings)
pub fn set_default_settings(&mut self, default_settings: DefaultSettings)
Set the bitrange corresponding to the DefaultSettings of the flags
bitfield.
Trait Implementations
sourceimpl ConcreteMessage for MsgReset
impl ConcreteMessage for MsgReset
sourceconst MESSAGE_TYPE: u16
const MESSAGE_TYPE: u16
The message type.
sourceconst MESSAGE_NAME: &'static str
const MESSAGE_NAME: &'static str
The message name.
sourceimpl SbpMessage for MsgReset
impl SbpMessage for MsgReset
sourcefn message_name(&self) -> &'static str
fn message_name(&self) -> &'static str
Get the message name.
sourcefn message_type(&self) -> u16
fn message_type(&self) -> u16
Get the message type.
sourcefn set_sender_id(&mut self, new_id: u16)
fn set_sender_id(&mut self, new_id: u16)
Set the sender id.
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Number of bytes this message will take on the wire.
Auto Trait Implementations
impl RefUnwindSafe for MsgReset
impl Send for MsgReset
impl Sync for MsgReset
impl Unpin for MsgReset
impl UnwindSafe for MsgReset
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more