infix
A JIT-Powered FFI Library for C
Loading...
Searching...
No Matches
Ch02_Bitfields.c File Reference

Cookbook Chapter 2: Working with Structs that Contain Bitfields. More...

#include <infix/infix.h>
#include <stdint.h>
#include <stdio.h>
Include dependency graph for Ch02_Bitfields.c:

Classes

struct  StatusRegister
 

Functions

void print_status (StatusRegister reg)
 
int main ()
 

Detailed Description

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.

Function Documentation

◆ main()

int main ( void  )

◆ print_status()

void print_status ( StatusRegister  reg)