nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ nrf_modem_dect_clock_sync_enable()

int nrf_modem_dect_clock_sync_enable ( void )

#include <nrf_modem/include/nrf_modem_dect_clock_sync.h>

Enable external clock synchronization.

The external clock signal is expected to be a 1 PPS (pulse-per-second) signal. When synchronization is enabled, the modem's clock rate aligns with the external signal, ensuring that exactly NRF_MODEM_DECT_MODEM_TIME_TICK_RATE_KHZ clock cycles occur between consecutive external clock pulses.

Reference signal tracking precision can be up to 0.05 ppm (parts per million). The actual tracking precision depends on the quality of the external clock source and environmental conditions.

This operation is performed asynchronously. Completion of this operation is indicated by the NRF_MODEM_DECT_CLOCK_SYNC_EVT_ENABLE event.

Return values
0Request was sent to modem.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EFAULTNo event handler is set.
-NRF_ENOMEMNot enough shared memory for this request.