Struct capsules_extra::rf233::RF233
source · pub struct RF233<'a, S: SpiMasterDevice<'a>> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a, S: SpiMasterDevice<'a>> Client for RF233<'a, S>
impl<'a, S: SpiMasterDevice<'a>> Client for RF233<'a, S>
source§impl<'a, S: SpiMasterDevice<'a>> RadioConfig<'a> for RF233<'a, S>
impl<'a, S: SpiMasterDevice<'a>> RadioConfig<'a> for RF233<'a, S>
source§fn get_tx_power(&self) -> i8
fn get_tx_power(&self) -> i8
The transmit power, in dBm
source§fn get_channel(&self) -> u8
fn get_channel(&self) -> u8
The 802.15.4 channel
source§fn busy(&self) -> bool
fn busy(&self) -> bool
Check if the radio is currently busy transmitting or receiving a packet. Read more
source§fn set_config_client(&self, client: &'a dyn ConfigClient)
fn set_config_client(&self, client: &'a dyn ConfigClient)
Set the client that is called when configuration finishes.
source§fn set_power_client(&self, client: &'a dyn PowerClient)
fn set_power_client(&self, client: &'a dyn PowerClient)
Set the client that is called when the radio changes power states.
source§fn set_address(&self, addr: u16)
fn set_address(&self, addr: u16)
Set the 802.15.4 short (16-bit) address for the radio. Read more
source§fn set_address_long(&self, addr: [u8; 8])
fn set_address_long(&self, addr: [u8; 8])
Set the 802.15.4 extended (64-bit) address for the radio. Read more
source§fn set_tx_power(&self, power: i8) -> Result<(), ErrorCode>
fn set_tx_power(&self, power: i8) -> Result<(), ErrorCode>
Set the radio’s transmit power. Read more
source§fn set_channel(&self, chan: RadioChannel)
fn set_channel(&self, chan: RadioChannel)
Set the 802.15.4 channel for the radio. Read more
source§fn get_address(&self) -> u16
fn get_address(&self) -> u16
Get the 802.15.4 short (16-bit) address for the radio. Read more
source§fn get_address_long(&self) -> [u8; 8]
fn get_address_long(&self) -> [u8; 8]
Get the 802.15.4 extended (64-bit) address for the radio. Read more
source§fn config_commit(&self)
fn config_commit(&self)
Commit the configuration calls to the radio. Read more
source§impl<'a, S: SpiMasterDevice<'a>> RadioData<'a> for RF233<'a, S>
impl<'a, S: SpiMasterDevice<'a>> RadioData<'a> for RF233<'a, S>
source§fn set_transmit_client(&self, client: &'a dyn TxClient)
fn set_transmit_client(&self, client: &'a dyn TxClient)
Set the client that will be called when packets are transmitted.
source§fn set_receive_client(&self, client: &'a dyn RxClient)
fn set_receive_client(&self, client: &'a dyn RxClient)
Set the client that will be called when packets are received.
source§fn set_receive_buffer(&self, buffer: &'static mut [u8])
fn set_receive_buffer(&self, buffer: &'static mut [u8])
Set the buffer to receive packets into. Read more
source§impl<'a, S: SpiMasterDevice<'a>> SpiMasterClient for RF233<'a, S>
impl<'a, S: SpiMasterDevice<'a>> SpiMasterClient for RF233<'a, S>
source§fn read_write_done(
&self,
_write: SubSliceMut<'static, u8>,
read: Option<SubSliceMut<'static, u8>>,
_spi_status: Result<usize, ErrorCode>,
)
fn read_write_done( &self, _write: SubSliceMut<'static, u8>, read: Option<SubSliceMut<'static, u8>>, _spi_status: Result<usize, ErrorCode>, )
Callback issued when a read/write operation finishes. Read more
Auto Trait Implementations§
impl<'a, S> !Freeze for RF233<'a, S>
impl<'a, S> !RefUnwindSafe for RF233<'a, S>
impl<'a, S> !Send for RF233<'a, S>
impl<'a, S> !Sync for RF233<'a, S>
impl<'a, S> Unpin for RF233<'a, S>
impl<'a, S> !UnwindSafe for RF233<'a, S>
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