OK. I figured out how to write to a register !!!
I will demo and example of how to write to the ADST bit of ADCSR register to start an adc conversion
All the definitions are in "R7FS7G2x.h"
All groups are preceded by R_
Find the group you want - I found R_S12ADC0 = S12ADC unit 0 (not always obvious but some searching at the end of the file will help find the system definitions)
Next there are two ways to access the registers in the group:
- Use the -> to show registers in this group
- Register wide (16 bits) to write to an entire register use the basic name - example R_S12ADC0->ADCSR = 0xFF72; to write to the entire register
- Bitwise write use basic name with _b - example R_S12ADC0->ADCSR_b->ADST = 1; (Note: the -> will show available bits)
Hope this helps others as well
Steve D