Writing my first SAM project. For some time I have been trying to find the way to setup the ADC. But I had a hard time to find the right way to do it. Googling results in many hits that I think is outdated. I have a D20 explained board so I tried to create example projects but still it wasn't easy.
Finally I found the definition of the adc_config struct, down in the adc_feature.h. I was browsing around everythere si I can't even say how I ended up there.
So, to avoid similar problem next time, what is the normal/best way in the documentation/help files to find those structures and how to use them? I have understand that just as XMEGA such structures are the standard methos for storing settings for peripherals.