Home
last modified time | relevance | path

Searched refs:bit_offs (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.7.0/subsys/bluetooth/controller/util/
Dutil.c324 uint32_t util_get_bits(uint8_t *data, uint8_t bit_offs, uint8_t num_bits) in util_get_bits() argument
334 bits = MIN(num_bits, 8 - bit_offs); in util_get_bits()
335 value |= ((data[byteIdx] >> bit_offs) & BIT_MASK(bits)) << shift; in util_get_bits()
338 bit_offs = 0; in util_get_bits()
352 void util_set_bits(uint8_t *data, uint8_t bit_offs, uint8_t num_bits, in util_set_bits() argument
360 bits = MIN(num_bits, 8 - bit_offs); in util_set_bits()
361 data[byteIdx] = (data[byteIdx] & ~(BIT_MASK(bits) << bit_offs)) | in util_set_bits()
362 ((value & BIT_MASK(bits)) << bit_offs); in util_set_bits()
365 bit_offs = 0; in util_set_bits()
Dutil.h20 uint32_t util_get_bits(uint8_t *data, uint8_t bit_offs, uint8_t num_bits);
21 void util_set_bits(uint8_t *data, uint8_t bit_offs, uint8_t num_bits,