17 #ifndef PPG_BITFIELD_H
18 #define PPG_BITFIELD_H
20 #include "ppg_settings.h"
25 typedef uint8_t PPG_Bitfield_Storage_Type;
62 PPG_Count ppg_bitfield_get_num_cells(
PPG_Bitfield *bitfield);
63 PPG_Count ppg_bitfield_get_num_cells_from_bits(uint8_t n_bits);
A bitfield data type that can efficiently store boolean variables.
Definition: ppg_bitfield.h:29
uint8_t n_bits
The number of bits that are considered as mutable.
Definition: ppg_bitfield.h:35
PPG_Bitfield_Storage_Type * bitarray
The actual storage.
Definition: ppg_bitfield.h:33