Struct Channels

Source
#[non_exhaustive]
pub struct Channels<'d> {
Show 16 fields pub channel0_task: TaskChannel<0>, pub channel0_event: EventChannel<0>, pub channel1_task: TaskChannel<1>, pub channel1_event: EventChannel<1>, pub channel2_task: TaskChannel<2>, pub channel2_event: EventChannel<2>, pub channel3_task: TaskChannel<3>, pub channel3_event: EventChannel<3>, pub channel4_task: TaskChannel<4>, pub channel4_event: EventChannel<4>, pub channel5_task: TaskChannel<5>, pub channel5_event: EventChannel<5>, pub channel6_task: TaskChannel<6>, pub channel6_event: EventChannel<6>, pub channel7_task: TaskChannel<7>, pub channel7_event: EventChannel<7>, /* private fields */
}
Available on crate feature unstable only.
Expand description

All the GPIO ETM channels

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§channel0_task: TaskChannel<0>

Task channel 0 for triggering GPIO tasks.

§channel0_event: EventChannel<0>

Event channel 0 for handling GPIO events.

§channel1_task: TaskChannel<1>

Task channel 1 for triggering GPIO tasks.

§channel1_event: EventChannel<1>

Event channel 1 for handling GPIO events.

§channel2_task: TaskChannel<2>

Task channel 2 for triggering GPIO tasks.

§channel2_event: EventChannel<2>

Event channel 2 for handling GPIO events.

§channel3_task: TaskChannel<3>

Task channel 3 for triggering GPIO tasks.

§channel3_event: EventChannel<3>

Event channel 3 for handling GPIO events.

§channel4_task: TaskChannel<4>

Task channel 4 for triggering GPIO tasks.

§channel4_event: EventChannel<4>

Event channel 4 for handling GPIO events.

§channel5_task: TaskChannel<5>

Task channel 5 for triggering GPIO tasks.

§channel5_event: EventChannel<5>

Event channel 5 for handling GPIO events.

§channel6_task: TaskChannel<6>

Task channel 6 for triggering GPIO tasks.

§channel6_event: EventChannel<6>

Event channel 6 for handling GPIO events.

§channel7_task: TaskChannel<7>

Task channel 7 for triggering GPIO tasks.

§channel7_event: EventChannel<7>

Event channel 7 for handling GPIO events.

Implementations§

Source§

impl<'d> Channels<'d>

Source

pub fn new(peripheral: impl Peripheral<P = GPIO_SD> + 'd) -> Self

Create a new instance

Auto Trait Implementations§

§

impl<'d> Freeze for Channels<'d>

§

impl<'d> RefUnwindSafe for Channels<'d>

§

impl<'d> Send for Channels<'d>

§

impl<'d> Sync for Channels<'d>

§

impl<'d> Unpin for Channels<'d>

§

impl<'d> !UnwindSafe for Channels<'d>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.