Struct imxrt_iomuxc::Pad

source ·
pub struct Pad<const MUX: u32, const PAD: u32> { /* private fields */ }
Expand description

An i.MXT RT pad

The Base is the pad tag, like GPIO_AD_B0. The Offset is the constant (type) that describes the pad number.

Pads have no size.

Implementations§

Creates a handle to the pad

Safety

new() may be called anywhere, by anyone. This could lead to multiple objects that mutate the same memory. Consider calling new() once, near startup, then passing objects and references throughout your program.

Erase the pad’s type, returning an ErasedPad

Set the alternate value for this pad.

Performs a read-modify-write on the pad’s mux register to set the alternate value to alt.

Safety

This function performs a read-modify-write operation on peripheral memory. It could race with other calls that modify this pad’s mux register. For a safer interface, see alternate().

Set the pad’s SION bit.

Performs a read-modify-write on the pad’s mux register to set the SION bit.

Safety

This function performs a read-modify-write operation on peripheral memory. It could race with other calls that modify this pad’s mux register. For a safer interface, see set_sion().

Clear the pad’s SION bit.

Performs a read-modify-write on the pad’s mux register to Clear the SION bit.

Safety

This function performs a read-modify-write operation on peripheral memory. It could race with other calls that modify this pad’s mux register. For a safer interface, see clear_sion().

Set the pad’s configuration.

Safety

This function performs a read-modify-write operation on peripheral memory. It could race with any other function that modifies this pad’s registers. For a safer interface, see configure().

Trait Implementations§

Formats the value using the given formatter. Read more
The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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