esp_hal/gpio/
placeholder.rs1use super::*;
9
10#[derive(Default, Clone, Copy)]
14pub struct NoPin;
15
16impl private::Sealed for NoPin {}
17
18impl embedded_hal::digital::ErrorType for NoPin {
19 type Error = core::convert::Infallible;
20}
21
22impl embedded_hal::digital::OutputPin for NoPin {
23 fn set_low(&mut self) -> Result<(), Self::Error> {
24 Ok(())
25 }
26
27 fn set_high(&mut self) -> Result<(), Self::Error> {
28 Ok(())
29 }
30}
31
32impl embedded_hal::digital::StatefulOutputPin for NoPin {
33 fn is_set_high(&mut self) -> Result<bool, Self::Error> {
34 Ok(false)
35 }
36
37 fn is_set_low(&mut self) -> Result<bool, Self::Error> {
38 Ok(false)
39 }
40}