struct te_enum_bitmask_conv
Overview
A mapping between two bitmasks corresponding to each other via named bits. More…
#include <te_enum.h> struct te_enum_bitmask_conv { // fields uint64_t bits_from; uint64_t bits_to; };
Detailed Documentation
A mapping between two bitmasks corresponding to each other via named bits.
This structure permits the mapping of one or more bits from one side to one or more bits on the other side, with the constraint that the bits on each side do not overlap. This constraint results in the prohibition of mapping two or more set bits to the same corresponding bits on the other side.
An array of mappings should end with TE_ENUM_BITMASK_CONV_END and should not contain UINT64_MAX as a value of one of the fields.
Fields
uint64_t bits_from
Left-hand side bits mask.
uint64_t bits_to
Right-hand side bits mask.