AEM
ad7689.h File Reference
#include <WProgram.h>
#include "yspi.h"
#include "yADC.h"

Go to the source code of this file.

Data Structures

struct  AD7689_conf
 
class  AD7689
 

Macros

#define INCC_BIPOLAR_DIFF   (0b000)
 
#define INCC_BIPOLAR_COM   (0b010)
 
#define INCC_TEMP   (0b011)
 
#define INCC_UNIPOLAR_DIFF   (0b100)
 
#define INCC_UNIPOLAR_REF_COM   (0b110)
 
#define INCC_UNIPOLAR_REF_GND   (0b111)
 
#define INT_REF_25   (0b000)
 
#define INT_REF_4096   (0b001)
 
#define EXT_REF_TEMP_ON   (0b010)
 
#define EXT_REF_TEMP_BUF   (0b011)
 
#define EXT_REF_TEMP_OFF   (0b110)
 
#define EXT_REF_TEMP_OFF_BUF   (0b111)
 
#define SEQ_OFF   (0b00)
 
#define SEQ_UPDATE   (0b01)
 
#define SEQ_SCAN_INPUT_TEMP   (0b10)
 
#define SEQ_SCAN_INPUT   (0b11)
 
#define MAX_FREQ   (38000000)
 
#define UNIPOLAR_MODE   (0)
 
#define BIPOLAR_MODE   (1)
 
#define DIFFERENTIAL_MODE   (2)
 
#define REF_INTERNAL   (0)
 
#define REF_EXTERNAL   (1)
 
#define REF_GND   (2)
 
#define REF_COM   (3)
 
#define CFG   (13)
 
#define INCC   (10)
 
#define INx   (7)
 
#define BW   (6)
 
#define REF   (3)
 
#define SEQ   (1)
 
#define RB   (0)
 
#define TEMP_REF   (4.096)
 
#define BASE_TEMP   (25)
 
#define TEMP_BASE_VOLTAGE   (0.283)
 
#define TEMP_RICO   (0.001)
 
#define INTERNAL_25   (2.5)
 
#define INTERNAL_4096   (4.096)
 
#define TOTAL_CHANNELS   (8)
 
#define TOTAL_STEPS   (65536)
 
#define TCONV   (4)
 
#define TACQ   (2)
 
#define STARTUP_DELAY   (100)
 

Macro Definition Documentation

#define BASE_TEMP   (25)
#define BIPOLAR_MODE   (1)
#define BW   (6)
#define CFG   (13)
#define DIFFERENTIAL_MODE   (2)
#define EXT_REF_TEMP_BUF   (0b011)
#define EXT_REF_TEMP_OFF   (0b110)
#define EXT_REF_TEMP_OFF_BUF   (0b111)
#define EXT_REF_TEMP_ON   (0b010)
#define INCC   (10)
#define INCC_BIPOLAR_COM   (0b010)
#define INCC_BIPOLAR_DIFF   (0b000)
#define INCC_TEMP   (0b011)
#define INCC_UNIPOLAR_DIFF   (0b100)
#define INCC_UNIPOLAR_REF_COM   (0b110)
#define INCC_UNIPOLAR_REF_GND   (0b111)
#define INT_REF_25   (0b000)
#define INT_REF_4096   (0b001)
#define INTERNAL_25   (2.5)
#define INTERNAL_4096   (4.096)
#define INx   (7)
#define MAX_FREQ   (38000000)
#define RB   (0)
#define REF   (3)
#define REF_COM   (3)
#define REF_EXTERNAL   (1)
#define REF_GND   (2)
#define REF_INTERNAL   (0)
#define SEQ   (1)
#define SEQ_OFF   (0b00)
#define SEQ_SCAN_INPUT   (0b11)
#define SEQ_SCAN_INPUT_TEMP   (0b10)
#define SEQ_UPDATE   (0b01)
#define STARTUP_DELAY   (100)
#define TACQ   (2)
#define TCONV   (4)
#define TEMP_BASE_VOLTAGE   (0.283)
#define TEMP_REF   (4.096)
#define TEMP_RICO   (0.001)
#define TOTAL_CHANNELS   (8)
#define TOTAL_STEPS   (65536)
#define UNIPOLAR_MODE   (0)