Data acquisition with the AD7705 on the raspberry PI
AD7705Comm Class Reference

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.
 

Detailed Description

This class reads data from the AD7705 in the background (separate thread) and calls a callback function whenever data is available.

Constructor & Destructor Documentation

◆ AD7705Comm()

AD7705Comm::AD7705Comm ( AD7705settings  settings)

Constructor.

Opens the SPI device and waits for to start the acquisition.

Parameters
settingsAll AD7705 settings.

Member Function Documentation

◆ registerCallback()

void AD7705Comm::registerCallback ( AD7705callback cb)

Registers the callback which is called whenever there is a sample.

Parameters
cbPointer to the callback interface.

The documentation for this class was generated from the following file: