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.
acd_nrf52_saadc.h@1:2d6e904c6843, 2017-08-23 (annotated)
- Committer:
- Dautor
- Date:
- Wed Aug 23 07:28:42 2017 +0000
- Revision:
- 1:2d6e904c6843
- Parent:
- 0:838e26b2ef09
- Child:
- 3:fcada8b3b567
Battery read working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 0:838e26b2ef09 | 1 | /* |
Dautor | 1:2d6e904c6843 | 2 | * Made by Jurica Resetar and Karlo Milicevic @ aconno, 2017 |
jurica238814 | 0:838e26b2ef09 | 3 | * jurica_resetar@yahoo.com |
jurica238814 | 0:838e26b2ef09 | 4 | * aconno.de |
jurica238814 | 0:838e26b2ef09 | 5 | * All rights reserved |
jurica238814 | 0:838e26b2ef09 | 6 | * |
jurica238814 | 0:838e26b2ef09 | 7 | */ |
jurica238814 | 0:838e26b2ef09 | 8 | |
jurica238814 | 0:838e26b2ef09 | 9 | #ifndef ACD_NRF52_SAADC_H |
jurica238814 | 0:838e26b2ef09 | 10 | #define ACD_NRF52_SAADC_H |
jurica238814 | 0:838e26b2ef09 | 11 | |
jurica238814 | 0:838e26b2ef09 | 12 | #include "mbed.h" |
jurica238814 | 0:838e26b2ef09 | 13 | |
jurica238814 | 0:838e26b2ef09 | 14 | class NRF52_SAADC{ |
Dautor | 1:2d6e904c6843 | 15 | public: |
Dautor | 1:2d6e904c6843 | 16 | NRF52_SAADC(int16_t *dataPointer); |
Dautor | 1:2d6e904c6843 | 17 | ~NRF52_SAADC(); |
Dautor | 1:2d6e904c6843 | 18 | void getData(); |
Dautor | 1:2d6e904c6843 | 19 | private: |
Dautor | 1:2d6e904c6843 | 20 | int16_t *dataPointer; |
Dautor | 1:2d6e904c6843 | 21 | }; |
jurica238814 | 0:838e26b2ef09 | 22 | |
jurica238814 | 0:838e26b2ef09 | 23 | #endif // ACD_NRF52_SAADC_H |