Trait nrf52811_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§
sourcefn task_enable(&self) -> &Reg<EN_SPEC>
fn task_enable(&self) -> &Reg<EN_SPEC>
Returns reference to tasks_chg[x].en
endpoint for enabling channel group.
sourcefn task_disable(&self) -> &Reg<DIS_SPEC>
fn task_disable(&self) -> &Reg<DIS_SPEC>
Returns reference to tasks_chg[x].dis
endpoint for disabling channel group.
sourcefn set_channels(&self, mask: u32)
fn set_channels(&self, mask: u32)
Sets bitmask for PPI channels which shall be included in this channel group.