void Slave::Send(APDU& arAPDU, const IINField& arIIN) { mRspIIN.BitwiseOR(mIIN); mRspIIN.BitwiseOR(arIIN); arAPDU.SetIIN(mRspIIN); mpAppLayer->SendResponse(arAPDU); }
void Slave::SendUnsolicited(APDU& arAPDU) { mRspIIN.BitwiseOR(mIIN); arAPDU.SetIIN(mRspIIN); mpAppLayer->SendUnsolicited(arAPDU); mUnsolExpectCON = (arAPDU.GetControl()).CON; }
bool AppLayerTest::CheckSentAPDU(FunctionCodes aCode, bool aFIR, bool aFIN, bool aCON, bool aUNS, int aSEQ) { APDU f; f.SetFunction(aCode); f.SetControl(aFIR, aFIN, aCON, aUNS, aSEQ); if(aCode == FC_UNSOLICITED_RESPONSE || aCode == FC_RESPONSE) { IINField iin; f.SetIIN(iin); } bool ret = lower.BufferEquals(f.GetBuffer(), f.Size()); if(ret) lower.ClearBuffer(); return ret; }