Struct sbp::messages::piksi::msg_reset_filters::MsgResetFilters
source · [−]Expand description
Reset IAR filters (host => Piksi)
This message resets either the DGNSS Kalman filters or Integer Ambiguity Resolution (IAR) process.
Fields
sender_id: Option<u16>
The message sender_id
filter: u8
Filter flags
Implementations
sourceimpl MsgResetFilters
impl MsgResetFilters
sourcepub fn filter_or_process_to_reset(&self) -> Result<FilterOrProcessToReset, u8>
pub fn filter_or_process_to_reset(&self) -> Result<FilterOrProcessToReset, u8>
Gets the FilterOrProcessToReset stored in the filter
bitfield.
Returns Ok
if the bitrange contains a known FilterOrProcessToReset
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 FilterOrProcessToReset
were added.
sourcepub fn set_filter_or_process_to_reset(
&mut self,
filter_or_process_to_reset: FilterOrProcessToReset
)
pub fn set_filter_or_process_to_reset(
&mut self,
filter_or_process_to_reset: FilterOrProcessToReset
)
Set the bitrange corresponding to the FilterOrProcessToReset of the filter
bitfield.
Trait Implementations
sourceimpl Clone for MsgResetFilters
impl Clone for MsgResetFilters
sourcefn clone(&self) -> MsgResetFilters
fn clone(&self) -> MsgResetFilters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl ConcreteMessage for MsgResetFilters
impl ConcreteMessage for MsgResetFilters
sourceconst MESSAGE_TYPE: u16 = 34u16
const MESSAGE_TYPE: u16 = 34u16
The message type.
sourceconst MESSAGE_NAME: &'static str = "MSG_RESET_FILTERS"
const MESSAGE_NAME: &'static str = "MSG_RESET_FILTERS"
The message name.
sourceimpl Debug for MsgResetFilters
impl Debug for MsgResetFilters
sourceimpl From<MsgResetFilters> for Sbp
impl From<MsgResetFilters> for Sbp
sourcefn from(msg: MsgResetFilters) -> Self
fn from(msg: MsgResetFilters) -> Self
Converts to this type from the input type.
sourceimpl SbpMessage for MsgResetFilters
impl SbpMessage for MsgResetFilters
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 MsgResetFilters
impl Send for MsgResetFilters
impl Sync for MsgResetFilters
impl Unpin for MsgResetFilters
impl UnwindSafe for MsgResetFilters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more