Lines Matching refs:respTpdu
218 int SpiLayerComm_waitForResponse(Tpdu* respTpdu, int nBwt) { in SpiLayerComm_waitForResponse() argument
273 respTpdu->nad = pollingRxByte; in SpiLayerComm_waitForResponse()
274 respTpdu->pcb = buffer[0]; in SpiLayerComm_waitForResponse()
275 respTpdu->len = (uint8_t)buffer[1]; in SpiLayerComm_waitForResponse()
293 int SpiLayerComm_readTpdu(Tpdu* respTpdu) { in SpiLayerComm_readTpdu() argument
299 pendingBytes = respTpdu->len + TPDU_LRC_LENGTH; in SpiLayerComm_readTpdu()
302 pendingBytes = respTpdu->len + TPDU_CRC_LENGTH; in SpiLayerComm_readTpdu()
320 for (i = 0; i < respTpdu->len; i++) { in SpiLayerComm_readTpdu()
321 respTpdu->data[i] = rxBuffer[i]; in SpiLayerComm_readTpdu()
327 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, LRC); in SpiLayerComm_readTpdu()
330 respTpdu->checksum = Tpdu_getChecksumValue(rxBuffer, respTpdu->len, CRC); in SpiLayerComm_readTpdu()