Trait drone_sx1276::conn::Conn
[−]
[src]
pub trait Conn: Sized + Send + 'static { type Spi: Sized + Send + 'static; type SendErrorKind: Sized + Send + PartialEq + Eq + Debug + 'static; fn init(&self); unsafe fn transfer(
self,
spi: Self::Spi,
address: u8,
count: usize,
tx_buf: *const u8,
rx_buf: *mut u8
) -> Box<Future<Item = (Self, Self::Spi), Error = SendError<Self>> + Send>; }
Generic Semtech SX1276/77/78/79.
Associated Types
type Spi: Sized + Send + 'static
The SPI interface.
type SendErrorKind: Sized + Send + PartialEq + Eq + Debug + 'static
Erroneous result of the future returned by send
.
Required Methods
fn init(&self)
Initializes inner peripherals.
unsafe fn transfer(
self,
spi: Self::Spi,
address: u8,
count: usize,
tx_buf: *const u8,
rx_buf: *mut u8
) -> Box<Future<Item = (Self, Self::Spi), Error = SendError<Self>> + Send>
self,
spi: Self::Spi,
address: u8,
count: usize,
tx_buf: *const u8,
rx_buf: *mut u8
) -> Box<Future<Item = (Self, Self::Spi), Error = SendError<Self>> + Send>
Makes SPI transaction.