camacho
New Member
Hi, lets say i want to access a variable bit by bit, for example, i set individual bits of a variable, and then do bitwise operations with whole variable, lets say shift the whole variable, or assign value of another variable to it etc . I read about accessing it bit-by-bit with structures, but it says nothing about manipulating a whole variable. In AVR basic i simply wrote "variable.x" to access an x bit of a variable. How can i do that in C (XC8) ?Thanks
Last edited: