103协议103协议源代码
代码说明:
应用背景void Init_IEC103_Buf(unsigned char ucPort) { STATUS status; VOID * pointer; unsigned short usStep1; unsigned char * pTempBuf; BufStruct * pTempBufList, * pTempBufList1; status = NU_Allocate_Memory(&System_Memory,&pointer,sizeof(IECDefStruct),NU_NO_SUSPEND); if(status != NU_SUCCESS) while(1); pIEC103_Struct[ucPort] = (IEC103DefStruct *)pointer; status = NU_Allocate_Memory (&System_Memory, &pointer, 8*sizeof(BufStruct), NU_NO_SUSPEND); if (status != NU_SUCCESS) &nbs
下载说明:请别用迅雷下载,失败请重下,重下不扣分!