Does anyone know of an equivalent macro to offset() that would work
for bit fields?
eg,
struct abc
{
enable: 1;
disable: 1;
speed: 6;
};
enable_bit_posi tion = offset_bit(stru ct abc, enable);
Thanks in advance for any hints.
Cheers,
for bit fields?
eg,
struct abc
{
enable: 1;
disable: 1;
speed: 6;
};
enable_bit_posi tion = offset_bit(stru ct abc, enable);
Thanks in advance for any hints.
Cheers,
Comment