3#include <main-header.h>
4#include "sensors/sensor_dev.h"
9int sensor_update_config(
const long nodeid,
int idx,
const int readmillis,
const int submitsec,
const int max_values);
10void sensor_activation(
struct sensorruntime *sr,
int activation);
13uint8_t sensors_inited();
18void sensor_run_str(
const char *str);
19int all_sensors_probed();
20int sensor_submit_request(
const long nodeid,
int idx,
const int readmillis,
const int submitsec,
const int max_values);
25void sensor_deregister(
struct sensordev *sensor);
33#define SENSOR_CONFIG_FLAG_IRQ 0
void sensors_init()
initialize sensors, runtime, config, powerup each sensor in turn etc..
void sensors_off()
disable sensors
int sensor_loop()
called periodically. this will either query sensors when they are due or will set the isdue flag for ...
void sensors_newstyle()
enable new-style sensors (and disable old)
struct sensordev * sensor_register(struct sensordev *sensor)
register a new sensor. returns 0 if ok
runtime data per sensor (in-ram)