pub struct wifi_ant_config {
pub rx_ant_mode: i32,
pub rx_ant_default: i32,
pub tx_ant_mode: i32,
pub enabled_ant0: u32,
pub enabled_ant1: u32,
}
Fields§
§rx_ant_mode: i32
§rx_ant_default: i32
§tx_ant_mode: i32
§enabled_ant0: u32
§enabled_ant1: u32
Implementations§
Source§impl wifi_ant_config
impl wifi_ant_config
Sourcepub fn rx_ant_mode(&self) -> &i32
pub fn rx_ant_mode(&self) -> &i32
Return a reference to rx_ant_mode
Sourcepub fn mut_rx_ant_mode(&mut self) -> &mut i32
pub fn mut_rx_ant_mode(&mut self) -> &mut i32
Return a mutable reference to rx_ant_mode
Sourcepub fn set_rx_ant_mode(&mut self, value: i32) -> &mut Self
pub fn set_rx_ant_mode(&mut self, value: i32) -> &mut Self
Set the value of rx_ant_mode
Sourcepub fn init_rx_ant_mode(self, value: i32) -> Self
pub fn init_rx_ant_mode(self, value: i32) -> Self
Builder method that sets the value of rx_ant_mode
. Useful for initializing the message.
Sourcepub fn rx_ant_default(&self) -> &i32
pub fn rx_ant_default(&self) -> &i32
Return a reference to rx_ant_default
Sourcepub fn mut_rx_ant_default(&mut self) -> &mut i32
pub fn mut_rx_ant_default(&mut self) -> &mut i32
Return a mutable reference to rx_ant_default
Sourcepub fn set_rx_ant_default(&mut self, value: i32) -> &mut Self
pub fn set_rx_ant_default(&mut self, value: i32) -> &mut Self
Set the value of rx_ant_default
Sourcepub fn init_rx_ant_default(self, value: i32) -> Self
pub fn init_rx_ant_default(self, value: i32) -> Self
Builder method that sets the value of rx_ant_default
. Useful for initializing the message.
Sourcepub fn tx_ant_mode(&self) -> &i32
pub fn tx_ant_mode(&self) -> &i32
Return a reference to tx_ant_mode
Sourcepub fn mut_tx_ant_mode(&mut self) -> &mut i32
pub fn mut_tx_ant_mode(&mut self) -> &mut i32
Return a mutable reference to tx_ant_mode
Sourcepub fn set_tx_ant_mode(&mut self, value: i32) -> &mut Self
pub fn set_tx_ant_mode(&mut self, value: i32) -> &mut Self
Set the value of tx_ant_mode
Sourcepub fn init_tx_ant_mode(self, value: i32) -> Self
pub fn init_tx_ant_mode(self, value: i32) -> Self
Builder method that sets the value of tx_ant_mode
. Useful for initializing the message.
Sourcepub fn enabled_ant0(&self) -> &u32
pub fn enabled_ant0(&self) -> &u32
Return a reference to enabled_ant0
Sourcepub fn mut_enabled_ant0(&mut self) -> &mut u32
pub fn mut_enabled_ant0(&mut self) -> &mut u32
Return a mutable reference to enabled_ant0
Sourcepub fn set_enabled_ant0(&mut self, value: u32) -> &mut Self
pub fn set_enabled_ant0(&mut self, value: u32) -> &mut Self
Set the value of enabled_ant0
Sourcepub fn init_enabled_ant0(self, value: u32) -> Self
pub fn init_enabled_ant0(self, value: u32) -> Self
Builder method that sets the value of enabled_ant0
. Useful for initializing the message.
Sourcepub fn enabled_ant1(&self) -> &u32
pub fn enabled_ant1(&self) -> &u32
Return a reference to enabled_ant1
Sourcepub fn mut_enabled_ant1(&mut self) -> &mut u32
pub fn mut_enabled_ant1(&mut self) -> &mut u32
Return a mutable reference to enabled_ant1
Sourcepub fn set_enabled_ant1(&mut self, value: u32) -> &mut Self
pub fn set_enabled_ant1(&mut self, value: u32) -> &mut Self
Set the value of enabled_ant1
Sourcepub fn init_enabled_ant1(self, value: u32) -> Self
pub fn init_enabled_ant1(self, value: u32) -> Self
Builder method that sets the value of enabled_ant1
. Useful for initializing the message.
Trait Implementations§
Source§impl Clone for wifi_ant_config
impl Clone for wifi_ant_config
Source§fn clone(&self) -> wifi_ant_config
fn clone(&self) -> wifi_ant_config
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for wifi_ant_config
impl Debug for wifi_ant_config
Source§impl Default for wifi_ant_config
impl Default for wifi_ant_config
Source§fn default() -> wifi_ant_config
fn default() -> wifi_ant_config
Source§impl MessageDecode for wifi_ant_config
impl MessageDecode for wifi_ant_config
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>>
self
. Read more