📄 rx.x
字号:
U8 gunNum;
U8 reserve;
} ReadTotleAck_s;
typedef struct
{
MsgHdr_s hdr;
U8 cmdCode;
U8 ackCode;
U8 asn[10];
} ReadCardAsnAck_s;
typedef struct
{
MsgHdr_s hdr;
U8 cmdCode;
U8 ackCode;
U8 asn[10];
U8 cardType;
U8 cardStat;
U8 cardBallencStat;
U8 reserve;
U32 cardValue;
U32 cardBallencValue;
} ReadCardInfoAck_s;
typedef struct
{
MsgHdr_s hdr;
U8 cmdCode;
U8 ackCode;
U8 gunId;
U8 reserve;
U16 price;
} ReadCrrntPriceAck_s;
typedef struct
{
MsgHdr_s hdr;
U8 cmdCode;
U8 ackCode;
U8 gunId;
U8 oilType;
} ReadOilTypeAck_s;
typedef struct
{
MsgHdr_s hdr;
U8 cmdCode;
U8 ackCode;
Record_s record;
U8 stat;
} GetHistoryAck_s;
typedef struct
{
CmLList node;
Record_s record;
} HistroyEntry_s;
typedef struct
{
U32 mac;
U8 ver;
} IndMsgTail_s;
typedef struct
{
U8 cmdCode;
U8 gunId;
U8 volume[3];
} GunDownIndMsg_s;
typedef struct
{
U8 cmdCode;
U8 workerCardNo[10];
U8 gunId;
U32 totle;
} OnWorkIndMsg_s;
typedef struct
{
U8 cmdCode;
U8 cardNo[10];
U8 gunId;
} UserInsCardIndMsg_s;
typedef struct
{
U8 reserve[2];
U8 cmdCode;
U8 ballencStat;
U32 cardValue;
U8 gunId;
} UserOutCardIndMsg_s;
typedef struct
{
U8 reserve[2];
U8 cmdCode;
U8 cardType;
U32 cardValue;
U8 cardStat;
U8 gunId;
} CrrntCardInfoIndMsg_s;
typedef struct
{
U8 cmdCode;
U8 gunId;
U8 volume[3];
} FillVolumeIndMsg_s;
typedef struct
{
U8 reserve[2];
U8 cmdCode;
U8 gunId;
U32 totleVolume;
}OutWorkIndMsg_s;
typedef struct
{
U8 cmdCode;
U8 zero;
} GetStationCodeIndMsg_s;
typedef struct
{
U8 reserve;
U8 cmdCode;
U8 result;
U8 gunId;
U16 price;
} SingleGunPriceIndMsg_s;
typedef struct
{
U8 cmdCode;
U8 result;
U8 gunNum;
}AllGunPriceIndMsg_s;
typedef struct
{
U8 gunId;
U8 totleVolume[4];
} TotleInfo_s;
typedef struct
{
U8 cmdCode;
U8 reserve;
U8 gunNum;
} GetTotleVolumeIndMsg_s ;
typedef struct
{
U8 gunId;
U16 price;
}PriceInfo_s;
typedef struct
{
U8 cmdCode;
U8 reserve;
U8 gunNum;
} GetPriceIndMsg_s ;
typedef struct
{
Time_s time;
PriceEntry_s price[OILTYPE_NUM];
} PriceFormat_s;
/**** import variable ****/
EXTERN RxCb_s rxCb;
/**** export variable ****/
/**** import function declare ****/
/**** export function declare ****/
S16 rxInit(HINSTANCE hInstance, HINSTANCE hPreInstance);
S16 lbTmrHandle(void);
S16 lbTmrInit(void);
S16 lbSchdTmr(U32 tmrValue, S16 tmrType, S16 event) ;
S16 lbSchdTmr(U32 tmrValue, S16 tmrType, S16 event) ;
S16 lbRecvCommonIndAck(U8 cmdCode, Buffer * msg);
S16 lbRecvGunUpIndAck(Buffer * mbuf);
S16 lbRecvGunDownIndAck(Buffer * mbuf);
S16 lbRecvWorkOnIndAck(Buffer * mbuf);
S16 lbRecvCardInsertIndAck(Buffer * mbuf);
S16 lbRecvCardOutIndAck(Buffer * mbuf);
S16 lbRecvCardInfoIndAck(Buffer * mbuf);
S16 lbRecvTranInfoIndAck(Buffer * mbuf);
S16 lbRecvWorkDownIndAck(Buffer * mbuf);
S16 lbRecvGetStaCodeIndAck(Buffer * mbuf);
S16 lbRecvBlkLstInProvinceNtfy(Buffer * mbuf);
S16 lbRecvGetEquInfoNtfy(Buffer * mbuf);
S16 lbRecvGetSpecStaCodeRqst(Buffer * mbuf);
S16 lbRecvGetHistroyRqst(Buffer * mbuf);
S16 lbRecvSetKeyVerRqst(Buffer * mbuf);
S16 lbRecvSetKeyInfoRqst(Buffer * mbuf);
S16 lbRecvEnaIBankAppRqst(Buffer * mbuf);
S16 lbRecvSetKeyIdxRqst(Buffer * mbuf);
S16 lbRecvEnaSecPoneyRqst(Buffer * mbuf);
S16 lbRecvGetPumpCodeRqst(Buffer * mbuf);
S16 lbRecvSetPriceRqst(Buffer * mbuf);
S16 lbRecvGetPriceRqst(Buffer * mbuf);
S16 lbRecvStopFillRqst(Buffer * mbuf);
S16 lbRecvResFillRqst(Buffer * mbuf);
S16 lbRecvGreyListUpdateNtfy(Buffer * mbuf);
S16 lbRecvBlkLstInCountryNtfy(Buffer * mbuf);
S16 lbRecvDisNtfy(Buffer * mbuf);
int DownData(U32 data,U32 len,Data * buf);
S16 lbCmGetSpecCode(U32 *itemNum, SpecCode_s ** ret_specCodeArray);
S16 rxGetEquInfo(U8 * ret_gunNum, EquCfg_s ** ret_equTbl, U8 * ret_ver);
#ifndef UP_LAYER_UNSECRET
S16 lbCmGetProvinceBlk(U32 * itemNum, BlkCardLine_s ** ret_itemArray, U8 type);
#else
S16 lbCmGetProvinceBlk(Buffer *cardasn, U32 * itemNum, U8 type);
#endif
S16 lbCmGetCountryBlk(Buffer *cardasn, U32 * itemNum, U8 type);
S16 lbRecvProc (U8 gunId);
S16 lbUpdateGunStat(EquCfgEntry_s * equ, U8 sideId, RqstStatAck_s * ack);
S16 lbScRqstProc(EquCfgEntry_s * equ, U8 rqstFlag);
S16 lbBuildSetOilTypeCmd(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildLoadCfg(EquCfgEntry_s * equ);
S16 lbBuildLoadDLD(EquCfgEntry_s * equ);
S16 lbBuildLoadBlklist(EquCfgEntry_s * equ);
S16 lbBuildLoadOwnGrey(EquCfgEntry_s * equ);
S16 ldBuildFindBlklist(EquCfgEntry_s * equ);
S16 lbBuildFindOtherGrey(EquCfgEntry_s * equ);
S16 lbBuildSendRecordRqst(EquCfgEntry_s * equ);
S16 lbBuildRqstStat(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildGetCardASN(EquCfgEntry_s * equ, TranCb_s * tran, U32 action);
S16 lbBuildGetCardInfo(EquCfgEntry_s * equ, TranCb_s * tran, U32 action);
S16 lbBuildAuthStart(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildAuthStop(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildGetTotleVolume(EquCfgEntry_s * equ, TranCb_s * tran, U32 action);
S16 lbBuildGetPrice(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildStopFill(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildResumeFill(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildCfm(EquCfgEntry_s * equ, TranCb_s * tran, U32 rqstType, U32 action);
S32 lbBuildCloseDuring(EquCfgEntry_s * equ, TranCb_s * tran, U32 action);
S16 lbBuildUpdateBlkList(EquCfgEntry_s * equ, TranCb_s * tran, CardAsn_s * asnArray, U32 itemNum);
S16 lbBuildGetHistroyCmd(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbProcSpecCode(S32 itemNum, SpecCode_s * array);
S16 lbBuildCfgSysCmd(EquCfgEntry_s * equ, TranCb_s * tran, RxCfg_s * cfg);
S16 lbIndReadPriceAck(U8 pGunId, TranCb_s * tran);
S16 lbBuildSetPriceCmd(EquCfgEntry_s * equ, TranCb_s * tran, U16 price, Time_s * time);
S16 lbIndGunUpMsg(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbIndGunDownMsg(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbIndUpdateTrans(EquCfgEntry_s * equ, TranCb_s * tran, U32 account, U32 volume);
S16 lbIndWorkOnMsg(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbIndWorkOutMsg(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbIndCardInMsg(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbIndCardOutMsg(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbIndCardInfoMsg(EquCfgEntry_s * equ, TranCb_s * tran, U32 action);
S16 lbIndGetStationCodeMsg(EquCfgEntry_s * equ, TranCb_s * tran, U32 action);
S16 lbIndCommonAckMsg(EquCfgEntry_s * equ, U8 cmdCode, U8 stat, U32 seq, TranCb_s * tran, U32 action);
S16 lbQueryTmr(U32 machId);
S16 lbChkCrc(Data * data, MsgLen len);
S16 lbFillCrc(Data * data, MsgLen len);
U32 getMachNum(void);
ScCommCb_s * createScCommCb(EquCfgEntry_s * equ);
U8 getGunNum(U32 machId);
U8 getOilType(U32 machId, U8 sideId, U8 gunId);
U32 getPrice(U8 oilType);
U8 getSideNum(U32 machId);
S16 lbCmGetCmdNode(TranCb_s * tran, CmdMsg_s ** ret_cmdNode);
S16 lbCmDestroyCmdNode(CmdMsg_s * cmdNode);
TranCb_s * lbCmGetTran(RxCmdEntry_s * entry, EquCfgEntry_s * equ);
S16 lbCmDestroyTran(TranCb_s * tran);
S16 lbCmdDestroyCmdEntry(RxCmdEntry_s * rqst);
S16 lbCmBuildCmdA(EquCfgEntry_s * equ, TranCb_s * tran, U32 action, U8 cmdCode);
S16 lbCmBuildCmdB(EquCfgEntry_s * equ, TranCb_s * tran, U8 val, U32 action, U8 cmdCode);
S16 lbCmBuildCfmCmd(EquCfgEntry_s * equ, TranCb_s * tran, U32 rqstType, U32 action, U8 cmdCode);
S16 lbCmBuildInd(U8 cmdCode, U32 seq, TranCb_s * tran, Buffer * msg);
S16 lbBuildIndCfm(U8 rqstParam, U8 cmdCode, U8 type, TranCb_s * tran);
S16 lbCmFillMacVer(Data * buf, U32 len, U8 ver);
S16 lbCmGetMac(Data * buf, MsgLen len, U8 ver, U32 * ret_mac);
S16 lbCmGetEquCfg(U32 *gunNum, EquCfg_s ** gunCfgArray);
S16 lbProcEquCfg(U32 gunNum, EquCfg_s * equCfgArray, U8 ver);
S16 lbProcProvinceBlk(U32 itemNum, BlkCardLine_s * array, U8 type);
S16 lbProcCountryeBlk(Buffer * cardAsnBuffer, U32 itemNum, U8 blkListType);
S16 lbCmUpdateGreyList(U8 type);
S16 lbCmPrntBuf(Txt * desc, Data * buf, MsgLen len);
S16 lbGetFileBuf(Txt * path, Buffer *file);
ScCommCb_s * findScComm(U8 gunId);
EquCfgEntry_s * findEqu(U8 gunId);
U32 lbCmAsc2Int(U8 asc);
S16 findFirstCmdNodeByChannel(U8 chId, CmdMsg_s ** ret_cmd);
S16 findCmdNodByCode(U8 cmdCode, CmdMsg_s ** ret_cmd);
S16 findFirstCmdNode(CmdMsg_s ** ret_cmd);
S16 segScMsg(Data * buf, MsgLen len, Data ** ret_buf, MsgLen * ret_len);
S16 LbActvTsk(Pst * pst, Buffer * mbuf);
S16 lbProcRqstStatAck(EquCfgEntry_s * equ, TranCb_s * tran, RqstStatAck_s * ack);
S16 lbProcCmdRqstAck(ScCommCb_s * scCommCb, CommonAck_s * ack);
S16 lbParseRecvMsg(ScCommCb_s * scCommCb, Data * buf, MsgLen len);
S16 lbRecvProcess(ScCommCb_s * scCommCb);
S16 lbRecvReadTotleAck(EquCfgEntry_s * equ, TranCb_s * tran, ReadTotleAck_s * ack);
S16 lbRecvReadFillCardAsnAck(EquCfgEntry_s * equ, TranCb_s * tran, ReadCardAsnAck_s * ack);
S16 lbRecvReadWorkerCardAsnAck(EquCfgEntry_s * equ, TranCb_s * tran, ReadCardAsnAck_s * ack);
S16 lbRecvReadCardInfoAck(EquCfgEntry_s * equ, TranCb_s * tran, ReadCardInfoAck_s * ack);
S16 lbRecvAuthAck( EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack);
S16 lbRecvFinishFillAck( EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack);
S16 lbRecvCloseDuringAck( EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack);
S16 lbRecvGetCrrntPriceAck(EquCfgEntry_s * equ, TranCb_s * tran, ReadCrrntPriceAck_s * ack);
S16 lbRecvWriteBackupPriceAck( EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack);
S16 lbRecvReadOilTypeAck(EquCfgEntry_s * equ, TranCb_s * tran, ReadOilTypeAck_s * ack);
S16 lbRecvWriteOilTypeAck( EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack);
S16 lbRecvSpecCodeAck(EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack, CmdMsg_s * cmdNode);
S16 lbRecvBlkListAck(EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack, CmdMsg_s * cmdNode);
S16 lbRecvGetHistroyAck(EquCfgEntry_s * equ, TranCb_s * tran, GetHistoryAck_s * ack, CmdMsg_s * cmdNode);
S16 lbRecvCmdCfmAck( EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack, CmdMsg_s * cmdNode);
S16 lbXmitMsg(ScCommCb_s * scCommCb, Buffer * msg);
S16 lbIndMsg(CmdMsg_s * cmd);
S16 lbXmitProc(U8 gunId);
S16 lbCmGetCmdEntry(U8 rqstId, U8 type, RxCmdEntry_s ** entry);;
S16 lbProcCountryBlk(Buffer * cardAsnBuffer, U32 itemNum, U8 blkListType);
S16 rxLog(Txt *);
S16 lbCmGetKey(S8 *buf,S8 *key,S8 *Ret_Ver);
S16 lbCmGetGreyList(Buffer * greyBuffer, U8 type);
S16 lbPrcGreyList(Buffer * greyBuffer, U8 type);
S16 lbCmChkMacVer(S8 *buf, S8 *key,U32 len, U8 Ver);
S16 lbCmChkMac(S8 *buf, S8 *key,U32 len);
S16 lbCmUnsecret(S8 *buf, S8 *key,U32 len, U32 *Ret_len);
S16 lbBuildGetGreyCmd(EquCfgEntry_s * equ, TranCb_s * tran, U8 type);
S16 lbBuildWriteGreyCmd(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbRecvFillInfoIndAck(Buffer * mbuf);
S16 lbRecvCardBankCodeRqst(Buffer * mbuf);
S16 lbRecvReadBlkCardAsnAck(EquCfgEntry_s * equ, TranCb_s * tran, ReadCardAsnAck_s * ack);
S16 lbRecvSysCfgAck(EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack, CmdMsg_s * cmdNode);
S16 lbRecvWriteGreyAck(EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack, CmdMsg_s * cmdNode);
S16 lbRecvGetGreyAck(EquCfgEntry_s * equ, TranCb_s * tran, GetGreyAck_s * ack, CmdMsg_s * cmdNode);
S16 lbRecvGetRecAck(EquCfgEntry_s * equ, TranCb_s * tran, GetRecAck_s * ack, CmdMsg_s * cmdNode);
S16 lbIndRecMsg(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildReleaseGreyCmd(EquCfgEntry_s * equ, TranCb_s * tran, U8 * grey);
BOOL UpData(unsigned long data,unsigned long len,unsigned char* buf);
S16 lbCmFillMac(S8 *buf, S8 *key,U32 len, S8 Ver);
S16 lbRecvSetNetModeAck(EquCfgEntry_s * equ, TranCb_s * tran, CommonAck_s * ack, CmdMsg_s * cmdNode);
S16 lbBuildSetTimeCmd(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbBuildSetNetModeCmd(EquCfgEntry_s * equ, TranCb_s * tran);
S16 lbCmGetPriceByOilType(U8 oilType, U16 * ret_price, Time_s * time);
S16 LBLOG(Txt * s, Data * data, MsgLen len);
#ifdef __cplusplus
}
#endif
#endif /* head file is over */
/******************* modify histroy list *******************
001. create at: 2002-7-2 0:41:40 by Shangyaohui
****************** modify histroy list end ****************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -