Lines Matching refs:respTpdu
233 int SpiLayerComm_waitForResponse(Tpdu* respTpdu, int nBwt) { in SpiLayerComm_waitForResponse() argument
288 respTpdu->nad = pollingRxByte; in SpiLayerComm_waitForResponse()
289 respTpdu->pcb = buffer[0]; in SpiLayerComm_waitForResponse()
290 respTpdu->len = (uint8_t)buffer[1]; in SpiLayerComm_waitForResponse()
308 int SpiLayerComm_readTpdu(Tpdu* respTpdu) { in SpiLayerComm_readTpdu() argument
314 pendingBytes = respTpdu->len + TPDU_LRC_LENGTH; in SpiLayerComm_readTpdu()
317 pendingBytes = respTpdu->len + TPDU_CRC_LENGTH; in SpiLayerComm_readTpdu()
335 for (i = 0; i < respTpdu->len; i++) { in SpiLayerComm_readTpdu()
336 respTpdu->data[i] = rxBuffer[i]; in SpiLayerComm_readTpdu()
342 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, LRC); in SpiLayerComm_readTpdu()
345 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, CRC); in SpiLayerComm_readTpdu()