C++ API for MAX44000 chip (Ambient and Infrared Proximity Sensor)
More...
The Maxim Integrated MAX44000 is Ambient and Infrared Proximity Sensor. This module was tested on the Maxim Integrated MAX44000PMB1 PMOD module from the analog PMOD kit.
std::cout <<
"proximity value = " << sensor->
getAmbient () << std::endl;
Instanciates a MAX44000 object
- Parameters
-
bus | number of used bus |
devAddr | addres of used i2c device |
MAX44000 object destructor, basicaly it close i2c connection.
uint16_t getProximity |
( |
| ) |
|
Read the proximity value from the chip (based on ambient data).
Read the ambient value from the chip (based on ambient data).
Return name of the component
uint8_t i2cReadReg_8 |
( |
int |
reg | ) |
|
Read one byte register
- Parameters
-
uint16_t i2cReadReg_16 |
( |
int |
reg | ) |
|
Read two bytes register
- Parameters
-
mraa_result_t i2cWriteReg |
( |
uint8_t |
reg, |
|
|
uint8_t |
value |
|
) |
| |
Write to one byte register
- Parameters
-
reg | address of a register |
value | byte to be written |
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/upm-doc/src/max44000/max44000.h
- /var/lib/jenkins/workspace/upm-doc/src/max44000/max44000.cxx