Definition in file ads7828.h.
#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 0x04 |
#define | ADS7828_CMD_CH2 0x01 |
#define | ADS7828_CMD_CH3 0x05 |
#define | ADS7828_CMD_CH4 0x02 |
#define | ADS7828_CMD_CH5 0x06 |
#define | ADS7828_CMD_CH6 0x03 |
#define | ADS7828_CMD_CH7 0x07 |
#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) |
void | ads7828SetReference (u08 ref) |
u16 | ads7828Convert (u08 i2cAddr, u08 channel) |
Begin single-ended conversion on given logical channel#, and return result. | |
u16 | ads7828ConvertDiff (u08 i2cAddr, u08 channel) |
Begin differential conversion on given channel pair, and return result. | |
u16 | ads7828ConvertRaw (u08 i2cAddr, u08 channel) |
Begin conversion on given raw channel#, and return result. |