sensor.h 597 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-01-31 flybreak first version
  9. * 2021-06-23 linpeng added function declaration
  10. */
  11. #ifndef __SENSOR_H__
  12. #define __SENSOR_H__
  13. #include <rtthread.h>
  14. #ifdef __cplusplus
  15. extern "C"
  16. {
  17. #endif
  18. int rt_hw_sensor_register(rt_sensor_t sensor,
  19. const char *name,
  20. rt_uint32_t flag,
  21. void *data);
  22. #ifdef __cplusplus
  23. }
  24. #endif
  25. #endif /*__SENSOR_H__*/