Skip to content

HayleyDeckers/bitstuff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠️⚠️⚠️ THIS IS A BIG UGLY HACK ⚠️⚠️⚠️

This is stil a WIP only made public to share with some people. I'm pretty happy with the use exposed api of the proc-macro so far but

  1. it needs some more features and test
  2. the proc macro is very ugly and likely fragile

Bitstuff

1️⃣0️⃣1️⃣1️⃣0️⃣1️⃣0️⃣👉📦

A little crate for defining bit-packed structs and enums. Its goals are to look as much like normal rust structs as possible and generate code which is easy to read, can have nice docs, and checks for / disallows invalid bitpatterns. Mainly intended for specifying registers for use in embedded or OSDev, but should be useable for any bitfield.

See pl011-uart-registers for a real-world use-case

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages