1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- #ifndef DASHBOARDSHM_H
- #define DASHBOARDSHM_H
- #include <stdbool.h>
- #include <sys/types.h>
- #include <sys/shm.h>
- #include <sys/ipc.h>
- #include <stdlib.h>
- #include <stdio.h>
- #pragma pack(1)
- typedef struct{
- int AlarmStatus;
- char Time[40];
- double Value;
- } YtPointValue;
- typedef struct{
- unsigned char Enabled;
- int BusAddr;
- int PointType;
- int AlarmType;
- int IsKeyPoint;
- int AlarmStatus;
- char Time[40];
- double Value;
- char PointName[240];
- YtPointValue pointvaluelist[10];
- } YtPoint;
- typedef struct{
- unsigned char Enabled;
- char DeviceID[40];
- char DeviceName[250];
- char DeviceTypeID[40];
- char DeviceType[240];
- char DeviceStatusNote[250];
- int DeviceStatus;
- uint UpTime;
- YtPoint DevicePoint[256];
- } YtDevice;
- typedef struct{
- unsigned char Enabled;
- char StationID[40];
- char StationName[250];
- char StationStatusNote[250];
- int StationStatus;
- int DeviceCount;
- int DeviceAlarm;
- int DeviceFault;
- char LastCommTime[40];
- YtDevice StationDevice[128];
- } YtStation;
- typedef struct{
- int StationCount;
- YtStation station[16];
- } YtStationCount;
- #pragma pack()
- #define MEM_PATH "/"
- #define MEM_PORT 5222
- #endif // DASHBOARDSHM_H
|