Struct imxrt_hal::adc::AnalogInput[][src]

pub struct AnalogInput<ADCx, P> { /* fields omitted */ }
Expand description

A pin representing an analog input for a particular ADC

Implementations

Creates a new analog input pin

Release the ADC input, returning the underlying hardware pin. This pin is in an unspecified state

Trait Implementations

Channel ID type Read more

Get the specific ID that identifies this channel, for example 0_u8 for the first ADC channel, if Self::ID is u8. Read more

Implement embedded-hal traits

Read an ADC value from an AnalogInput. This should always return a good result

Error type returned by ADC methods

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.