mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
23 lines
389 B
C
23 lines
389 B
C
#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
|