Trait radio::Interrupts[][src]

pub trait Interrupts {
    type Irq;
    type Error;
    fn get_interrupts(&mut self, clear: bool) -> Result<Self::Irq, Self::Error>;
}

Interrupts trait allows for reading interrupt state from the device, as well as configuring interrupt pins.

Note that drivers may internally use interrupts and interrupt states to manage radio operations.

Associated Types

type Irq[src]

Interrupt object

type Error[src]

Radio error

Loading content...

Required methods

fn get_interrupts(&mut self, clear: bool) -> Result<Self::Irq, Self::Error>[src]

Fetch any pending interrupts from the device If the clear option is set, this will also clear any returned flags

Loading content...

Implementors

impl<St, Reg, Ch, Inf, Irq, E> Interrupts for Radio<St, Reg, Ch, Inf, Irq, E> where
    St: PartialEq + Debug + Clone,
    Reg: PartialEq + Debug + Clone,
    Ch: PartialEq + Debug + Clone,
    Inf: PartialEq + Debug + Clone,
    Irq: PartialEq + Debug + Clone,
    E: PartialEq + Debug + Clone
[src]

type Error = E

type Irq = Irq

Loading content...