|
infix
A JIT-Powered FFI Library for C
|
Cookbook Chapter 2: Working with Structs that Contain Bitfields. More...
Classes | |
| struct | StatusRegister |
Functions | |
| void | print_status (StatusRegister reg) |
| int | main () |
Cookbook Chapter 2: Working with Structs that Contain Bitfields.
This example demonstrates how to interface with C structs that use bitfields (e.g., uint8_t flags : 3) to pack data tightly.
| int main | ( | void | ) |
| void print_status | ( | StatusRegister | reg | ) |