|
upm
1.6.0
Sensor/Actuator repository for libmraa (v1.9.0)
|

Go to the source code of this file.
Data Structures | |
| struct | _moisture_context |
Functions | |
| moisture_context | moisture_init (int pin) |
| void | moisture_close (moisture_context dev) |
| upm_result_t | moisture_get_moisture (moisture_context dev, int *moisture) |
Typedefs | |
| typedef struct _moisture_context * | moisture_context |
| moisture_context moisture_init | ( | int | pin | ) |
Init function
| pin | analog pin number |
| void moisture_close | ( | moisture_context | dev | ) |
Close function
| dev | pointer to the sensor structure |
| upm_result_t moisture_get_moisture | ( | moisture_context | dev, |
| int * | moisture | ||
| ) |
Get Moisture function.
| dev | pointer to the sensor struct |
| moisture | pointer that will be used to store the output value from the sensor |
| typedef struct _moisture_context * moisture_context |
device context
1.8.11