analog_in functions
More...
|
typedef struct analogin_s | analogin_t |
|
void | analogin_init (analogin_t *obj, PinName pin) |
| Initializes the ADC device, include clock/function/ADC registers. More...
|
|
void | analogin_deinit (analogin_t *obj) |
| Deinitializes the ADC device, include clock/function/ADC registers. More...
|
|
float | analogin_read (analogin_t *obj) |
| Reads data from the specified adc channel fifo. More...
|
|
uint16_t | analogin_read_u16 (analogin_t *obj) |
| Reads data from the specified adc channel fifo. More...
|
|
analog_in functions
void analogin_deinit |
( |
analogin_t * |
obj | ) |
|
Deinitializes the ADC device, include clock/function/ADC registers.
- Parameters
-
obj | adc object define in application software. |
- Return values
-
void analogin_init |
( |
analogin_t * |
obj, |
|
|
PinName |
pin |
|
) |
| |
Initializes the ADC device, include clock/function/ADC registers.
- Parameters
-
obj | adc object define in application software. |
pin | adc PinName according to pinmux spec. |
- Return values
-
float analogin_read |
( |
analogin_t * |
obj | ) |
|
Reads data from the specified adc channel fifo.
- Parameters
-
obj | adc object define in application software. |
- Return values
-
uint16_t analogin_read_u16 |
( |
analogin_t * |
obj | ) |
|
Reads data from the specified adc channel fifo.
- Parameters
-
obj | adc object define in application software. |
- Return values
-
| 16bit adc channel data(int) |