|
| UnitMAX30100 (const uint8_t addr=DEFAULT_ADDRESS) |
|
virtual bool | begin () override |
|
virtual void | update (const bool force=false) override |
|
uint32_t | caluculateSamplingRate () |
| Calculate the sampling rate from the current settings.
|
|
bool | reset () |
| Reset.
|
|
bool | readRevisionID (uint8_t &rev) |
| Read the revision ID.
|
|
|
config_t | config () |
| Gets the configration.
|
|
void | config (const config_t &cfg) |
| Set the configration.
|
|
|
uint16_t | ir () const |
| Oldest IR.
|
|
uint16_t | red () const |
| Oldest Red.
|
|
uint8_t | retrived () const |
| Number of data last retrieved.
|
|
uint8_t | overflow () const |
| The number of samples lost.
|
|
|
bool | startPeriodicMeasurement () |
| Start periodic measurement in the current settings.
|
|
bool | startPeriodicMeasurement (const max30100::Mode mode, const max30100::Sampling rate, const max30100::LEDPulse width, const max30100::LED ir_current, const bool high_resolution=false, const max30100::LED red_current=max30100::LED::Current0_0) |
| Start periodic measurement.
|
|
bool | stopPeriodicMeasurement () |
| Stop periodic measurement.
|
|
|
bool | readMode (max30100::Mode &mode) |
| Read the operation mode.
|
|
bool | writeMode (const max30100::Mode mode) |
| Write the operation mode.
|
|
bool | readShutdownControl (bool &shdn) |
| Read the shutdown control.
|
|
bool | writeShutdownControl (const bool shdn) |
| Write the shutdown control.
|
|
|
- Note
- Note that there are different combinations that can be set depending on the mode
- Mode:SPO2
Sampling\LEDPulseWidth | 200 | 400 | 800 | 1600 |
50 | o | o | o | o |
100 | o | o | o | o |
167 | o | o | o | x |
200 | o | o | o | x |
400 | o | o | x | x |
600 | o | x | x | x |
800 | o | x | x | x |
1000 | o | x | x | x |
- Mode:HROnly
Sampling\LEDPulseWidth | 200 | 400 | 800 | 1600 |
50 | o | o | o | o |
100 | o | o | o | o |
167 | o | o | o | x |
200 | o | o | o | x |
400 | o | o | x | x |
600 | o | o | x | x |
800 | o | o | x | x |
1000 | o | o | x | x |
|
bool | readSpO2Configuration (bool &resolution, max30100::Sampling &rate, max30100::LEDPulse &width) |
| Read the SpO2 configuration.
|
|
bool | writeSpO2Configuration (const bool resolution, const max30100::Sampling rate, const max30100::LEDPulse width) |
| Write the SpO2 configuration.
|
|
bool | readSpO2HighResolution (bool &enabled) |
| Read the SpO2 resolution mode.
|
|
bool | writeSpO2HighResolution (const bool enabled) |
| Write the SpO2 resolution mode.
|
|
bool | writeSpO2HighResolutionEnable () |
| Write the SpO2 high resolution mode to enable.
|
|
bool | writeSpO2HighResolutionDisable () |
| Write the SpO2 high resolution mode to disable.
|
|
bool | readSpO2SamplingRate (max30100::Sampling &rate) |
| Read the sampling rate.
|
|
bool | writeSpO2SamplingRate (const max30100::Sampling rate) |
| Write the sampling rate.
|
|
bool | readSpO2LEDPulseWidth (max30100::LEDPulse &width) |
| Write LED pulse width.
|
|
bool | writeSpO2LEDPulseWidth (const max30100::LEDPulse width) |
| Write LED pulse width.
|
|
|
- Warning
- In the heart-rate only mode, the red LED is inactive
|
bool | readLEDCurrent (max30100::LED &ir_current, max30100::LED &red_current) |
| Read the LED curremt.
|
|
bool | writeLEDCurrent (const max30100::LED ir_current, const max30100::LED red_current) |
| Write the LED current.
|
|
|
bool | measureTemperatureSingleshot (max30100::TemperatureData &td) |
| Measure tempeature single shot.
|
|
|
bool | readFIFOReadPointer (uint8_t &rptr) |
| Read the FIFO read pointer.
|
|
bool | writeFIFOReadPointer (const uint8_t rptr) |
| Write the FIFO read pointer.
|
|
bool | readFIFOWritePointer (uint8_t &wptr) |
| Read the FIFO write pointer.
|
|
bool | writeFIFOWritePointer (const uint8_t wptr) |
| Write the FIFO write pointer.
|
|
bool | readFIFOOverflowCounter (uint8_t &cnt) |
| Read the FIFO overflow counter.
|
|
bool | writeFIFOOverflowCounter (const uint8_t cnt) |
| Write the FIFO overflow counter.
|
|
bool | resetFIFO () |
| Reset FIFO pointer and counter.
|
|
|
bool | read_register (const uint8_t reg, uint8_t *buf, const size_t len) |
|
bool | read_register8 (const uint8_t reg, uint8_t &v) |
|
bool | start_periodic_measurement () |
|
bool | start_periodic_measurement (const max30100::Mode mode, const max30100::Sampling rate, const max30100::LEDPulse width, const max30100::LED ir_current, const bool resolution, const max30100::LED red_current) |
|
bool | stop_periodic_measurement () |
|
bool | read_FIFO () |
|
bool | read_measurement_temperature (max30100::TemperatureData &td) |
|
bool | write_spo2_configuration (const max30100::SpO2Configuration &sc) |
|
| M5_UNIT_COMPONENT_PERIODIC_MEASUREMENT_ADAPTER_HPP_BUILDER (UnitMAX30100, max30100::Data) |
|
Pulse oximetry and heart-rate sensor.
- Note
- The only single measurement is temperature; other data is constantly measured and stored