freqmeter_async_init

Initialize frequency meter.

int32_t freqmeter_async_init(
    struct freqmeter_async_descriptor *const descr,
    void *const hw,
    uint8_t *const buffer,
    const uint16_t buffer_length
)

Parameters

descr

Type: struct freqmeter_async_descriptor Struct *const

The pointer to the frequency meter descriptor

hw

Type: void *const

The pointer to the hardware instance

buffer

Type: uint8_t *const

A buffer to keep the measured values

buffer_length

Type: const uint16_t

The length of the buffer above

Returns

Type: int32_t

Initialization status.