|
K-FSW ec10f94
Modular flight software on Zephyr, for small satellites
|
Data Structures | |
| struct | kfsw_temp_example_reading |
Functions | |
| int | kfsw_temp_example_init (void) |
| int | kfsw_temp_example_get (struct kfsw_temp_example_reading *reading) |
Variables | |
| const struct kfsw_param_definition_set | kfsw_temp_example_param_definitions |
A sensor read into a parameter table, for housekeeping.
| int kfsw_temp_example_get | ( | struct kfsw_temp_example_reading * | reading | ) |
#include <temperature_sensor_example.h>
Copy a consistent snapshot of the cached reading.
Doesn't touch the ADC, so it can be called from a parameter sample callback. Readings older than CONFIG_KFSW_TEMP_EXAMPLE_MAX_AGE_MS are returned as invalid.
| reading | Destination. |
| int kfsw_temp_example_init | ( | void | ) |
#include <temperature_sensor_example.h>
Initialize the cache and start the configured sensor.
Queues the first reading on the module's workqueue. The cache stays invalid until that read completes; initialization does not wait for a conversion.
|
extern |
#include <temperature_sensor_example.h>
Parameter table of the temperature example.