123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- #ifndef ShareMemory_H
- #define ShareMemory_H
- struct AuthorizeRequest
- {
- unsigned char IdTag[20];
- };
- struct BootNotificationRequest{
- unsigned char CpVendor[20];
- unsigned char CpModel[20];
- unsigned char CpSN[25];
- unsigned char CbSN[25];
- unsigned char CpFwVersion[50];
- unsigned char CpIccid[20];
- unsigned char CpImsi[20];
- unsigned char CpMeterType[25];
- unsigned char CpMeterSerialNumber[25];
- };
- struct DiagnosticsStatusNotificationRequest{
- unsigned char Status[16];
- };
- struct StartTransactionRequest
- {
- int ConnectorId;
- unsigned char IdTag[20];
- int MeterStart;
- int ReservationId;
- unsigned char Timestamp[28];
- };
- struct StopTransactionRequest
- {
- unsigned char IdTag[20];
- int MeterStop;
- unsigned char Timestamp[28];
- int TransactionId;
- unsigned char StopReason;
- struct StructMeterValue *TransactionData;
- };
- struct StatusNotificationRequest
- {
- int ConnectorId;
- unsigned char ErrorCode;
- unsigned char Info[50];
- unsigned char Status;
- unsigned char Timestamp[28];
- unsigned char VendorId[256];
- unsigned char VendorErrorCode[50];
- };
- struct AuthorizeResponse{
- unsigned char ExpiryDate[28];
- unsigned char ParentIdTag[20];
- unsigned char Status[16];
- };
- struct BootNotificationResponse{
- unsigned char ResponseStatus[16];
- unsigned char ResponseCurrentTime[28];
- int ResponseHeartbeatInterval;
- };
- struct DataTransferResponse
- {
- unsigned char ResponseStatus[18];
- unsigned char ResponseData[256];
- };
- struct HeartbeatResponse
- {
- unsigned char ResponseCurrentTime[28];
- };
- struct StartTransactionResponse
- {
- unsigned char ExpiryDate[28];
- unsigned char ParentIdTag[20];
- unsigned char Status[16];
- int ResponseTransactionId;
- };
- struct StopTransactionResponse
- {
- unsigned char ExpiryDate[28];
- unsigned char ParentIdTag[20];
- unsigned char Status[16];
- };
- int InitShareMemory();
- int ProcessShareMemory();
- void CheckSystemValue(void);
- #endif
|