pub trait _esp_hal_gpio_Pin {
    // Required methods
    fn number(&self) -> u8;
    fn sleep_mode(&mut self, on: bool);
    fn set_alternate_function(&mut self, alternate: AlternateFunction);
    fn is_listening(&self) -> bool;
    fn listen_with_options(
        &mut self,
        event: Event,
        int_enable: bool,
        nmi_enable: bool,
        wake_up_from_light_sleep: bool
    );
    fn unlisten(&mut self);
    fn is_interrupt_set(&self) -> bool;
    fn clear_interrupt(&mut self);

    // Provided method
    fn listen(&mut self, event: Event) { ... }
}

Required Methods§

source

fn number(&self) -> u8

source

fn sleep_mode(&mut self, on: bool)

source

fn set_alternate_function(&mut self, alternate: AlternateFunction)

source

fn is_listening(&self) -> bool

Checks if listening for interrupts is enabled for this Pin

source

fn listen_with_options( &mut self, event: Event, int_enable: bool, nmi_enable: bool, wake_up_from_light_sleep: bool )

Listen for interrupts

source

fn unlisten(&mut self)

Stop listening for interrupts

source

fn is_interrupt_set(&self) -> bool

Checks if the interrupt status bit for this Pin is set

source

fn clear_interrupt(&mut self)

Clear the interrupt status bit for this Pin

Provided Methods§

source

fn listen(&mut self, event: Event)

Listen for interrupts

Implementors§

source§

impl<MODE, const GPIONUM: u8> Pin for GpioPin<MODE, GPIONUM>
where GpioPin<MODE, GPIONUM>: GpioProperties,