PM2_5.h 395 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __PM_2_5_H__
  2. #define __PM_2_5_H__
  3. #include <stdint.h>
  4. typedef enum
  5. {
  6. OFF = 0,
  7. ON
  8. } SwitchStatus;
  9. typedef struct
  10. {
  11. uint32_t pm1_0;
  12. uint32_t pm2_5;
  13. uint32_t pm10;
  14. } PM2D5Data;
  15. void BoardInit(void);
  16. uint8_t Button_Left_Read_Data(void);
  17. void PM2DReadData(PM2D5Data* ReadData);
  18. void RelayStatusSet(SwitchStatus status);
  19. #endif