7.3.2.3 Function freqm_get_result_value()

Read the measurement data result.

enum freqm_status freqm_get_result_value( struct freqm_module *const module_inst, uint32_t * result)

Reads the measurement data result.

Table 7-9. Parameters
Data directionParameter nameDescription

[in]

module_inst

Pointer to the FREQM software instance struct

[out]

result

Pointer to store the result value in

Note: If overflow occurred, configure faster reference clock or reduce reference clock cycles.

Returns

Status of the FREQM read request.

Table 7-10. Return Values
Return valueDescription

FREQM_STATUS_MEASURE_DONE

Measurement result was retrieved successfully

FREQM_STATUS_MEASURE_BUSY

Measurement result was not ready

FREQM_STATUS_CNT_OVERFLOW

Measurement result was overflow