I would like to define a single bit of a register or a variable. For example: #define Pin5 (5th bit of portA) //assuming porta is a 16 bit data type.
How can I define a single bit of a variable so that I can toggle that bit easily and make my code easier on my eyes. Please note that I want the bit value to become the RValue of the variable.
for example Pin5 = 1; //will result in the 5th bit of partA to be 1