an I2C bus optical sensor for heart rate monitor
BH1790GLC Class Reference
#include <BH1790GLC.h>
Public Member Functions | |
| BH1790GLC (PinName sda, PinName scl, char address=BH1790GLC_DEVICE_ADDRESS) | |
| Create a BH1790GLC instance connected to specified I2C pins with specified address. | |
| BH1790GLC (I2C &i2c_obj, char address=BH1790GLC_DEVICE_ADDRESS) | |
| Create a BH1790GLC instance connected to specified I2C object with specified address. | |
| ~BH1790GLC () | |
| Destructor of BH1790GLC. | |
Detailed Description
BH1790GLC class.
BH1790GLC: an I2C bus optical sensor for heart rate monitor library
BH1790GLC is optical sensor for heart rate monitor IC in which LED driver and green light detection photo-diode are incorporated. This device drives LED and provides the intensity of light reflected from body.
For more information about BH1790GLC: http://www.rohm.com/web/global/datasheet/BH1790GLC/bh1790glc-e
This was ported from Arduino library by H.Tanaka http://rohmfs.rohm.com/en/products/databook/applinote/ic/sensor/optical_sensor_for_heart_rate_monitor/bh1790glc-evk-001-manual-e.pdf http://rohmfs.rohm.com/en/products/databook/applinote/ic/sensor/optical_sensor_for_heart_rate_monitor/bh1790glc-software-manual-e.pdf
Definition at line 69 of file BH1790GLC.h.
Constructor & Destructor Documentation
| BH1790GLC | ( | PinName | sda, |
| PinName | scl, | ||
| char | address = BH1790GLC_DEVICE_ADDRESS |
||
| ) |
Create a BH1790GLC instance connected to specified I2C pins with specified address.
- Parameters:
-
sda I2C-bus SDA pin scl I2C-bus SCL pin i2c_address I2C-bus address (default: 0x5B<<1)
Definition at line 28 of file BH1790GLC.cpp.
| BH1790GLC | ( | I2C & | i2c_obj, |
| char | address = BH1790GLC_DEVICE_ADDRESS |
||
| ) |
Create a BH1790GLC instance connected to specified I2C object with specified address.
- Parameters:
-
i2c_obj I2C object (instance) i2c_address I2C-bus address (default: 0x5B<<1)
Definition at line 34 of file BH1790GLC.cpp.
| ~BH1790GLC | ( | ) |
Destructor of BH1790GLC.
Definition at line 40 of file BH1790GLC.cpp.
Generated on Tue Jul 26 2022 08:57:52 by
1.7.2