sub_get_product_id

Top  Previous  Next
Got to SUB-20 page

Synopsis

int sub_adc_config( sub_handle hndl, int flags )

 

Configure SUB-20 ADC module.

Parameters

flags - set of below flags

ADC_ENABLE

Enable ADC module. If this flag is not set ADC module will be disabled

ADC_REF_VCC

Use VCC as ADC reference

ADC_REF_2_56

Use internal 2.56V reference

Return value

On success function returns 0. Otherwise error code.