Trait nrf51_hal::ppi::PpiChannelGroup

source ·
pub trait PpiChannelGroup: PpiChannelGroupSealed {
    // Required methods
    fn task_enable(&self) -> &Reg<EN_SPEC>;
    fn task_disable(&self) -> &Reg<DIS_SPEC>;
    fn set_channels(&self, mask: u32);
    fn enable(&self);
    fn disable(&self);
}
Expand description

Trait for a PPI channel group.

Required Methods§

source

fn task_enable(&self) -> &Reg<EN_SPEC>

Returns reference to tasks_chg[x].en endpoint for enabling channel group.

source

fn task_disable(&self) -> &Reg<DIS_SPEC>

Returns reference to tasks_chg[x].dis endpoint for disabling channel group.

source

fn set_channels(&self, mask: u32)

Sets bitmask for PPI channels which shall be included in this channel group.

source

fn enable(&self)

Enables this channel group.

source

fn disable(&self)

Disables this channel group.

Implementors§

source§

impl<G> PpiChannelGroup for G
where G: ChannelGroup,