embassy-nrf

Crates

git

Versions

nrf54l10-app-ns

Flavors

Skip to main content

Module ppi

Module ppi 

Source
Expand description

Programmable Peripheral Interconnect (PPI/DPPI) driver.

The (Distributed) Programmable Peripheral Interconnect interface allows for an autonomous interoperability between peripherals through their events and tasks. There are fixed PPI channels and fully configurable ones. Fixed channels can only connect specific events to specific tasks. For fully configurable channels, it is possible to choose, via software, the event and the task that it will triggered by the event.

On nRF52 devices, there is also a fork task endpoint, where the user can configure one more task to be triggered by the same event, even fixed PPI channels have a configurable fork task.

The DPPI for nRF53 and nRF91 devices works in a different way. Every channel can support infinitely many tasks and events, but any single task or event can only be coupled with one channel.

On nRF54L, DPPI channels are local to a power domain: a channel can only connect events and tasks of peripherals in its own domain (e.g. PPI20_CHn connects peripherals in the peripheral domain, like TIMER20 or GPIOTE20). Ppi constructors and PpiGroup::add_channel panic if that’s not the case. Use ppib to connect channels in different domains.

Structs§

Event
Represents an event that a peripheral can publish.
Ppi
PPI channel driver.
PpiGroup
PPI channel group driver.
Task
Represents a task that a peripheral can do.

Traits§

Channel
Interface for PPI channels.
ConfigurableChannel
Interface for PPI channels that can be configured.
Group
Interface for a group of PPI channels.
StaticChannel
Interface for PPI channels that cannot be configured.