pub fn read_digital_in(&mut self) -> Result<DigitalChannel> {
        match self.read() {
            Ok(Packet::Status(dig, _, _, _)) => Ok(DigitalChannel::from_bits(dig).unwrap()),
            Err(e) => Err(e),
            _ => Err(libusb::Error::InvalidParam.into()),
        }
    }
/// Read the digital in channel.
///
/// Returns `None` on failure
Read the digital in channel.
Returns `None` on failure
Read the digital in channel . Returns ` None ` on failure
pub fn read_digital_in(&mut self) -> Result<DigitalChannel> {
        match self.read() {
            Ok(Packet::Status(dig, _, _, _)) => Ok(DigitalChannel::from_bits(dig).unwrap()),
            Err(e) => Err(e),
            _ => Err(libusb::Error::InvalidParam.into()),
        }
    }
pub fn read_digital_in ( & mut self ) -> Result < DigitalChannel > { match self . read ( ) { Ok ( Packet :: Status ( dig , _ , _ , _ ) ) => Ok ( DigitalChannel :: from_bits ( dig ) . unwrap ( ) ) , Err ( e ) => Err ( e ) , _ => Err ( libusb :: Error :: InvalidParam . into ( ) ) , } }
Read the digital in channel.
Read the digital in channel .
&mut self
&mut self