Lines Matching refs:uint8_t
31 uint8_t SEQ_NUM_MASTER;
32 uint8_t SEQ_NUM_SLAVE;
33 uint8_t recoveryStatus;
53 uint8_t T1protocol_getValidPcb(TpduType type, RBlockType subtype, in T1protocol_getValidPcb()
54 uint8_t numSeqMaster, uint8_t numseqSlave, in T1protocol_getValidPcb()
56 uint8_t pcb = 0xFF; in T1protocol_getValidPcb()
63 pcb |= (uint8_t)IBLOCK_NS_BIT_MASK; in T1protocol_getValidPcb()
76 pcb |= ((uint8_t)numseqSlave) << 4; in T1protocol_getValidPcb()
80 pcb |= ((uint8_t)numseqSlave) << 4; in T1protocol_getValidPcb()
84 pcb |= ((uint8_t)numseqSlave) << 4; in T1protocol_getValidPcb()
109 uint8_t arrayTpdu[TPDU_PROLOGUE_LENGTH + respTpdu->len + TPDU_CRC_LENGTH]; in T1protocol_checkResponseTpduChecksum()
207 if ((tpdu->pcb == (uint8_t)SBLOCK_WTX_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()
208 (tpdu->pcb == (uint8_t)SBLOCK_WTX_RESPONSE_MASK) || in T1protocol_checkResponseLenConsistency()
209 (tpdu->pcb == (uint8_t)SBLOCK_IFS_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()
210 (tpdu->pcb == (uint8_t)SBLOCK_IFS_RESPONSE_MASK)) { in T1protocol_checkResponseLenConsistency()
214 } else if ((tpdu->pcb == (uint8_t)SBLOCK_ABORT_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()
215 (tpdu->pcb == (uint8_t)SBLOCK_ABORT_RESPONSE_MASK) || in T1protocol_checkResponseLenConsistency()
216 (tpdu->pcb == (uint8_t)SBLOCK_RESYNCH_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()
217 (tpdu->pcb == (uint8_t)SBLOCK_RESYNCH_RESPONSE_MASK)) { in T1protocol_checkResponseLenConsistency()
243 uint8_t seqNumber; in T1protocol_checkResponseSeqNumberConsistency()
297 if ((lastCmdTpduSent->pcb == (uint8_t)SBLOCK_WTX_REQUEST_MASK) || in T1protocol_checkSBlockResponseConsistency()
298 (lastCmdTpduSent->pcb == (uint8_t)SBLOCK_ABORT_REQUEST_MASK) || in T1protocol_checkSBlockResponseConsistency()
299 (lastCmdTpduSent->pcb == (uint8_t)SBLOCK_IFS_REQUEST_MASK) || in T1protocol_checkSBlockResponseConsistency()
300 (lastCmdTpduSent->pcb == (uint8_t)SBLOCK_RESYNCH_REQUEST_MASK) || in T1protocol_checkSBlockResponseConsistency()
301 (lastCmdTpduSent->pcb == (uint8_t)SBLOCK_SWRESET_REQUEST_MASK)) { in T1protocol_checkSBlockResponseConsistency()
302 uint8_t expectedPcbResponse; in T1protocol_checkSBlockResponseConsistency()
503 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_sendRBlock()
541 uint8_t i; in T1protocol_formSblockResponse()
552 uint8_t buffer[TPDU_PROLOGUE_LENGTH + responseTpdu->len + TPDU_CRC_LENGTH]; in T1protocol_formSblockResponse()
582 if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_WTX_REQUEST_MASK) { in T1protocol_processSBlock()
584 } else if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_IFS_REQUEST_MASK) { in T1protocol_processSBlock()
586 } else if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_IFS_RESPONSE_MASK) { in T1protocol_processSBlock()
587 ATP.ifsc = (uint8_t)lastRespTpduReceived->data[0]; in T1protocol_processSBlock()
590 (uint8_t)SBLOCK_RESYNCH_REQUEST_MASK) { in T1protocol_processSBlock()
594 (uint8_t)SBLOCK_RESYNCH_RESPONSE_MASK) { in T1protocol_processSBlock()
611 } else if (lastRespTpduReceived->pcb == (uint8_t)SBLOCK_ABORT_REQUEST_MASK) { in T1protocol_processSBlock()
616 (uint8_t)SBLOCK_SWRESET_RESPONSE_MASK) { in T1protocol_processSBlock()
737 uint8_t T1protocol_setRespApduData(Tpdu* respTpdu, uint8_t** respApduBuffer) { in T1protocol_setRespApduData()
738 uint8_t i; in T1protocol_setRespApduData()
763 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doWTXResponse()
843 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doResyncRequest()
881 TempTpdu->data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doSoftReset()
1031 int T1protocol_formCommandTpduToSend(uint8_t* cmdApduPart, uint8_t cmdLength, in T1protocol_formCommandTpduToSend()
1071 originalCmdTpdu.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doRequestIFS()
1072 lastCmdTpduSent.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doRequestIFS()
1073 lastRespTpduReceived.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_doRequestIFS()
1138 int T1protocol_transcieveApduPart(uint8_t* cmdApduPart, uint8_t cmdLength, in T1protocol_transcieveApduPart()
1141 originalCmdTpdu.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_transcieveApduPart()
1142 lastCmdTpduSent.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_transcieveApduPart()
1143 lastRespTpduReceived.data = (uint8_t*)malloc(ATP.ifsc * sizeof(uint8_t)); in T1protocol_transcieveApduPart()