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@0:838e26b2ef09, 2017-08-22 (annotated)
- Committer:
- jurica238814
- Date:
- Tue Aug 22 12:16:06 2017 +0000
- Revision:
- 0:838e26b2ef09
- Child:
- 1:2d6e904c6843
Saadc works. Library TODO.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jurica238814 | 0:838e26b2ef09 | 1 | /* |
jurica238814 | 0:838e26b2ef09 | 2 | * Made by Jurica Resetar @ 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{ |
jurica238814 | 0:838e26b2ef09 | 15 | public: |
jurica238814 | 0:838e26b2ef09 | 16 | void enable(); |
jurica238814 | 0:838e26b2ef09 | 17 | void setDataPointer(uint32_t dataPointer); |
jurica238814 | 0:838e26b2ef09 | 18 | void setWordNumber(uint8_t wordNumber); |
jurica238814 | 0:838e26b2ef09 | 19 | |
jurica238814 | 0:838e26b2ef09 | 20 | } |
jurica238814 | 0:838e26b2ef09 | 21 | |
jurica238814 | 0:838e26b2ef09 | 22 | #endif // ACD_NRF52_SAADC_H |