pub fn send_data(spi: &mut Spi, data: &[u8]) -> Result<(), rppal::spi::Error> {
        if data.len() > 0 {
            let multiplier = 128 * 8 * 2;
            for i in 0..16 {
                spi.write(&data[i * multiplier..(i + 1) * multiplier])?;
            }
        }
        Ok(())
    }
/// Write the data to the spi device.
Write the data to the spi device.
Write the data to the spi device .
pub fn send_data(spi: &mut Spi, data: &[u8]) -> Result<(), rppal::spi::Error> {
        if data.len() > 0 {
            let multiplier = 128 * 8 * 2;
            for i in 0..16 {
                spi.write(&data[i * multiplier..(i + 1) * multiplier])?;
            }
        }
        Ok(())
    }
pub fn send_data ( spi : & mut Spi , data : & [ u8 ] ) -> Result < ( ) , rppal :: spi :: Error > { if data . len ( ) > 0 { let multiplier = 128 * 8 * 2 ; for i in 0 .. 16 { spi . write ( & data [ i * multiplier .. ( i + 1 ) * multiplier ] ) ? ; } } Ok ( ( ) ) }
Write the data to the spi device.
Write the data to the spi device .
spi
&mut Spi
data
&[u8]