Searched refs:baAtp (Results 1 – 2 of 2) sorted by relevance
57 int Atp_setAtp(uint8_t *baAtp) { in Atp_setAtp() argument62 tmpAtp.len = (uint8_t)baAtp[LEN_OFFSET_IN_ATP]; in Atp_setAtp()67 memcpy(gATP, baAtp, tmpAtp.len); in Atp_setAtp()68 tmpAtp.checksum = Atp_getChecksumValue(baAtp, CHECKSUM_OFFSET_IN_ATP); in Atp_setAtp()71 if (computeCrc(baAtp, LEN_LENGTH_IN_ATP + tmpAtp.len - CRC_LENGTH_IN_ATP) != in Atp_setAtp()78 if (baAtp[CHECKSUM_TYPE_OFFSET_IN_ATP] == 0) { in Atp_setAtp()80 } else if (baAtp[CHECKSUM_TYPE_OFFSET_IN_ATP] == 1) { in Atp_setAtp()90 tmpAtp.vendorID[i] = baAtp[VENDOR_ID_OFFSET_IN_ATP + i]; in Atp_setAtp()97 (uint16_t)(tmpAtp.bwt << 8) + (uint8_t)baAtp[BWT_OFFSET_IN_ATP + i]; in Atp_setAtp()101 tmpAtp.cwt = (uint8_t)baAtp[CWT_OFFSET_IN_ATP]; in Atp_setAtp()[all …]
88 int Atp_setAtp(uint8_t *baAtp);