Struct imxrt_iomuxc::Pad
source · 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.
Pad
s have no size.
Implementations§
source§impl<const MUX: u32, const PAD: u32> Pad<MUX, PAD>
impl<const MUX: u32, const PAD: u32> Pad<MUX, PAD>
sourcepub unsafe fn set_alternate(alt: u32)
pub unsafe fn set_alternate(alt: u32)
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()
.
sourcepub unsafe fn set_sion()
pub unsafe fn set_sion()
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()
.
sourcepub unsafe fn clear_sion()
pub unsafe fn clear_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()
.
sourcepub unsafe fn configure(config: Config)
pub unsafe fn configure(config: Config)
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()
.