pub fn read_port(&mut self, port: u8) -> Result<bool, EI::Error> {
        self.iface
            .read_register(Register::SinglePort(port).into())
            .map(|v| v == 0x01)
    }
/// Perform a read of the current value of a single I/O port on the expander.
Perform a read of the current value of a single I/O port on the expander.
Perform a read of the current value of a single I / O port on the expander .
pub fn read_port(&mut self, port: u8) -> Result<bool, EI::Error> {
        self.iface
            .read_register(Register::SinglePort(port).into())
            .map(|v| v == 0x01)
    }
pub fn read_port ( & mut self , port : u8 ) -> Result < bool , EI :: Error > { self . iface . read_register ( Register :: SinglePort ( port ) . into ( ) ) . map ( | v | v == 0x01 ) }
Perform a read of the current value of a single I/O port on the expander.
Perform a read of the current value of a single I / O port on the expander .
&mut self
port
u8
&mut self
port
u8