📄 cs.h
字号:
#ifndef _CS_H
#define _CS_H
#include "global.h"
#ifdef CS_GLOBALS
#define CS_EXTERN
#else
#define CS_EXTERN extern
#endif // CS_TASK_GLOBALS
#define NPMA_TAG (0x20)
#define ENPMA_TAG (0x21)
#define CSANN_LEN (60)
#define CS_ACTIVETIME (0x01)
#define CS_CYCSTART (0x02)
#define CS_NONPRDTIME (0x04)
#define CS_UPDATECYC (0x80)
#define CS_UNUSABLE (0)
CS_EXTERN uint32 gMacroCyc; // Length of an Macro Cycle
CS_EXTERN uint32 gAtcPrdOff; // Active time offset in a Cycle
CS_EXTERN uint32 gNonPrdOff; // None period time offset in a Cycle
CS_EXTERN uint8 gCStatus;
CS_EXTERN OS_EVENT* gpCSendMsgQ;
void CSInit(void);
void CSStart(PNetIF pni);
void CSStop(void);
uint8 CSend(PSock psock);
void CSAnnOutput(uint8 prio, PNetIF pni);
void CSEndAnnOutput(uint8 prio, PNetIF pni);
void CSAnnInput(PSock psock, uint8 com_type, uint16 msg_id);
void CSEndAnnInput(PSock psock, uint8 com_type, uint16 msg_id);
#endif // _CS_TASK_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -