Function imxrt_iomuxc::configure[][src]

pub fn configure<I: IOMUX>(pad: &mut I, config: Config)

Applies the configuration config for the supplied pad

configure lets you specify the pad’s drive strength, speed, pull-up or pull-down resistors, and other configurations. See Config for possible configurations.

Example

use imxrt_iomuxc::{configure, Config, OpenDrain, PullKeep};

const CONFIG: Config = Config::zero()
    .set_open_drain(OpenDrain::Enabled)
    .set_pull_keep(PullKeep::Enabled);

let mut pad = unsafe { AD_B0_03::new() };

configure(&mut pad, CONFIG);