upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
Go to the source code of this file.
Data Structures | |
struct | _temperature_context |
Functions | |
temperature_context | temperature_init (int pin) |
void | temperature_close (temperature_context dev) |
upm_result_t | temperature_get_value (temperature_context dev, float *tempval) |
Typedefs | |
typedef struct _temperature_context * | temperature_context |
temperature_context temperature_init | ( | int | pin | ) |
Analog temperature sensor initialization function
pin | analog pin to use |
void temperature_close | ( | temperature_context | dev | ) |
Analog temperature sensor destructor
dev | sensor context pointer |
upm_result_t temperature_get_value | ( | temperature_context | dev, |
float * | tempval | ||
) |
Gets the temperature in Celsius from the sensor
dev | sensor context pointer |
tempval | temperature value in Celsius |
typedef struct _temperature_context * temperature_context |
driver context