SAADC library and drivers for nrf52832.
Dependents: acd52832_SAADC_Differential_input_EPD acd52832_Car_battery_ch acd52832_Car_battery_ch_2
Library to use aconno drivers for Nordic Semiconductor nrf52832 SAADC.
Diff: acd_nrf52_saadc.h
- Revision:
- 1:2d6e904c6843
- Parent:
- 0:838e26b2ef09
- Child:
- 3:fcada8b3b567
--- a/acd_nrf52_saadc.h Tue Aug 22 12:16:06 2017 +0000 +++ b/acd_nrf52_saadc.h Wed Aug 23 07:28:42 2017 +0000 @@ -1,5 +1,5 @@ /* - * Made by Jurica Resetar @ aconno, 2017 + * Made by Jurica Resetar and Karlo Milicevic @ aconno, 2017 * jurica_resetar@yahoo.com * aconno.de * All rights reserved @@ -12,11 +12,12 @@ #include "mbed.h" class NRF52_SAADC{ - public: - void enable(); - void setDataPointer(uint32_t dataPointer); - void setWordNumber(uint8_t wordNumber); - -} + public: + NRF52_SAADC(int16_t *dataPointer); + ~NRF52_SAADC(); + void getData(); + private: + int16_t *dataPointer; +}; #endif // ACD_NRF52_SAADC_H \ No newline at end of file