Sample code for GNSS constellation selection
//--------------------------------------------------------------------------------------------------/*** 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_INFO("Start Test Testle_gnss_StartTest");LE_ASSERT((le_gnss_GetAcquisitionRate(&rate)) == LE_OK);LE_INFO("Acquisition rate %d ms", rate);LE_ASSERT((le_gnss_SetAcquisitionRate(rate)) == LE_OK);LE_ASSERT(le_gnss_GetConstellation(&constellationMask) == LE_OK);LE_INFO("Constellation 0x%X", constellationMask);LE_ASSERT(le_gnss_SetConstellation(constellationMask) == LE_OK);LE_ASSERT((le_gnss_GetNmeaSentences(&nmeaMask)) == LE_OK);LE_INFO("Enabled NMEA sentences 0x%08X", nmeaMask);LE_ASSERT((le_gnss_SetNmeaSentences(nmeaMask)) == LE_OK);LE_INFO("Start GNSS");LE_ASSERT((le_gnss_Start()) == LE_OK);/* Wait for a position fix */LE_INFO("Wait 120 seconds for a 3D fix");sleep(120);// Get TTFFresult = le_gnss_GetTtff(&ttff);if(result == LE_OK){LE_INFO("TTFF start = %d msec", ttff);}else{LE_INFO("TTFF start not available");}LE_INFO("Stop GNSS");LE_ASSERT((le_gnss_Stop()) == LE_OK);}