123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- #ifndef _AUDI_CUSTOM_H_
- #define _AUDI_CUSTOM_H_
- #include <stdint.h>
- #define ShmAudiCustInfoKey 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;
-
- uint8_t Reserved[4];
- } PricesInfo;
- typedef struct StRemoteSetup {
-
- uint16_t ConnectionTimeout;
-
-
-
- uint8_t Reserved[2];
- } RemoteSetup;
- typedef struct StAudiCustInfo {
- SelGunInfo SelGunInfo;
- PricesInfo PricesInfo[2];
- RemoteSetup RemoteSetup;
- EthDevStatus EthDevStatus;
- } AudiCustInfo;
- #endif
|