pub unsafe extern "C" fn nrf_modem_gnss_system_mask_set(
    system_mask: u8
) -> i32
Expand description

Sets the supported GNSS systems. Systems which have the corresponding bit set are enabled.

Default value: All systems supported by the modem firmware are enabled

@note GPS can’t be disabled and remains enabled even if the corresponding bit is not set.

  • system_mask - System bitmask, see @ref nrf_modem_gnss_system_bitmask.

Returns 0 on success. Returns -NRF_EPERM The Modem library is not initialized. Returns -NRF_EACCES GNSS is not enabled in system or functional mode. Returns -NRF_EINVAL The GNSS stack returned an error or the operation cannot be executed while GNSS is running. Returns -NRF_ENOMEM There is not enough shared memory for this request. Returns -NRF_ESHUTDOWN The modem was shut down.