Struct imxrt_iomuxc::Pad[][src]

pub struct Pad<Base, Offset> { /* fields omitted */ }
Expand description

An i.MXT RT pad

The Base is the pad tag, like 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

Safety

Returns a pointer to an address that may be mutably aliased elsewhere.

Safety

Returns a pointer to an address that may be mutably aliased elsewhere.

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

Performs the conversion.

Performs the conversion.

Should always be Self

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.