µracoli Manual  Version foo
MCU Temperature Sensor

Detailed Description

Measuring environment temperature with the MCU internal ADC.

Functions

static uint8_t mcu_temp_get_raw ( void *  pctx,
uint8_t *  pdata 
)
static

not implemented, returns noting

Definition at line 98 of file mcu_temp.h.

static uint8_t mcu_temp_get_val ( void *  pctx,
uint8_t *  pdata 
)
static

Sensor API Sensor API get functions

Definition at line 69 of file mcu_temp.h.

static uint8_t sensor_create_mcu_temp ( void *  pdata,
bool  raw 
)
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.

Parameters
pdatapointer to memory, where the sensor data is stored.
rawif true the get function will return the register values, otherwise a physical value is returned (temperature in degC a float)
addri2c address of the sensor
temp_offsetoffset of the measurement value.
Returns
sizeof(lm73_ctx_t)

Definition at line 124 of file mcu_temp.h.