sensor.h 370 B

12345678910111213141516171819
  1. #ifndef __SENSORER_Hx__
  2. #define __SENSORER_Hx__
  3. #include "datadef.h"
  4. #define MAX_SENSOR 3
  5. int sensor_init(void);
  6. int sensor_deinit(void);
  7. int sensor_set(sensor_data_t *data);
  8. int sensor_remove(sensor_data_t *data);
  9. int sensor_query(void);
  10. int sensor_data_get(sensor_all_t *all);
  11. int sensor_data_free(sensor_all_t *all);
  12. sensor_all_t * sensor_get_data();
  13. #endif