sensor_st_sths34pf80.h 719 B

123456789101112131415161718192021222324252627282930
  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. * 2023-01-29 Rick the first version
  9. */
  10. #ifndef APPLICATIONS_SENSOR_ST_S34F80_H_
  11. #define APPLICATIONS_SENSOR_ST_S34F80_H_
  12. #include "rtthread.h"
  13. #include "rtdevice.h"
  14. #include "stdint.h"
  15. #include "sths34pf80.h"
  16. #include <rtdbg.h>
  17. #if defined(RT_VERSION_CHECK)
  18. #if (RTTHREAD_VERSION >= RT_VERSION_CHECK(5, 0, 2))
  19. #define RT_SIZE_TYPE rt_ssize_t
  20. #else
  21. #define RT_SIZE_TYPE rt_size_t
  22. #endif
  23. #endif
  24. int rt_hw_sths34pf80_init(const char *name, struct rt_sensor_config *cfg);
  25. #endif /* APPLICATIONS_SENSOR_ST_S34F80_H_ */