Lines Matching refs:aConfig
184 static void ParseArg(int aArgCount, char *aArgVector[], PosixConfig *aConfig) in ParseArg() argument
186 memset(aConfig, 0, sizeof(*aConfig)); in ParseArg()
188 aConfig->mPlatformConfig.mPersistentInterface = false; in ParseArg()
189 aConfig->mPlatformConfig.mSpeedUpFactor = 1; in ParseArg()
190 aConfig->mLogLevel = OT_LOG_LEVEL_CRIT; in ParseArg()
191 … aConfig->mPlatformConfig.mInterfaceName = OPENTHREAD_POSIX_CONFIG_THREAD_NETIF_DEFAULT_NAME; in ParseArg()
193 aConfig->mPlatformConfig.mRealTimeSignal = SIGRTMIN; in ParseArg()
211 aConfig->mLogLevel = (otLogLevel)atoi(optarg); in ParseArg()
217 aConfig->mPlatformConfig.mInterfaceName = optarg; in ParseArg()
220 aConfig->mPlatformConfig.mPersistentInterface = true; in ParseArg()
223 aConfig->mPlatformConfig.mBackboneInterfaceName = optarg; in ParseArg()
226 aConfig->mPlatformConfig.mDryRun = true; in ParseArg()
232 aConfig->mPlatformConfig.mSpeedUpFactor = (uint32_t)strtol(optarg, &endptr, 0); in ParseArg()
234 if (*endptr != '\0' || aConfig->mPlatformConfig.mSpeedUpFactor == 0) in ParseArg()
242 aConfig->mIsVerbose = true; in ParseArg()
245 aConfig->mPrintRadioVersion = true; in ParseArg()
251 aConfig->mPlatformConfig.mRealTimeSignal = SIGRTMIN + atoi(&optarg[1]); in ParseArg()
255 aConfig->mPlatformConfig.mRealTimeSignal = atoi(optarg); in ParseArg()
270 VerifyOrDie(aConfig->mPlatformConfig.mCoprocessorUrls.mNum < in ParseArg()
271 OT_ARRAY_LENGTH(aConfig->mPlatformConfig.mCoprocessorUrls.mUrls), in ParseArg()
273 …aConfig->mPlatformConfig.mCoprocessorUrls.mUrls[aConfig->mPlatformConfig.mCoprocessorUrls.mNum++] = in ParseArg()
277 if (aConfig->mPlatformConfig.mCoprocessorUrls.mNum == 0) in ParseArg()
283 static otInstance *InitInstance(PosixConfig *aConfig) in InitInstance() argument
289 IgnoreError(otLoggingSetLevel(aConfig->mLogLevel)); in InitInstance()
291 instance = otSysInit(&aConfig->mPlatformConfig); in InitInstance()
295 if (aConfig->mPlatformConfig.mCoprocessorType != OT_COPROCESSOR_RCP) in InitInstance()
301 if (aConfig->mPrintRadioVersion) in InitInstance()
310 if (aConfig->mPlatformConfig.mDryRun) in InitInstance()