2.8.2.2.1 Code

Copy-paste the following code to your user application:
system_interrupt_enable_global();

adc_read_buffer_job(&adc_instance, adc_result_buffer, ADC_SAMPLES);

while (adc_read_done == false) {
    /* Wait for asynchronous ADC read to complete */
}

while (1) {
    /* Infinite loop */
}