Jump to main content
9.2.2.2 Workflow
Start an asynchronous FREQM read job, to store measurement data into the global buffer and generate a callback when complete.
freqm_start_measure(&freqm_instance);
Wait until the asynchronous read job is complete.
while
(!freqm_read_done) {
}
status = freqm_get_result_value(&freqm_instance, &measure_result);
The board LED on to indicate measurement data read.
case
FREQM_STATUS_MEASURE_DONE:
LED_On(LED_0 _PIN);
while
(
true
) {
}
The board LED toggled to indicate measurement overflow occous.
case
FREQM_STATUS_CNT_OVERFLOW:
freqm_clear_overflow(&freqm_instance);
while
(
true
) {
LED_Toggle(LED_0 _PIN);
volatile
uint32_t delay = 50000 ;
while
(delay--) {
}
}
The online versions of the documents are provided as a courtesy. Verify all content and data in the device’s PDF documentation found on the device product page.