|
void | begin (uint8_t sda, uint8_t scl, uint8_t vRef=0) |
|
void | begin (uint8_t vRef=0) |
|
void | setup (uint8_t data) |
|
void | configuration (uint8_t data) |
|
uint16_t | read (uint8_t channel) |
|
void | scan (uint16_t *buffer) |
|
|
static const uint8_t | ADDRESS = 0x33 |
|
static const uint8_t | REF_EXTERNAL = 0x02 |
|
static const uint8_t | REF_INTERNAL = 0x05 |
|
static const uint8_t | REF_VDD = 0x00 |
|
void AllAboutEE::MAX11609::begin |
( |
uint8_t |
vRef = 0 | ) |
|
Sets up the MAX11609 with a default configuration.
- Author
- Miguel (5/24/2015)
void AllAboutEE::MAX11609::configuration |
( |
uint8_t |
data | ) |
|
Writes the configuration byte (see Table 2. pg 14 of the datasheet).
- Author
- Miguel (5/24/2015)
- Parameters
-
data | The configuration byte to write |
uint16_t AllAboutEE::MAX11609::read |
( |
uint8_t |
channel | ) |
|
Reads one channel.
- Author
- Miguel (5/24/2015)
- Parameters
-
channel | The channel to convert or read. Alternatively if a channel was set already leave null. |
- Returns
- uint16_t The conversion result or -1 if there's an error.
void AllAboutEE::MAX11609::scan |
( |
uint16_t * |
buffer | ) |
|
Reads all channels conversion into a buffer/array.
- Author
- Miguel (5/24/2015)
- Parameters
-
buffer | an array where the channel read values are put. |
void AllAboutEE::MAX11609::setup |
( |
uint8_t |
data | ) |
|
Writes the setup byte (see Table 1. pg 13 of the datasheet).
- Author
- Miguel (5/24/2015)
- Parameters
-
data | The setup byte to write |
The documentation for this class was generated from the following files: