| 1234567891011121314151617181920212223242526272829303132 |
- /*********************************************************************************************************
- * Module : Relay.h
- * Abstract : Relay module is used to control external relay,of which combine with latch!
- * Version : 1.0.0
- * Author : Leopul(COPYRIGHT 2025 - 2027 Leopul. All rights reserved.)
- * Complete : 2025-02-16
- * Content : None
- * Note : None
- *********************************************************************************************************/
- #ifndef _RELAY_H_
- #define _RELAY_H_
- #include "stdint.h"
- enum{
- RELAY_CHANNEL_1 = 0,
- RELAY_CHANNEL_2,
- };
- enum{
- OUT_CLOSE = 0,
- OUT_OPEN,
- };
- void InitRelay(void);
- void out_open();
- void out_close();
- void choise_input(uint8_t channel);
- #endif
|