Lines Matching refs:baAtp
57 int Atp_setAtp(uint8_t *baAtp) { in Atp_setAtp() argument
62 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()
104 tmpAtp.pwt = (uint8_t)baAtp[PWT_OFFSET_IN_ATP]; in Atp_setAtp()
111 (uint16_t)(tmpAtp.msf << 8) + (uint8_t)baAtp[MSF_OFFSET_IN_ATP + i]; in Atp_setAtp()
112 STLOG_HAL_V("Loop ATP %i", baAtp[MSF_OFFSET_IN_ATP + i]); in Atp_setAtp()
116 tmpAtp.ifsc = (uint8_t)baAtp[IFSC_OFFSET_IN_ATP]; in Atp_setAtp()
121 baAtp[HISTORICAL_CHARACTER_OFFSET_IN_ATP + i]; in Atp_setAtp()