1 2 3 4 5 6 7 8 9 10
use cu29_traits::CuResult; pub struct InputPin { #[allow(dead_code)] pin_nb: u8, } pub fn get_pin(pin_nb: u8) -> CuResult<InputPin> { Ok(InputPin { pin_nb }) }