Sets or gets parts of a bitfield
bitfield
function returns a BitFieldCommands
instance that can be used
to execute multiple bitfield operations in a single command.
The encoding can be a signed or unsigned integer, by prefixing the type with
i
or u
. For example, i4
is a signed 4-bit integer, and u8
is an
unsigned 8-bit integer.
get(type: str, offset: int)
set(type: str, offset: int, value: int)
incr(type: str, offset: int, increment: int)