soft_flow.h 843 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __SOFT_FLOW_H__
  2. #define __SOFT_FLOW_H__
  3. #include "stdbool.h"
  4. #include "stdint.h"
  5. #define FlOW_KP 22
  6. //샅랑직좆셕
  7. #pragma pack(1)
  8. typedef struct
  9. {
  10. bool count_flag;
  11. uint32_t time;
  12. uint32_t last_time;
  13. uint32_t irq_count; //데貫珂쇌코쒔법돨捻竟竟생
  14. uint32_t irq_last_count;
  15. bool exti_error;
  16. int speed;
  17. bool rising_delay_flag;
  18. bool falling_delay_falg;
  19. uint32_t cal_delay_time;
  20. uint8_t irq_flag;
  21. bool sem_flag;
  22. uint32_t rising_delay_time;
  23. uint32_t falling_delay_time;
  24. }flow_hl;
  25. extern flow_hl flow_dev1;
  26. extern flow_hl flow_dev2;
  27. #pragma pack()
  28. typedef struct
  29. {
  30. uint16_t speed;
  31. uint32_t flow_ml;
  32. uint16_t warn;
  33. }vk_flow;
  34. extern bool Start_80_hz, Start_10_hz, Start_5_hz, Start_1_hz;
  35. extern void Flow_Function();
  36. #endif