Status: Assigned Owner: sebastien.lelong Labels: Type-Enhancement Priority-Medium
New issue 115 by sebastien.lelong: Dynamic ADC channel selection (and other parameters)
http://code.google.com/p/jallib/issues/detail?id=115 When ADC pins are dependent, you need to define ADC_NCHANNEL, and ADC is setup statically. You can't modify the number of channel at runtime. For independent ADC pins, channels can be modifed during runtime, thanks to "set_analog_pin" procedures. Amongst the number of ADC channels, several parameters are also constants: ADC_TEMP, ADC_RSOURCE, ADC_RESOLUTION. It would be nice if ADC libs could provide a way to dynamically, ie. at runtime, change these parameters. But... this needs to be controlled by a trigger: dynamic ADC requires far more memory than static ADC, user must have the choice. This is not an easy task, it's not just about defining var instead of const. Some code needs refactoring, in order adc_init() to be called several times during runtime. ADC code is quite tricky too, so it must be done carefully (but lots of unittests, so safety net...). -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
