Mbed OS Reference
|
Functions | |
void | analogin_init_direct (analogin_t *obj, const PinMap *pinmap) |
Initialize the analogin peripheral. More... | |
void | analogin_init (analogin_t *obj, PinName pin) |
Initialize the analogin peripheral. More... | |
void | analogin_free (analogin_t *obj) |
Release the analogin peripheral. More... | |
float | analogin_read (analogin_t *obj) |
Read the input voltage, represented as a float in the range [0.0, 1.0]. More... | |
uint16_t | analogin_read_u16 (analogin_t *obj) |
Read the value from analogin pin, represented as an unsigned 16bit value. More... | |
const PinMap * | analogin_pinmap (void) |
Get the pins that support analogin. More... | |
void analogin_init_direct | ( | analogin_t * | obj, |
const PinMap * | pinmap | ||
) |
Initialize the analogin peripheral.
Configures the pin used by analogin.
obj | The analogin object to initialize |
pinmap | pointer to structure which holds static pinmap |
void analogin_init | ( | analogin_t * | obj, |
PinName | pin | ||
) |
Initialize the analogin peripheral.
Configures the pin used by analogin.
obj | The analogin object to initialize |
pin | The analogin pin name |
void analogin_free | ( | analogin_t * | obj | ) |
Release the analogin peripheral.
Releases the pin used by analogin.
obj | The analogin object to initialize |
float analogin_read | ( | analogin_t * | obj | ) |
Read the input voltage, represented as a float in the range [0.0, 1.0].
obj | The analogin object |
uint16_t analogin_read_u16 | ( | analogin_t * | obj | ) |
Read the value from analogin pin, represented as an unsigned 16bit value.
obj | The analogin object |