selfcheck.h 762 B

12345678910111213141516171819202122232425262728293031323334
  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. typedef struct _C_DEVICE_ERROR_INFO_
  14. {
  15. uint8_t sta_lamp;
  16. uint8_t sta_heat;
  17. uint8_t sta_camera;
  18. uint8_t sta_led;
  19. uint8_t sta_bat;
  20. uint8_t sta_rain;
  21. uint8_t sta_light;
  22. uint8_t sta_tempture;
  23. uint8_t sta_motor_upper;
  24. uint8_t sta_motor_lower;
  25. uint8_t sta_motor_clear;
  26. uint8_t sta_location;
  27. uint8_t sta_rtu_communication;
  28. };
  29. int selfcheck(uint8_t type);
  30. #endif /* APPLICATIONS_SELFCHECK_H_ */