// analog
/// Write the analog value `a` to the given outport.
///
/// Leaves the digital values untouched. Returns `false` on failure.
analog
Write the analog value `a` to the given outport.

Leaves the digital values untouched. Returns `false` on failure.
analog Write the analog value ` a ` to the given outport . Leaves the digital values untouched . Returns ` false ` on failure .
pub fn write_analog_out(&mut self, a: AnalogChannel) -> Result<()> {
        let p = match a {
            AnalogChannel::A1(v) => Packet::SetAnalogDigital(self.state.dig, v, self.state.ana2),
            AnalogChannel::A2(v) => Packet::SetAnalogDigital(self.state.dig, self.state.ana1, v),
        };
        self.write(&p)
    }
pub fn write_analog_out ( & mut self , a : AnalogChannel ) -> Result < ( ) > { let p = match a { AnalogChannel :: A1 ( v ) => Packet :: SetAnalogDigital ( self . state . dig , v , self . state . ana2 ) , AnalogChannel :: A2 ( v ) => Packet :: SetAnalogDigital ( self . state . dig , self . state . ana1 , v ) , } ; self . write ( & p ) }
analog
Write the analog value `a` to the given outport.
analog Write the analog value ` a ` to the given outport .
&mut self
a
AnalogChannel