Searched refs:tpdu (Results 1 – 4 of 4) sorted by relevance
87 bool Tpdu_isChecksumOk(Tpdu *tpdu) { in Tpdu_isChecksumOk() argument94 Tpdu_toByteArray(tpdu, buffer); in Tpdu_isChecksumOk()95 if (tpdu->checksum == in Tpdu_isChecksumOk()96 computeCrc(buffer, (TPDU_PROLOGUE_LENGTH + tpdu->len))) { in Tpdu_isChecksumOk()120 Tpdu *tpdu) { in Tpdu_formTpdu() argument127 tpdu->nad = nad; in Tpdu_formTpdu()129 tpdu->pcb = pcb; in Tpdu_formTpdu()131 tpdu->len = len; in Tpdu_formTpdu()136 tpdu->data[i] = data[i]; in Tpdu_formTpdu()148 tpdu->checksum = 0; in Tpdu_formTpdu()[all …]
77 bool Tpdu_isChecksumOk(Tpdu *tpdu);91 Tpdu *tpdu);99 void Tpdu_getChecksumBytes(Tpdu *tpdu, uint8_t *checksumBytes);119 TpduType Tpdu_getType(Tpdu *tpdu);137 void Tpdu_toHexString(Tpdu *tpdu, uint8_t *hexStringBuffer);
137 int T1protocol_checkResponsePcbConsistency(Tpdu* tpdu) { in T1protocol_checkResponsePcbConsistency() argument139 TpduType type = Tpdu_getType(tpdu); in T1protocol_checkResponsePcbConsistency()145 if ((tpdu->pcb & 0b00011111)) { in T1protocol_checkResponsePcbConsistency()153 if ((tpdu->pcb & 0b01101100)) { in T1protocol_checkResponsePcbConsistency()161 if ((tpdu->pcb & 0b00010000)) { in T1protocol_checkResponsePcbConsistency()184 int T1protocol_checkResponseLenConsistency(Tpdu* tpdu) { in T1protocol_checkResponseLenConsistency() argument186 TpduType type = Tpdu_getType(tpdu); in T1protocol_checkResponseLenConsistency()192 if (tpdu->len > ATP.ifsc) { in T1protocol_checkResponseLenConsistency()199 if (tpdu->len > 0) { in T1protocol_checkResponseLenConsistency()208 if ((tpdu->pcb == (uint8_t)SBLOCK_WTX_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()[all …]
106 int T1protocol_checkResponseTpduChecksum(Tpdu *tpdu);115 int T1protocol_checkResponsePcbConsistency(Tpdu *tpdu);124 int T1protocol_checkResponseLenConsistency(Tpdu *tpdu);133 int T1protocol_checkResponseSeqNumberConsistency(Tpdu *tpdu);