|
Data acquisition with the AD7705 on the raspberry PI
|
This class reads data from the AD7705 in the background (separate thread) and calls a callback function whenever data is available. More...
#include <AD7705Comm.h>
Public Member Functions | |
| AD7705Comm (AD7705settings settings) | |
| Constructor. More... | |
| ~AD7705Comm () | |
| Destructor which makes sure the data acquisition has stopped. | |
| void | registerCallback (AD7705callback *cb) |
| Registers the callback which is called whenever there is a sample. More... | |
| void | unRegisterCallback () |
| Unregisters the callback to the callback interface. | |
| void | start () |
| Starts the data acquisition. | |
| void | stop () |
| Stops the data acquistion. | |
This class reads data from the AD7705 in the background (separate thread) and calls a callback function whenever data is available.
| AD7705Comm::AD7705Comm | ( | AD7705settings | settings | ) |
Constructor.
Opens the SPI device and waits for to start the acquisition.
| settings | All AD7705 settings. |
| void AD7705Comm::registerCallback | ( | AD7705callback * | cb | ) |
Registers the callback which is called whenever there is a sample.
| cb | Pointer to the callback interface. |