modm API documentation
modm::Ams5915< I2cMaster >::Data Struct Reference

Public Member Functions

uint16_t getPressureRaw ()
 
float getPressure ()
 
float getTemperature ()
 

Friends

template<typename I2cMaster >
class Ams5915
 

Member Function Documentation

template<typename I2cMaster >
float modm::Ams5915< I2cMaster >::Data::getPressure ( )
inline

This method returns the pressure as a normalized float from 0-1. You have to scale and offset this according to the specific sensor you have. So if you have AMS 5915-0010-D, you can measure +10mBar, you need to multiply it with 10.0f to get the pressure in mBar. If you have AMS 5915-0350-D-B, which can measure ±350mBar you first need to subtract 0.5f and then multiply it with 350.0f!

template<typename I2cMaster >
float modm::Ams5915< I2cMaster >::Data::getTemperature ( )
inline

This method returns the temperature of the pressure sensor in °C.


The documentation for this struct was generated from the following file: