#include "global.h"
Go to the source code of this file.
Defines | |
| #define | ADS7828_I2C_ADDR 0x90 |
| #define | ADS7828_CMD_PD0 0x04 |
| #define | ADS7828_CMD_PD1 0x08 |
| #define | ADS7828_CMD_C0 0x10 |
| #define | ADS7828_CMD_C1 0x20 |
| #define | ADS7828_CMD_C2 0x40 |
| #define | ADS7828_CMD_SD 0x80 |
| #define | ADS7828_CMD_CH0 0x00 |
| #define | ADS7828_CMD_CH1 0x10 |
| #define | ADS7828_CMD_CH2 0x20 |
| #define | ADS7828_CMD_CH3 0x30 |
| #define | ADS7828_CMD_CH4 0x40 |
| #define | ADS7828_CMD_CH5 0x50 |
| #define | ADS7828_CMD_CH6 0x60 |
| #define | ADS7828_CMD_CH7 0x70 |
| #define | ADS7828_CMD_PDMODE0 0x00 |
| #define | ADS7828_CMD_PDMODE1 0x04 |
| #define | ADS7828_CMD_PDMODE2 0x08 |
| #define | ADS7828_CMD_PDMODE3 0x0C |
Functions | |
| u08 | ads7828Init (u08 i2cAddr) |
| Initialize the DS1631 chip. | |
| void | ads7828SetReference (u08 ref) |
| Set the voltage reference to use for. | |
| u16 | ads7828Convert (u08 i2cAddr, u08 channel) |
| Begin conversion on given channel, and return result. | |
Definition in file ads7828.h.
1.3-rc2