Struct capsules::rf233::RF233 [] [src]

pub struct RF233<'a, S: SpiMasterDevice + 'a> {
    spi: &'a S,
    radio_on: Cell<bool>,
    transmitting: Cell<bool>,
    receiving: Cell<bool>,
    spi_busy: Cell<bool>,
    interrupt_handling: Cell<bool>,
    interrupt_pending: Cell<bool>,
    config_pending: Cell<bool>,
    sleep_pending: Cell<bool>,
    wake_pending: Cell<bool>,
    power_client_pending: Cell<bool>,
    reset_pin: &'a Pin,
    sleep_pin: &'a Pin,
    irq_pin: &'a Pin,
    irq_ctl: &'a PinCtl,
    state: Cell<InternalState>,
    tx_buf: TakeCell<'static, [u8]>,
    rx_buf: TakeCell<'static, [u8]>,
    tx_len: Cell<u8>,
    tx_client: Cell<Option<&'static TxClient>>,
    rx_client: Cell<Option<&'static RxClient>>,
    cfg_client: Cell<Option<&'static ConfigClient>>,
    power_client: Cell<Option<&'static PowerClient>>,
    addr: Cell<u16>,
    addr_long: Cell<[u8; 8]>,
    pan: Cell<u16>,
    tx_power: Cell<i8>,
    channel: Cell<u8>,
    spi_rx: TakeCell<'static, [u8]>,
    spi_tx: TakeCell<'static, [u8]>,
    spi_buf: TakeCell<'static, [u8]>,
}

Fields

Methods

impl<'a, S: SpiMasterDevice + 'a> RF233<'a, S>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Trait Implementations

impl<'a, S: SpiMasterDevice + 'a> SpiMasterClient for RF233<'a, S>
[src]

[src]

Called when a read/write operation finishes

impl<'a, S: SpiMasterDevice + 'a> Client for RF233<'a, S>
[src]

[src]

Called when an interrupt occurs. The identifier will be the same value that was passed to enable_interrupt() when the interrupt was configured. Read more

impl<'a, S: SpiMasterDevice + 'a> Radio for RF233<'a, S>
[src]

impl<'a, S: SpiMasterDevice + 'a> RadioConfig for RF233<'a, S>
[src]

[src]

buf must be at least MAX_BUF_SIZE in length, and reg_read and reg_write must be 2 bytes. Read more

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

The 16-bit PAN ID

[src]

The transmit power, in dBm

[src]

The 802.15.4 channel

[src]

Commit the config calls to hardware, changing the address, PAN ID, TX power, and channel to the specified values, issues a callback to the config client when done. Read more

impl<'a, S: SpiMasterDevice + 'a> RadioData for RF233<'a, S>
[src]

[src]

[src]

[src]

[src]