Struct tm4c129x_hal::gpio::gpiol::PL7
source · pub struct PL7<MODE> { /* private fields */ }
Expand description
Pin
Implementations§
source§impl<MODE> PL7<MODE>where
MODE: IsUnlocked,
impl<MODE> PL7<MODE>where MODE: IsUnlocked,
sourcepub fn into_af_push_pull<AF>(
self,
_gpio_control: &mut GpioControl
) -> PL7<AlternateFunction<AF, PushPull>>where
AF: AlternateFunctionChoice,
pub fn into_af_push_pull<AF>( self, _gpio_control: &mut GpioControl ) -> PL7<AlternateFunction<AF, PushPull>>where AF: AlternateFunctionChoice,
Configures the pin to serve as alternate function 1 through 15. Disables open-drain to make the output a push-pull.
sourcepub fn into_af_pull_up<AF>(
self,
_gpio_control: &mut GpioControl
) -> PL7<AlternateFunction<AF, PullUp>>where
AF: AlternateFunctionChoice,
pub fn into_af_pull_up<AF>( self, _gpio_control: &mut GpioControl ) -> PL7<AlternateFunction<AF, PullUp>>where AF: AlternateFunctionChoice,
Configures the pin to serve as alternate function 1 through 15 with a weak pull-up resistor.
sourcepub fn into_af_pull_down<AF>(
self,
_gpio_control: &mut GpioControl
) -> PL7<AlternateFunction<AF, PullDown>>where
AF: AlternateFunctionChoice,
pub fn into_af_pull_down<AF>( self, _gpio_control: &mut GpioControl ) -> PL7<AlternateFunction<AF, PullDown>>where AF: AlternateFunctionChoice,
Configures the pin to serve as alternate function 1 through 15 with a weak pull-down resistor.
sourcepub fn into_af_open_drain<AF, ODM>(
self,
_gpio_control: &mut GpioControl
) -> PL7<AlternateFunction<AF, OpenDrain<ODM>>>where
AF: AlternateFunctionChoice,
ODM: OpenDrainMode,
pub fn into_af_open_drain<AF, ODM>( self, _gpio_control: &mut GpioControl ) -> PL7<AlternateFunction<AF, OpenDrain<ODM>>>where AF: AlternateFunctionChoice, ODM: OpenDrainMode,
Configures the pin to serve as alternate function 1 through 15. Enables open-drain (useful for I2C SDA, for example).
sourcepub fn into_floating_input(self) -> PL7<Input<Floating>>
pub fn into_floating_input(self) -> PL7<Input<Floating>>
Configures the pin to operate as a floating input pin
sourcepub fn into_pull_down_input(self) -> PL7<Input<PullDown>>
pub fn into_pull_down_input(self) -> PL7<Input<PullDown>>
Configures the pin to operate as a pulled down input pin
sourcepub fn into_pull_up_input(self) -> PL7<Input<PullUp>>
pub fn into_pull_up_input(self) -> PL7<Input<PullUp>>
Configures the pin to operate as a pulled up input pin
sourcepub fn into_open_drain_output<ODM>(self) -> PL7<Output<OpenDrain<ODM>>>where
ODM: OpenDrainMode,
pub fn into_open_drain_output<ODM>(self) -> PL7<Output<OpenDrain<ODM>>>where ODM: OpenDrainMode,
Configures the pin to operate as an open drain output pin
sourcepub fn into_push_pull_output(self) -> PL7<Output<PushPull>>
pub fn into_push_pull_output(self) -> PL7<Output<PushPull>>
Configures the pin to operate as an push pull output pin
sourcepub fn into_tri_state(self) -> PL7<Tristate>
pub fn into_tri_state(self) -> PL7<Tristate>
Configures the pin as tri-state
source§impl<MODE> PL7<Input<MODE>>where
MODE: InputMode,
impl<MODE> PL7<Input<MODE>>where MODE: InputMode,
sourcepub fn set_interrupt_mode(&mut self, mode: InterruptMode)
pub fn set_interrupt_mode(&mut self, mode: InterruptMode)
Enables or disables interrupts on this GPIO pin.
sourcepub fn get_interrupt_status(&self) -> bool
pub fn get_interrupt_status(&self) -> bool
Returns the current interrupt status for this pin.
sourcepub fn clear_interrupt(&self)
pub fn clear_interrupt(&self)
Marks the interrupt for this pin as handled. You should call this (or perform its functionality) from the ISR.