selfcheck.h 853 B

1234567891011121314151617181920212223242526272829303132333435
  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. * 2024-09-29 Administrator the first version
  9. */
  10. #ifndef APPLICATIONS_SELFCHECK_H_
  11. #define APPLICATIONS_SELFCHECK_H_
  12. extern rt_timer_t timer_takephoto;
  13. /* 2.9.48: 原 typedef 缺少别名导致 "useless storage class specifier" 告警, 去 typedef */
  14. struct _C_DEVICE_ERROR_INFO_
  15. {
  16. uint8_t sta_lamp;
  17. uint8_t sta_heat;
  18. uint8_t sta_camera;
  19. uint8_t sta_led;
  20. uint8_t sta_bat;
  21. uint8_t sta_rain;
  22. uint8_t sta_light;
  23. uint8_t sta_tempture;
  24. uint8_t sta_motor_upper;
  25. uint8_t sta_motor_lower;
  26. uint8_t sta_motor_clear;
  27. uint8_t sta_location;
  28. uint8_t sta_rtu_communication;
  29. };
  30. int selfcheck(uint8_t type);
  31. #endif /* APPLICATIONS_SELFCHECK_H_ */