[riot-notifications] [RIOT-OS/RIOT] core/bitarithm: introduce bitarithm_get/set_masked(), convert pca9685 (#12238)

Kaspar Schleiser notifications at github.com
Mon Sep 16 21:52:08 CEST 2019


> One neat helper function is `_set_reg_bit(uint8_t *byte, uint8_t mask, uint8_t bit)` that sets the masked bits in `byte` to the given value.

An example would be nice. I don't quite get it. Like, byte=0b0110, mask=0b0011, bit=0b1001 => result = 0b0001"?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/12238#issuecomment-531931296
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190916/f7685992/attachment.htm>


More information about the notifications mailing list