You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
479 B
39 lines
479 B
3 months ago
|
#ifndef _CCU_H_
|
||
|
#define _CCU_H_
|
||
|
|
||
|
#include "./config.h"
|
||
|
#include "./pcs.h"
|
||
|
|
||
|
#define CCU_PCS_NUM 4
|
||
|
|
||
|
#pragma pack(2)
|
||
|
|
||
|
typedef struct __CCU_AI__ {
|
||
|
sPCSAI pcs[CCU_PCS_NUM];
|
||
|
}sCCUAI;
|
||
|
|
||
|
typedef struct __CCU_AO__ {
|
||
|
sPCSAO pcs[CCU_PCS_NUM];
|
||
|
}sCCUAO;
|
||
|
#pragma pack()
|
||
|
|
||
|
typedef struct __CCU__ {
|
||
|
uint16_t status ;
|
||
|
|
||
|
sCCUConfig cfg ;
|
||
|
|
||
|
int aiLength;
|
||
|
int aoLength;
|
||
|
|
||
|
sCCUAO sendToAo;
|
||
|
sCCUAO recvFromAo;
|
||
|
sCCUAI recvFromAi;
|
||
|
|
||
|
struct __CCU__ *next;
|
||
|
struct __CCU__ *prev;
|
||
|
}sCCU;
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|