Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bitfield.c File Reference
#include <zephyr/kernel.h>
#include <zephyr/ztest.h>
#include <zephyr/arch/cpu.h>
#include <zephyr/tc_util.h>

Macros

#define BIT_INDEX(bit)   (bit >> 3)
 
#define BIT_VAL(bit)   (1 << (bit & 0x7))
 
#define BITFIELD_SIZE   512
 

Functions

 ZTEST (bitfield, test_bitfield)
 Test bitfield operations.
 
void * common_setup (void)
 
 ZTEST_SUITE (bitfield, NULL, common_setup, NULL, NULL, NULL)
 

Macro Definition Documentation

◆ BIT_INDEX

#define BIT_INDEX (   bit)    (bit >> 3)

◆ BIT_VAL

#define BIT_VAL (   bit)    (1 << (bit & 0x7))

◆ BITFIELD_SIZE

#define BITFIELD_SIZE   512