whycyhl
2022-05-05 683c912f9ac1935a7b109fb402bb276dba450f6b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/******************************************************************************************
--------------------------------file information-------------------------------------------
** The Name of File :            RelayControl.h
** The Date of Last Modified:    2012-05-09
** Created By :                    WinTer
** The Version :                Original Version
** Descriptions :                Control the Relays by RS485.
******************************************************************************************/
 
 
 
#ifndef RelayControl_H
#define RelayControl_H
 
//-------------CMD-------------
#define        CMD_StepOut        0xF1    //Get StepOut
#define        CMD_Vol            0xF2    //Send SumVoltage
#define        CMD_ST            0xF3    //send stop signal
 
 
 
 
unsigned int GetStepOut(void);
void SendVoltage(void);
void CommWithRelays(const unsigned int CMD,void *TXData,void *RXData);
void SendStopCMD(void);
void SetCMDenable(unsigned char cmd);
void ControlRelays(void);
unsigned char GetCMDinf(void);
void SetCommError(unsigned char err);
unsigned char GetCommError(void);
 
 
 
 
 
#endif