Struct stm32f0xx_hal::adc::VBat[][src]

pub struct VBat;
Expand description

Battery reference voltage (ADC Channel 18)

Implementations

Init a new VBat

Enable the internal VBat sense, remember to disable when not in use as otherwise it will sap current from the VBat source.

Disable the internal VBat sense.

Returns if the internal VBat sense is enabled

Reads the value of VBat in milli-volts

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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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.