Lines Matching refs:tpdu

137 int T1protocol_checkResponsePcbConsistency(Tpdu* tpdu) {  in T1protocol_checkResponsePcbConsistency()  argument
139 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() argument
186 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()
209 (tpdu->pcb == (uint8_t)SBLOCK_WTX_RESPONSE_MASK) || in T1protocol_checkResponseLenConsistency()
210 (tpdu->pcb == (uint8_t)SBLOCK_IFS_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()
211 (tpdu->pcb == (uint8_t)SBLOCK_IFS_RESPONSE_MASK)) { in T1protocol_checkResponseLenConsistency()
212 if (tpdu->len != 1) { in T1protocol_checkResponseLenConsistency()
215 } else if ((tpdu->pcb == (uint8_t)SBLOCK_ABORT_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()
216 (tpdu->pcb == (uint8_t)SBLOCK_ABORT_RESPONSE_MASK) || in T1protocol_checkResponseLenConsistency()
217 (tpdu->pcb == (uint8_t)SBLOCK_RESYNCH_REQUEST_MASK) || in T1protocol_checkResponseLenConsistency()
218 (tpdu->pcb == (uint8_t)SBLOCK_RESYNCH_RESPONSE_MASK)) { in T1protocol_checkResponseLenConsistency()
219 if (tpdu->len != 0) { in T1protocol_checkResponseLenConsistency()
240 int T1protocol_checkResponseSeqNumberConsistency(Tpdu* tpdu) { in T1protocol_checkResponseSeqNumberConsistency() argument
242 TpduType type = Tpdu_getType(tpdu); in T1protocol_checkResponseSeqNumberConsistency()
250 seqNumber = (tpdu->pcb & 0b01000000) >> 6; in T1protocol_checkResponseSeqNumberConsistency()