Trait Ppi

Source
pub trait Ppi: PpiSealed {
    // Required methods
    fn enable(&mut self);
    fn disable(&mut self);
    fn set_fork_task_endpoint<T>(&mut self, task: &T)
       where T: Task;
    fn clear_fork_task_endpoint(&mut self);
}
Expand description

Trait to represent a Programmable Peripheral Interconnect channel.

Required Methods§

Source

fn enable(&mut self)

Enables the channel.

Source

fn disable(&mut self)

Disables the channel.

Source

fn set_fork_task_endpoint<T>(&mut self, task: &T)
where T: Task,

Sets the fork task that must be triggered when the configured event occurs. The user must provide a reference to the task.

Source

fn clear_fork_task_endpoint(&mut self)

Clear the fork task endpoint. Previously set task will no longer be triggered.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<P> Ppi for P
where P: Channel,