Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: AD7190.h
- Revision:
- 2:dc4217ca1fff
- Parent:
- 1:00d6e45e037a
--- a/AD7190.h Tue Jan 28 10:56:01 2014 +0000
+++ b/AD7190.h Tue Jan 28 13:18:17 2014 +0000
@@ -1,18 +1,6 @@
-/***************************************************************************//**
- * @file AD7190.h
- * @brief Header of the AD7190 driver.
- * @author Mario Poneder
- * @date 28/01/2013
- *
- * This class is based on the implementation from Dan Nechita (Analog Devices).
-*******************************************************************************/
-
#ifndef __AD7190_H__
#define __AD7190_H__
-/******************************************************************************/
-/***************************** Include Files **********************************/
-/******************************************************************************/
#include "mbed.h"
/******************************************************************************/
@@ -118,13 +106,16 @@
#define GPOCON_P0DAT (1 << 0) // P0 state
/***************************************************************************//**
- * @brief Specifies the prototype of the sample callback function.
- * Example: void SampleCallback(unsigned long data, unsigned char channel);
+ * @brief Driver for the AD7190 (Ultralow Noise 24-Bit Sigma-Delta ADC).
+ * @author Mario Poneder
+ * @date 28/01/2014
+ *
+ * This class is based on the implementation from Dan Nechita (Analog Devices).
*******************************************************************************/
-typedef void (*pSampleCallback_t)(unsigned long, unsigned char);
-
class AD7190
{
+ typedef void (*pSampleCallback_t)(unsigned long, unsigned char);
+
private:
DigitalIn _rdy; // Ready input pin (DOUT/RDY)