Struct stm32f3xx_hal::adc::Adc[][src]

pub struct Adc<ADC> { /* fields omitted */ }
Expand description

Analog Digital Converter Peripheral

Implementations

Init a new ADC

Enables the clock, performs a calibration and enables the ADC

Panics

If one of the following occurs:

  • the clocksetting is not well defined.
  • the clock was already enabled with a different setting

Releases the ADC peripheral and associated pins

sets up adc in one shot mode for a single channel

Get access to the underlying register block.

Safety

This function is not memory unsafe per se, but does not guarantee anything about assumptions of invariants made in this implementation.

Changing specific options can lead to un-expected behavior and nothing is guaranteed.

Init a new ADC

Enables the clock, performs a calibration and enables the ADC

Panics

If one of the following occurs:

  • the clocksetting is not well defined.
  • the clock was already enabled with a different setting

Releases the ADC peripheral and associated pins

sets up adc in one shot mode for a single channel

Get access to the underlying register block.

Safety

This function is not memory unsafe per se, but does not guarantee anything about assumptions of invariants made in this implementation.

Changing specific options can lead to un-expected behavior and nothing is guaranteed.

Init a new ADC

Enables the clock, performs a calibration and enables the ADC

Panics

If one of the following occurs:

  • the clocksetting is not well defined.
  • the clock was already enabled with a different setting

Releases the ADC peripheral and associated pins

sets up adc in one shot mode for a single channel

Get access to the underlying register block.

Safety

This function is not memory unsafe per se, but does not guarantee anything about assumptions of invariants made in this implementation.

Changing specific options can lead to un-expected behavior and nothing is guaranteed.

Init a new ADC

Enables the clock, performs a calibration and enables the ADC

Panics

If one of the following occurs:

  • the clocksetting is not well defined.
  • the clock was already enabled with a different setting

Releases the ADC peripheral and associated pins

sets up adc in one shot mode for a single channel

Get access to the underlying register block.

Safety

This function is not memory unsafe per se, but does not guarantee anything about assumptions of invariants made in this implementation.

Changing specific options can lead to un-expected behavior and nothing is guaranteed.

Trait Implementations

Error type returned by ADC methods

Request that the ADC begin a conversion on the specified pin Read more

Error type returned by ADC methods

Request that the ADC begin a conversion on the specified pin Read more

Error type returned by ADC methods

Request that the ADC begin a conversion on the specified pin Read more

Error type returned by ADC methods

Request that the ADC begin a conversion on the specified pin 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.