I2Cdevlib

I2C device library collection for AVR/Arduino or other C++-based MCUs

Public Member Functions
MYDEVSTUB Class Reference

Public Member Functions

 MYDEVSTUB ()
 MYDEVSTUB (uint8_t address)
void initialize ()
bool testConnection ()
uint8_t getMeasurement1 ()
uint8_t getMeasurement2 ()
uint8_t getMeasurement3 ()
void reset ()
bool getFIFOEnabled ()
void setFIFOEnabled (bool enabled)
uint8_t getInterruptMode ()
void setInterruptMode (uint8_t mode)
uint8_t getRate ()
void setRate (uint8_t rate)
uint16_t getData ()
void setData (uint16_t value)
uint8_t getDeviceID ()

Constructor & Destructor Documentation

MYDEVSTUB::MYDEVSTUB ( )

Default constructor, uses default I2C address.

See also:
MYDEVSTUB_DEFAULT_ADDRESS
MYDEVSTUB::MYDEVSTUB ( uint8_t  address)

Specific address constructor.

Parameters:
addressI2C address
See also:
MYDEVSTUB_DEFAULT_ADDRESS
MYDEVSTUB_ADDRESS

Member Function Documentation

void MYDEVSTUB::initialize ( )

Power on and prepare for general usage.

bool MYDEVSTUB::testConnection ( )

Verify the I2C connection. Make sure the device is connected and responds as expected.

Returns:
True if connection is valid, false otherwise

The documentation for this class was generated from the following files:
 All Data Structures Functions Variables