cs.h

来自「包括EPA协议栈」· C头文件 代码 · 共 44 行

H
44
字号
#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 + =
减小字号Ctrl + -
显示快捷键?