20#ifndef MBED_ANALOGIN_API_H
21#define MBED_ANALOGIN_API_H
float analogin_read(analogin_t *obj)
Read the input voltage, represented as a float in the range [0.0, 1.0].
void analogin_init(analogin_t *obj, PinName pin)
Initialize the analogin peripheral.
void analogin_free(analogin_t *obj)
Release the analogin peripheral.
void analogin_init_direct(analogin_t *obj, const PinMap *pinmap)
Initialize the analogin peripheral.
const PinMap * analogin_pinmap(void)
Get the pins that support analogin.
uint16_t analogin_read_u16(analogin_t *obj)
Read the value from analogin pin, represented as an unsigned 16bit value.
struct analogin_s analogin_t
Analogin hal structure.