123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #ifndef _SELECT_GUN_H_
- #define _SELECT_GUN_H_
- #include <stdint.h>
- #define ShmSelectGunInfoKey (1014)
- #define SEL_GUN_RELEASE (0x00)
- #define SEL_GUN_CONFIRM (0x01)
- #define SEL_GUN_ATHOR (0x02)
- #define SEL_GUN_PLUG_IT (0x03)
- #define LEFT_GUN_NUM (0)
- #define RIGHT_GUN_NUM (1)
- #define SEL_GUN_TIMEOUT (120)
- #define DESTROY_ALL_SEL (0x03)
- #define FAIL_BALANCE_PRICES (-65535.00)
- #define DEV_ST_DISABLE 0x00
- #define DEV_ST_ENABLE_USE 0x01
- #define DEV_ST_ENABLE_NO_USE 0x02
- #define EV_BOARD_STOP_CHARGING 1
- #define POWER_CABINET_STOP_CHARGING 2
- typedef struct StEthDevStatus {
- uint8_t Backend;
- uint8_t Ethernet;
- uint8_t Wifi;
- uint8_t FourG;
- } EthDevStatus;
- typedef struct StSelGunInfo {
- uint8_t LeftGun;
- uint8_t RightGun;
- uint8_t Reserved[2];
- } SelGunInfo;
- typedef struct StPricesInfo {
-
- float UserPrices;
-
- float Balance;
-
- float Discount;
- int TransactionId;
- float EnergyCost;
- float ParkingFee;
- float RemainAmount;
- } PricesInfo;
- typedef struct StRemoteSetup {
-
-
- uint16_t ConnectionTimeout;
-
-
-
- uint8_t Reserved[2];
- } RemoteSetup;
- typedef struct StAudiCustInfo {
- SelGunInfo SelGunInfo;
- PricesInfo PricesInfo[2];
- RemoteSetup RemoteSetup;
- EthDevStatus EthDevStatus;
- uint8_t AuthorStateFromCabinet[2];
- uint8_t WaitDoCommPermission[2];
-
- } SelectGunInfo;
- #endif
|