I think you can do this (but didn't try it myself): #define B8_0(x) (((volatile struct bits8 *) (x)) ->b0) #define B8_1(x) (((volatile struct bits8 *) (x)) ->b1) #define B8_2(x) (((volatile struct bits8 *) (x)) ->b2) #define B8_3(x) (((volatile struct bits8 *) (x)) ->b3) #define B8_4(x) (((volatile struct bits8 *) (x)) ->b4) #define B8_5(x) (((volatile struct bits8 *) (x)) ->b5) #define B8_6(x) (((volatile struct bits8 *) (x)) ->b6) #define B8_7(x) (((volatile struct bits8 *) (x)) ->b7)
↧