pub struct wifi_csi_info {
pub rx_ctrl: wifi_pkt_rx_ctrl,
pub mac: Vec<u8, 6>,
pub dmac: Vec<u8, 6>,
pub first_word_invalid: bool,
pub buf: Vec<u8, 30>,
pub len: u32,
pub _has: _Hazzer,
}
Fields§
§rx_ctrl: wifi_pkt_rx_ctrl
§mac: Vec<u8, 6>
§dmac: Vec<u8, 6>
§first_word_invalid: bool
§buf: Vec<u8, 30>
§len: u32
§_has: _Hazzer
Implementations§
Source§impl wifi_csi_info
impl wifi_csi_info
Sourcepub fn rx_ctrl(&self) -> Option<&wifi_pkt_rx_ctrl>
pub fn rx_ctrl(&self) -> Option<&wifi_pkt_rx_ctrl>
Return a reference to rx_ctrl
as an Option
Sourcepub fn set_rx_ctrl(&mut self, value: wifi_pkt_rx_ctrl) -> &mut Self
pub fn set_rx_ctrl(&mut self, value: wifi_pkt_rx_ctrl) -> &mut Self
Set the value and presence of rx_ctrl
Sourcepub fn mut_rx_ctrl(&mut self) -> Option<&mut wifi_pkt_rx_ctrl>
pub fn mut_rx_ctrl(&mut self) -> Option<&mut wifi_pkt_rx_ctrl>
Return a mutable reference to rx_ctrl
as an Option
Sourcepub fn clear_rx_ctrl(&mut self) -> &mut Self
pub fn clear_rx_ctrl(&mut self) -> &mut Self
Clear the presence of rx_ctrl
Sourcepub fn take_rx_ctrl(&mut self) -> Option<wifi_pkt_rx_ctrl>
pub fn take_rx_ctrl(&mut self) -> Option<wifi_pkt_rx_ctrl>
Take the value of rx_ctrl
and clear its presence
Sourcepub fn init_rx_ctrl(self, value: wifi_pkt_rx_ctrl) -> Self
pub fn init_rx_ctrl(self, value: wifi_pkt_rx_ctrl) -> Self
Builder method that sets the value of rx_ctrl
. Useful for initializing the message.
Sourcepub fn init_mac(self, value: Vec<u8, 6>) -> Self
pub fn init_mac(self, value: Vec<u8, 6>) -> Self
Builder method that sets the value of mac
. Useful for initializing the message.
Sourcepub fn init_dmac(self, value: Vec<u8, 6>) -> Self
pub fn init_dmac(self, value: Vec<u8, 6>) -> Self
Builder method that sets the value of dmac
. Useful for initializing the message.
Sourcepub fn first_word_invalid(&self) -> &bool
pub fn first_word_invalid(&self) -> &bool
Return a reference to first_word_invalid
Sourcepub fn mut_first_word_invalid(&mut self) -> &mut bool
pub fn mut_first_word_invalid(&mut self) -> &mut bool
Return a mutable reference to first_word_invalid
Sourcepub fn set_first_word_invalid(&mut self, value: bool) -> &mut Self
pub fn set_first_word_invalid(&mut self, value: bool) -> &mut Self
Set the value of first_word_invalid
Sourcepub fn init_first_word_invalid(self, value: bool) -> Self
pub fn init_first_word_invalid(self, value: bool) -> Self
Builder method that sets the value of first_word_invalid
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_csi_info
impl Clone for wifi_csi_info
Source§fn clone(&self) -> wifi_csi_info
fn clone(&self) -> wifi_csi_info
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 wifi_csi_info
impl Debug for wifi_csi_info
Source§impl Default for wifi_csi_info
impl Default for wifi_csi_info
Source§fn default() -> wifi_csi_info
fn default() -> wifi_csi_info
Returns the “default value” for a type. Read more
Source§impl MessageDecode for wifi_csi_info
impl MessageDecode for wifi_csi_info
Source§fn decode<IMPL_MICROPB_READ: PbRead>(
&mut self,
decoder: &mut PbDecoder<IMPL_MICROPB_READ>,
len: usize,
) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
fn decode<IMPL_MICROPB_READ: PbRead>( &mut self, decoder: &mut PbDecoder<IMPL_MICROPB_READ>, len: usize, ) -> Result<(), DecodeError<IMPL_MICROPB_READ::Error>>
Decode an instance of the message from the decoder and merge it into
self
. Read moreSource§fn decode_from_bytes(
&mut self,
bytes: &[u8],
) -> Result<(), DecodeError<Infallible>>
fn decode_from_bytes( &mut self, bytes: &[u8], ) -> Result<(), DecodeError<Infallible>>
Decode an instance of the message from the provided bytes
Source§fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
fn decode_len_delimited<R>(
&mut self,
decoder: &mut PbDecoder<R>,
) -> Result<(), DecodeError<<R as PbRead>::Error>>where
R: PbRead,
Decode an instance of the message from the decoder as a length-delimited record, starting with a length
prefix.
Source§impl MessageEncode for wifi_csi_info
impl MessageEncode for wifi_csi_info
Source§impl PartialEq for wifi_csi_info
impl PartialEq for wifi_csi_info
Auto Trait Implementations§
impl Freeze for wifi_csi_info
impl RefUnwindSafe for wifi_csi_info
impl Send for wifi_csi_info
impl Sync for wifi_csi_info
impl Unpin for wifi_csi_info
impl UnwindSafe for wifi_csi_info
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