modular-bitfield icon indicating copy to clipboard operation
modular-bitfield copied to clipboard

Macro to generate bitfields for structs that allow for modular use of enums.

Results 43 modular-bitfield issues
Sort by recently updated
recently updated
newest added

I have a struct where one flag has to be 1 no matter what. With the current implementation I have to do something like this no matter what which doesn't...

Some other macros may produce empty structs. Thus, having a `#[bitfield]` above an empty struct should not be considered as error. So, let's look to the next code: ``` #[bitfield]...

Currently if you want to skip a bit field and are not interested in coming up with a name for it the best technique you can employ is: ```rust #[bitfield]...

enhancement
good first issue
question
design

Currently (at least on my platform, ARMv7), bytes are returned in LSB order but my driver requires them to be MSB. How tricky would it be to add a configuration...

help wanted
feature requrest

* Fix markdown for `Errors` and `Panics` sections. * Properly format field names.

Hello First of all; thank you for this very useful library! I created the additional trait [modular-bitfield-to-value](https://github.com/hacknus/modular-bitfield-to-value) `ToValue` which can be implemented for all structs annotated with `#[bitfield]`. It allows...

I'm writing a dynamic language interpreter that uses pointer tagging to identify records in memory. It uses staged tagging, so that the number of tag bits can vary depending on...

Those are kinda derived, but since they are generated linters warn about them.

I am working with a very large struct (1050 Bytes) and I am describing it bit by bit based on an ICD. I am adding sections of the struct at...