Struct bluenrg::BlueNRG[][src]

pub struct BlueNRG<'buf, SPI, OutputPin1, OutputPin2, InputPin> { /* fields omitted */ }

Handle for interfacing with the BlueNRG-MS.

Methods

impl<'buf, SPI, OutputPin1, OutputPin2, InputPin> BlueNRG<'buf, SPI, OutputPin1, OutputPin2, InputPin> where
    OutputPin1: OutputPin,
    OutputPin2: OutputPin,
    InputPin: InputPin
[src]

Returns a new BlueNRG struct with the given RX Buffer and pins. Resets the controller.

Invokes the given body function with an ActiveBlueNRG that uses this BlueNRG struct and the provided SPI bus handle.

Returns the result of the invoked body.

Resets the BlueNRG Controller. Uses the given timer to delay 1 cycle at freq Hz after toggling the reset pin.

Auto Trait Implementations

impl<'buf, SPI, OutputPin1, OutputPin2, InputPin> Send for BlueNRG<'buf, SPI, OutputPin1, OutputPin2, InputPin> where
    InputPin: Send,
    OutputPin1: Send,
    OutputPin2: Send,
    SPI: Send

impl<'buf, SPI, OutputPin1, OutputPin2, InputPin> Sync for BlueNRG<'buf, SPI, OutputPin1, OutputPin2, InputPin> where
    InputPin: Sync,
    OutputPin1: Sync,
    OutputPin2: Sync,
    SPI: Sync