2021-10-24 10:25:35 +08:00

23 lines
389 B
C
Raw Blame History

#ifndef __RELAY_H
#define __RELAY_H
//Sparrow Board RELAY
typedef enum{
SP_RELAY1,
}sp_relay_t;
//<2F>̵<EFBFBD><CCB5><EFBFBD>״̬
typedef enum{
SP_RELAY_STATE_CLOSE, //<2F>ر<EFBFBD>
SP_RELAY_STATE_OPEN //<2F><><EFBFBD><EFBFBD>
}sp_relay_state_t;
void Relay_Init(void);
void Relay_SetState(sp_relay_t relay,sp_relay_state_t state);
void Relay_Toggles(sp_relay_t relay);
sp_relay_state_t Relay_GetState(sp_relay_t relay);
#endif