Searched refs:byteIdx (Results 1 – 1 of 1) sorted by relevance
327 uint8_t shift, byteIdx, bits; in util_get_bits() local331 byteIdx = 0; in util_get_bits()335 value |= ((data[byteIdx] >> bit_offs) & BIT_MASK(bits)) << shift; in util_get_bits()339 byteIdx++; in util_get_bits()355 uint8_t byteIdx, bits; in util_set_bits() local357 byteIdx = 0; in util_set_bits()361 data[byteIdx] = (data[byteIdx] & ~(BIT_MASK(bits) << bit_offs)) | in util_set_bits()366 byteIdx++; in util_set_bits()