freqmeter_sync_read

Read values from the frequency meter.

int32_t freqmeter_sync_read(
    struct freqmeter_sync_descriptor *const descr,
    uint32_t *const data,
    const uint16_t length
)

Parameters

descr

Type: struct freqmeter_sync_descriptor Struct *const

The pointer to the frequency meter descriptor

data

Type: uint32_t *const

The point to the data buffer to write data to

length

Type: const uint16_t

The amount of measurements to read

Returns

Type: int32_t

Amount of bytes to read