Comments (1)
bitfield! {
pub struct Movw(u32);
u32;
pub get_imm12, set_imm12: 11, 0;
pub get_Rd, set_Rd: 15, 12;
pub get_imm4, set_imm4: 19, 16;
pub get_opcode, set_opcode: 27, 20;
pub get_cond, set_cond: 31, 28;
}
I had "start/end" flipped.
from rust-bitfield.
Related Issues (20)
- Add design notes HOT 1
- Document attributes HOT 4
- bitfield should create constructor methods HOT 3
- Use the :vis fragment specifier HOT 3
- `into` should affect the setter
- Make getters work with immutable Data HOT 1
- About endianness HOT 2
- Please document the `index: usize` and `value: $from` arguments that getters and setters require HOT 4
- Unable to "Debug" for types that are backed by an array >32bytes HOT 5
- Requires AsMut and AsRef with buffers > 32 bytes HOT 2
- feature: API to set a range of bits using offset and length HOT 3
- Trying to use it for my library but cannot compile. HOT 2
- How to properly embedded bitfield structure inside other one?
- Is there any difference between master and tagged version? HOT 6
- Support `defmt` HOT 3
- Feature request: Fields constructed of multiple ranges of bits HOT 4
- Feature request: Right-padded fields
- Generate masks for the fields HOT 3
- `const fn` getters HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-bitfield.