pub fn new(channel: TestChannel, rpi_gpio: &mut Gpio) -> Result<Self, RpiTestChannelError> {
        let gpio = TestGpio::new(channel, rpi_gpio)?;

        let uart = TestUart::new(channel)?;

        Ok(Self { gpio, uart })
    }
/// Creates a new instance of the struct. Configures all the required peripherals of this channel.
Creates a new instance of the struct. Configures all the required peripherals of this channel.
Creates a new instance of the struct . Configures all the required peripherals of this channel .
pub fn new(channel: TestChannel, rpi_gpio: &mut Gpio) -> Result<Self, RpiTestChannelError> {
        let gpio = TestGpio::new(channel, rpi_gpio)?;
        let uart = TestUart::new(channel)?;
        Ok(Self { gpio, uart })
    }
pub fn new ( channel : TestChannel , rpi_gpio : & mut Gpio ) -> Result < Self , RpiTestChannelError > { let gpio = TestGpio :: new ( channel , rpi_gpio ) ? ; let uart = TestUart :: new ( channel ) ? ; Ok ( Self { gpio , uart } ) }
Creates a new instance of the struct.
Creates a new instance of the struct .
channel
TestChannel
rpi_gpio
&mut Gpio