I want to make a function like:
void SetServo(uint8_t S, uint16_t P);
Where I have 4 servos connected to port c, bits 0 through 3.
So, could I, as a C Luddite, do something like:
(((*uint16_t)TCC4.CCA) + 2*S) = P
In order to access CCA, CCB, CCC and CCD by numbers 0 through 3?
Of course, I really don't know how to get a pointer to TCCR.CCA. I could use a switch statement, but that would seem silly.