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.
Data direction | Parameter name | Description |
---|---|---|
[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.
Return value | Description |
---|---|
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 |