fn spi_transfer_tx_buf<PinErr>(
        &mut self,
        len: usize,
    ) -> Result<&[u8], TransferError<SPIErr, PinErr>> {
        self.spi
            .transfer(&mut self.tx_buf[..=len])
            .map_err(TransferError::Spi)
    }
/// *NOTE*
/// Make sure the data to be transfered is copied to the TX Buf before calling this function.
/// Because the first byte always has to be the command, the `len` argument
/// is the inclusive length.
NOTE
Make sure the data to be transfered is copied to the TX Buf before calling this function.
Because the first byte always has to be the command, the `len` argument
is the inclusive length.
NOTE Make sure the data to be transfered is copied to the TX Buf before calling this function . Because the first byte always has to be the command the ` len ` argument is the inclusive length .
fn spi_transfer_tx_buf<PinErr>(
        &mut self,
        len: usize,
    ) -> Result<&[u8], TransferError<SPIErr, PinErr>> {
        self.spi
            .transfer(&mut self.tx_buf[..=len])
            .map_err(TransferError::Spi)
    }
fn spi_transfer_tx_buf < PinErr > ( & mut self , len : usize , ) -> Result < & [ u8 ] , TransferError < SPIErr , PinErr > > { self . spi . transfer ( & mut self . tx_buf [ .. = len ] ) . map_err ( TransferError :: Spi ) }
NOTE
Make sure the data to be transfered is copied to the TX Buf before calling this function.
NOTE Make sure the data to be transfered is copied to the TX Buf before calling this function .
&mut self
len
usize
&mut self
len
usize