fn write(&mut self, address:u8, word: u8) -> Result<(), Self::Error>{
        self.cs.set_low().map_err(Error::Pin)?;
        let result = self
            .spi
            .write(&[address, word])
            .map_err(Error::Spi);
        self.cs.set_high().map_err(Error::Pin)?;
        result
    }
/// Write one byte to SPI. 
Write one byte to SPI.
Write one byte to SPI .
fn write(&mut self, address:u8, word: u8) -> Result<(), Self::Error>{
        self.cs.set_low().map_err(Error::Pin)?;
        let result = self
            .spi
            .write(&[address, word])
            .map_err(Error::Spi);
        self.cs.set_high().map_err(Error::Pin)?;
        result
    }
fn write ( & mut self , address : u8 , word : u8 ) -> Result < ( ) , Self :: Error > { self . cs . set_low ( ) . map_err ( Error :: Pin ) ? ; let result = self . spi . write ( & [ address , word ] ) . map_err ( Error :: Spi ) ; self . cs . set_high ( ) . map_err ( Error :: Pin ) ? ; result }
Write one byte to SPI.
Write one byte to SPI .
&mut self
address
u8
word
u8