Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: acd52832_SAADC_Differential_input_EPD acd52832_Car_battery_ch acd52832_Car_battery_ch_2
NRF52_SAADC Class Reference
NRF52 adc library. More...
#include <acd_nrf52_saadc.h>
Public Member Functions | |
| NRF52_SAADC (uint8_t analogIn) | |
| Initializes adc module. | |
| bool | addChannel (uint8_t pin) |
| void | updateData () |
| Reads analog pins. | |
| int16_t * | getData () |
Detailed Description
NRF52 adc library.
Definition at line 18 of file acd_nrf52_saadc.h.
Constructor & Destructor Documentation
| NRF52_SAADC | ( | uint8_t | analogIn ) |
Initializes adc module.
Definition at line 14 of file acd_nrf52_saadc.cpp.
Member Function Documentation
| bool addChannel | ( | uint8_t | pin ) |
- Returns:
- 0 on success, 1 otherwise
| int16_t* getData | ( | ) |
- Returns:
- pointer to analog input data - data is stored in channel add order
Definition at line 40 of file acd_nrf52_saadc.h.
| void updateData | ( | ) |
Reads analog pins.
Definition at line 56 of file acd_nrf52_saadc.cpp.
Generated on Wed Jul 13 2022 05:17:02 by
1.7.2