Alora Library
Library for using Alora shield
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Static Public Attributes | List of all members
AllAboutEE::MAX11609 Class Reference

Public Member Functions

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 Public Attributes

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
 

Member Function Documentation

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
dataThe configuration byte to write
uint16_t AllAboutEE::MAX11609::read ( uint8_t  channel)

Reads one channel.

Author
Miguel (5/24/2015)
Parameters
channelThe 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
bufferan 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
dataThe setup byte to write

The documentation for this class was generated from the following files: