Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: USBDevice
Fork of HSP_Release by
MAX30205 Class Reference
Driver for the MAX30205 on the HSP Platform. More...
#include <MAX30205.h>
| Public Types | |
| enum | Registers | 
| < MAX30205 Register AddressesMore... | |
| typedef enum MAX30205::Registers | Registers_t | 
| < MAX30205 Register Addresses | |
| Public Member Functions | |
| MAX30205 (PinName sda, PinName scl, int slaveAddress) | |
| Constructor using I2C PinNames. | |
| MAX30205 (I2C *i2c, int slaveAddress) | |
| Constructor using pointer to I2C object. | |
| ~MAX30205 (void) | |
| Destructor. | |
| int | reg_write (char reg, char value) | 
| Write a register into device at slave address. | |
| int | reg_read (char reg, char *value) | 
| Detect the second instance of the MAX30205. | |
| int | reg_write16 (char reg, uint16_t value) | 
| Write a 16-bit value into device at slave address. | |
| int | reg_read16 (char reg, uint16_t *value) | 
| Read a 16-bit value from a device at a slave address. | |
| int | readTemperature (uint16_t *value) | 
| Read the temperature from the device into a 16 bit value. | |
| int | reg_THYST_Read (uint16_t *value) | 
| Read the THYST value from a specified device instance. | |
| int | reg_THYST_Write (uint16_t value) | 
| Write the THYST to a device instance. | |
| float | toCelsius (unsigned int rawTemp) | 
| Convert a raw temperature value into a float. | |
| float | toFahrenheit (float temperatureC) | 
| Convert the passed in temperature in C to Fahrenheit. | |
Detailed Description
Driver for the MAX30205 on the HSP Platform.
Definition at line 42 of file MAX30205.h.
Member Typedef Documentation
| typedef enum MAX30205::Registers Registers_t | 
< MAX30205 Register Addresses
Member Enumeration Documentation
| enum Registers | 
< MAX30205 Register Addresses
Definition at line 45 of file MAX30205.h.
Constructor & Destructor Documentation
| MAX30205 | ( | PinName | sda, | 
| PinName | scl, | ||
| int | slaveAddress | ||
| ) | 
Constructor using I2C PinNames.
- Parameters:
- 
  sda Pinname for sda scl Pinname for scl 
Definition at line 36 of file MAX30205.cpp.
| MAX30205 | ( | I2C * | i2c, | 
| int | slaveAddress | ||
| ) | 
Constructor using pointer to I2C object.
- Parameters:
- 
  *i2c Pointer to I2C object 
Definition at line 44 of file MAX30205.cpp.
| ~MAX30205 | ( | void | ) | 
Destructor.
Definition at line 51 of file MAX30205.cpp.
Member Function Documentation
| int readTemperature | ( | uint16_t * | value ) | 
Read the temperature from the device into a 16 bit value.
- Parameters:
- 
  value pointer to a 16 bit short 
Definition at line 115 of file MAX30205.cpp.
| int reg_read | ( | char | reg, | 
| char * | value | ||
| ) | 
Detect the second instance of the MAX30205.
- Parameters:
- 
  reg register address value 8-bit value to writes 
Definition at line 82 of file MAX30205.cpp.
| int reg_read16 | ( | char | reg, | 
| uint16_t * | value | ||
| ) | 
Read a 16-bit value from a device at a slave address.
- Parameters:
- 
  reg register address value pointer to store read value 
Definition at line 98 of file MAX30205.cpp.
| int reg_THYST_Read | ( | uint16_t * | value ) | 
Read the THYST value from a specified device instance.
- Parameters:
- 
  value 16-bit pointer of value to read into 
Definition at line 139 of file MAX30205.cpp.
| int reg_THYST_Write | ( | uint16_t | value ) | 
Write the THYST to a device instance.
- Parameters:
- 
  value 16-bit value to write 
Definition at line 144 of file MAX30205.cpp.
| int reg_write | ( | char | reg, | 
| char | value | ||
| ) | 
Write a register into device at slave address.
- Parameters:
- 
  reg register address value value to write 
Definition at line 58 of file MAX30205.cpp.
| int reg_write16 | ( | char | reg, | 
| uint16_t | value | ||
| ) | 
Write a 16-bit value into device at slave address.
- Parameters:
- 
  reg register address value 16-bit value to write 
Definition at line 69 of file MAX30205.cpp.
| float toCelsius | ( | unsigned int | rawTemp ) | 
Convert a raw temperature value into a float.
- Parameters:
- 
  rawTemp raw temperature value to convert 
- Returns:
- the convereted value in degrees C
Definition at line 124 of file MAX30205.cpp.
| float toFahrenheit | ( | float | temperatureC ) | 
Convert the passed in temperature in C to Fahrenheit.
- Parameters:
- 
  temperatureC Temperature in C to convert 
- Returns:
- Returns the converted Fahrenheit value
Definition at line 134 of file MAX30205.cpp.
Generated on Tue Jul 12 2022 17:59:20 by
 1.7.2
 1.7.2 
    