pub struct Cc1101<SPI> { /* private fields */ }
Implementations§
source§impl<SPI, SpiE> Cc1101<SPI>
impl<SPI, SpiE> Cc1101<SPI>
pub fn new(spi: SPI) -> Result<Self, SpiE>
pub fn read_register<R>(&mut self, reg: R) -> Result<u8, SpiE>
pub fn read_fifo( &mut self, addr: &mut u8, len: &mut u8, buf: &mut [u8] ) -> Result<(), SpiE>
pub fn write_strobe(&mut self, com: Command) -> Result<(), SpiE>
pub fn write_register<R>(&mut self, reg: R, byte: u8) -> Result<(), SpiE>
pub fn modify_register<R, F>(&mut self, reg: R, f: F) -> Result<(), SpiE>
Auto Trait Implementations§
impl<SPI> RefUnwindSafe for Cc1101<SPI>where
SPI: RefUnwindSafe,
impl<SPI> Send for Cc1101<SPI>where
SPI: Send,
impl<SPI> Sync for Cc1101<SPI>where
SPI: Sync,
impl<SPI> Unpin for Cc1101<SPI>where
SPI: Unpin,
impl<SPI> UnwindSafe for Cc1101<SPI>where
SPI: UnwindSafe,
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