Contiki 3.x
sampler.h
Go to the documentation of this file.
1 /**
2  * @file
3  * Process that periodically takes samples from onboard sensors and stores them in flash.
4  * The sensors to sample as well as the sampling interval are defined by the SampleConfig stored in the Store.
5  * The sampler can be instrcuted to reload it from the Store by calling sampler_refresh_config()
6  *
7  * @author
8  * Dan Playle <djap1g12@soton.ac.uk>
9  * Philip Basford <pjb@ecs.soton.ac.uk>
10  * Graeme Bragg <gmb1g08@ecs.soton.ac.uk>
11  * Tyler Ward <tw16g08@ecs.soton.ac.uk>
12  * Kirk Martinez <km@ecs.soton.ac.uk>
13  * Arthur Fabre <af1g12@ecs.soton.ac.uk>
14  */
15 
16 #ifndef SAMPLER_H
17 #define SAMPLER_H
18 
19 #include <stdbool.h>
20 #include "contiki.h"
21 #include "settings.pb.h"
22 
23 /**
24  * Process the sampler runs as.
25  */
26 PROCESS_NAME(sample_process);
27 
28 /**
29  * Get the Sampler to reload it's config from flash.
30  * This is a non blocking asynchronous call.
31  */
32 void sampler_refresh_config(void);
33 
34 /**
35  * Check a config for sanity.
36  * @return True if the config is sane, false otherwise.
37  */
38 bool sampler_check_config(SensorConfig *config);
39 
40 #endif // ifndef SAMPLER_H
bool sampler_check_config(SensorConfig *config)
Check a config for sanity.
Definition: sampler.c:266
PROCESS_NAME(sample_process)
Process the sampler runs as.
void sampler_refresh_config(void)
Get the Sampler to reload it's config from flash.
Definition: sampler.c:261