POINTER TO VAR

H?i all
Is it possible to assign a pointer to a register address into a VAR
So that VAR, containing the register value casted to INT or HEX can be used in the C code of the sketch ?

Thanks
Elico

Is it possible to assign a pointer to a register address into a VAR

No, because C and C++ don't have a type called VAR (or INT or HEX for that matter).

Yes, all registers are defined which makes it easy to use ( rather than using literal addresses ) and is good for portability between the AVR family.

Here is a pointer to the general purpose IO register zero.

volatile unsigned char *cIO = &GPIOR0;