Is your feature request related to a problem? Please describe.
At the moment the mask of the BoolRegister can be applied for the whole register internal value. Some times we need the ability to apply it on a fractional basis when the register contains multiple functions. Ex.for control register in LSM6DS3 has the most significant 4 digits for controlling the output data rate, the next 2 for scale selection while the last two for antialaising. It would be helpful to be able to control these separately with different masks that do not affect the other bits.
Describe the solution you'd like
A way to indicate the way the current mask is applied.
Describe alternatives you've considered
Create combination of values for each data (ex. 100Hz+4g, 200Hz+8g, etc.) but this creates a lot of clone registers.
Is your feature request related to a problem? Please describe. At the moment the mask of the BoolRegister can be applied for the whole register internal value. Some times we need the ability to apply it on a fractional basis when the register contains multiple functions. Ex.for control register in LSM6DS3 has the most significant 4 digits for controlling the output data rate, the next 2 for scale selection while the last two for antialaising. It would be helpful to be able to control these separately with different masks that do not affect the other bits.
Describe the solution you'd like A way to indicate the way the current mask is applied.
Describe alternatives you've considered Create combination of values for each data (ex. 100Hz+4g, 200Hz+8g, etc.) but this creates a lot of clone registers.
Additional context