Relay.h 742 B

1234567891011121314151617181920212223242526272829303132
  1. /*********************************************************************************************************
  2. * Module : Relay.h
  3. * Abstract : Relay module is used to control external relay,of which combine with latch!
  4. * Version : 1.0.0
  5. * Author : Leopul(COPYRIGHT 2025 - 2027 Leopul. All rights reserved.)
  6. * Complete : 2025-02-16
  7. * Content : None
  8. * Note : None
  9. *********************************************************************************************************/
  10. #ifndef _RELAY_H_
  11. #define _RELAY_H_
  12. #include "stdint.h"
  13. enum{
  14. RELAY_CHANNEL_1 = 0,
  15. RELAY_CHANNEL_2,
  16. };
  17. enum{
  18. OUT_CLOSE = 0,
  19. OUT_OPEN,
  20. };
  21. void InitRelay(void);
  22. void out_open();
  23. void out_close();
  24. void choise_input(uint8_t channel);
  25. #endif