Struct kea_hal::gpio::gpioa::PTC0[][src]

pub struct PTC0<MODE> { /* fields omitted */ }
Expand description

a GPIO Port Pin

Implementations

Convert Pin into the Analog state for use by the ADC.

This implementation provides the GPIO interface a method to give an eligible pin to the ADC peripheral for conversion into an Analog pin. This method is only implemented in eligible pins. The ADC peripheral disables the GPIO and PORT control over the pin and connects it to the ADC mux (controlled by Adc::set_channel.

Note: The Analog::outof_analog method must be used to return the pin to a normal Input/Output typestate. The pin will be returned in the same typestate as it was received.

Implements the I/O type conversion methods

Configure as floating

Configure as pull up input

Configure as PushPull output

Configure into High Impedence output

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Error type

Is the input pin high?

Is the input pin low?

Error type

Drives the pin high Read more

Drives the pin low Read more

Drives the pin high or low depending on the provided value Read more

Is the pin in drive high mode? Read more

Is the pin in drive low mode? Read more

Error type

Toggle pin output.

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.

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.