Is there a way (macro ?) to get the index of a bitfield variable in a byte ?
But if you're asking about the bit type of C51 that maps to the BIT datatype of the 8051 processor, then yes, there is a relationship of the BIT address to the position of that bit in a BDATA byte. That is described in the manual of the 8051 and also in the C51 manual.