Sample code for GNSS acquisition rate configuration
//--------------------------------------------------------------------------------------------------/*** Test: GNSS Position request.**///--------------------------------------------------------------------------------------------------static void TestLeGnssStart(void){uint32_t rate = 0;le_gnss_ConstellationBitMask_t constellationMask;le_gnss_NmeaBitMask_t nmeaMask;uint32_t ttff = 0;le_result_t result = LE_FAULT;LE_TEST_INFO("Start Test Testle_gnss_StartTest");LE_TEST_BEGIN_SKIP(!LINUX_OS, 2);LE_TEST_INFO("Acquisition rate %d ms", rate);LE_TEST_INFO("Constellation 0x%X", constellationMask);LE_TEST_INFO("Enabled NMEA sentences 0x%08X", nmeaMask);LE_TEST_INFO("Start GNSS");/* Wait for a position fix */LE_TEST_INFO("Wait 120 seconds for a 3D fix");le_thread_Sleep(120);// Get TTFFresult = le_gnss_GetTtff(&ttff);if(result == LE_OK){LE_TEST_INFO("TTFF start = %d msec", ttff);}else{LE_TEST_INFO("TTFF start not available");}LE_TEST_INFO("Stop GNSS");// Test le_gnss_StartMode()// HOT startLE_TEST_INFO("Ask for a Hot start in 3 seconds...");le_thread_Sleep(3);// Wait 5 secle_thread_Sleep(5);// Stop GNSS engine/* WARM start */LE_TEST_INFO("Ask for a Warm start in 3 seconds...");le_thread_Sleep(3);"le_gnss_StartMode(Warm start)");// Wait 5 secle_thread_Sleep(5);// Stop GNSS engine/* COLD Restart */LE_TEST_INFO("Ask for a Cold start in 3 seconds...");le_thread_Sleep(3);"le_gnss_StartMode(Cold start)");// Wait 5 secle_thread_Sleep(5);// Stop GNSS engine// FACTORY startLE_TEST_INFO("Ask for a Factory start in 3 seconds...");le_thread_Sleep(3);"le_gnss_StartMode(Factory start)");// Wait 5 secle_thread_Sleep(5);// Stop GNSS engineLE_TEST_BEGIN_SKIP(LINUX_OS, 6);LE_TEST_INFO("GNSS running, confirm EXT_GPS_LNA_EN signal is high");LE_TEST_INFO("Wait 30 seconds");le_thread_Sleep(30);"Try to disable LNA when GNSS active");"Try to enable LNA when GNSS active");EpochTime=0;TimeAccuracy=0;}