µracoli Manual
Version foo
|
±1°C Temperature Sensor with I2C/SMBus Interface
|
static |
Create an instance of a LM73 sensor and initialize the sensor.
If the parameter pdata != NULL, the sensor is also initialized. In case that the initialization fails, the variable drv.last_error is set to SENSOR_ERR_INIT.
pdata | pointer to memory, where the sensor data is stored. |
raw | if true the get function will return the register values, otherwise a physical value is returned (temperature in degC a float) |
addr | i2c address of the sensor |
temp_offset | offset of the measurement value. |
#define LM73_T_BUS_FREE_US (8) |
This value is the time between a stop-start cycle of the LM73. It is speced as tBuf = 1.2us min, but on mesh bean it was found that 8us ensure stable behaviour.