I launched a widgets demo project on STM32F429 Discovery board. Successfully added GINPUT TOGGLE for external buttons. But can't add support GADC analog input to control slider. ADC initialized by calling gadc_lld_init(). This is done. Dial attached successfully by gwinAttachDial(ghSlider1, 0, 0); . It returns TRUE. ginput_lld_dial_poll(DialCallbackFn fn) called periodically with GINPUT_DIAL_POLL_PERIOD. gadcLowSpeedStart(GINPUT_DIAL_DEVICE0, samplebuf+0, GADCCallback, (void *)fn); called by ginput_lld_dial_poll(DialCallbackFn fn) (taken from example). Raw data from ADC in samplebuf. Of course it doesn't work.
Questions:
1. GINPUT_DIAL_DEVICE0. Is this just number of instance and can be any custom number?
2. GADCCallback. Is this any custom user samples post processing function callback?
3. gadc_lld_nontimerjobI(&pdata->job); called by gadcLowSpeedStart(gU32 physdev, adcsample_t *buffer, GADCCallbackFunction fn, void *param) and it seems must capture data from the ADC. It calls only one time after start. Generally, i don't understand where is a point to input raw data from ADC. What should I do to control the slider from external analog input?