analog_input.h 767 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef __ANALOG_INPUT_H
  2. #define __ANALOG_INPUT_H
  3. #include <stdbool.h>
  4. /*
  5. #define AN_INP_1 (0)
  6. #define AN_INP_1 (0)
  7. #define AN_INP_1 (0)
  8. #define AN_INP_1 (0)
  9. #define AN_INP_1 (0)
  10. #define AN_INP_1 (0)
  11. #define AN_INP_1 (0)
  12. #define AN_INP_1 (0)
  13. */
  14. typedef enum
  15. {
  16. MUX_301_CH = 0,
  17. AN_INP_1,
  18. AN_INP_2,
  19. AN_INP_3,
  20. AN_INP_4,
  21. AN_INP_5,
  22. AN_INP_6,
  23. V_ISO_CL, // +24 V
  24. V_ISO, // +5 V
  25. MUX_401_CH,
  26. AN_INP_7,
  27. AN_INP_8,
  28. AN_INP_9,
  29. AN_INP_10,
  30. AN_INP_11,
  31. AN_INP_12,
  32. CRNT_LIM_U_BFR_R,
  33. CRNT_LIM_U_ABFR_R
  34. } ANALOG_IN;
  35. //
  36. void ai_connect_channel_301(uint8_t ch);
  37. //
  38. void ai_connect_channel_401(uint8_t ch);
  39. //
  40. void ai_connect_test(void);
  41. #endif // __ANALOG_INPUT_H