nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_modem_gnss_qzss_prn_mask_set()

int32_t nrf_modem_gnss_qzss_prn_mask_set ( uint16_t  prn_mask)

#include <nrf_modem/include/nrf_modem_gnss.h>

Sets which QZSS PRNs are enabled.

QZSS satellite acquisition and tracking can be configured per satellite using QZSS PRN mask. Bits 0...9 correspond to QZSS PRNs 193...202, respectively. When a bit is set, usage of the corresponding QZSS satellite is enabled. Bits 10...15 are reserved and their value is ignored.

Default value: All QZSS PRNs (193...202) are enabled.

Parameters
[in]prn_maskQZSS PRN mask.
Return values
0on success.
-NRF_EPERMThe Modem library is not initialized.
-NRF_EACCESGNSS is not enabled in system or functional mode.
-NRF_EINVALThe GNSS stack returned an error or the operation cannot be executed while GNSS is running.
-NRF_ENOMEMThere is not enough shared memory for this request.
-NRF_ESHUTDOWNThe modem was shut down.