[][src]Struct rubble_nrf52810::radio::BleRadio

pub struct BleRadio { /* fields omitted */ }

An interface to the nRF radio in BLE mode.

Methods

impl BleRadio[src]

pub fn new(
    radio: RADIO,
    tx_buf: &'static mut PacketBuffer,
    rx_buf: &'static mut PacketBuffer
) -> Self
[src]

Initializes the radio in BLE mode and takes ownership of the RX and TX buffers.

pub fn state(&self) -> STATER[src]

Returns the current radio state.

pub fn configure_receiver(&mut self, cmd: RadioCmd)[src]

Configures the Radio for (not) receiving data according to cmd.

pub fn recv_interrupt<HW: HardwareInterface<Tx = Self>>(
    &mut self,
    timestamp: Instant,
    ll: &mut LinkLayer<HW>
) -> NextUpdate
[src]

Call this when the RADIO interrupt fires.

Automatically reconfigures the radio according to the RadioCmd returned by the BLE stack.

Returns when the update method should be called the next time.

Trait Implementations

impl Transmitter for BleRadio[src]

Auto Trait Implementations

impl Send for BleRadio

impl !Sync for BleRadio

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self