Searched refs:dstIdx (Results 1 – 3 of 3) sorted by relevance
39 uint16_t dstIdx = 0; in Pack7bitChar() local42 return dstIdx; in Pack7bitChar()47 dstIdx = 1; in Pack7bitChar()50 while (srcIdx < dataLen && dstIdx < packLen) { in Pack7bitChar()52 packData[dstIdx] = userData[srcIdx]; in Pack7bitChar()55 dstIdx++; in Pack7bitChar()61 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar()62 packData[dstIdx] = userData[srcIdx] >> (SMS_BYTE_BIT - shift); in Pack7bitChar()64 dstIdx++; in Pack7bitChar()67 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar()[all …]
106 uint8_t unpackDataLen, uint8_t &dstIdx) in Unpack7bitChar() argument116 for (; dstIdx < unpackDataLen; dstIdx++) { in Unpack7bitChar()123 unpackData[dstIdx] = oneByte & HEX_VALUE_7F; in Unpack7bitChar()125 dstIdx++; in Unpack7bitChar()126 if (dstIdx >= unpackDataLen) { in Unpack7bitChar()139 unpackData[dstIdx] = (oneByte >> shift); in Unpack7bitChar()140 if (unpackData[dstIdx] != 0) { in Unpack7bitChar()141 dstIdx++; in Unpack7bitChar()145 unpackData[dstIdx] = (oneByte >> shift) + (nextByte << (SMS_BYTE_BIT - shift)); in Unpack7bitChar()146 unpackData[dstIdx] &= HEX_VALUE_7F; in Unpack7bitChar()
32 uint8_t unpackDataLen, uint8_t &dstIdx);