Lines Matching refs:mConfigCmd
447 struct ConfigCmd mConfigCmd; in main() local
448 struct ConfigCmd *pConfigCmd = &mConfigCmd; in main()
449 size_t length = sizeof(mConfigCmd); in main()
486 mConfigCmd.cmd = CONFIG_CMD_ENABLE; in main()
488 mConfigCmd.cmd = CONFIG_CMD_DISABLE; in main()
493 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
494 mConfigCmd.rate = SENSOR_HZ((float)atoi(argv[4])); in main()
495 mConfigCmd.latency = atoi(argv[5]) * 1000ull; in main()
496 if (setType(&mConfigCmd, argv[2])) { in main()
501 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
502 mConfigCmd.rate = 0; in main()
503 mConfigCmd.latency = 0; in main()
504 mConfigCmd.cmd = CONFIG_CMD_CFG_DATA; in main()
505 if (setType(&mConfigCmd, argv[2])) { in main()
509 if (mConfigCmd.sensorType == SENS_TYPE_LEDS || in main()
510 mConfigCmd.sensorType == SENS_TYPE_LEDS_I2C) { in main()
523 memcpy(pConfigCmd, &mConfigCmd, sizeof(mConfigCmd)); in main()
534 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
535 mConfigCmd.rate = 0; in main()
536 mConfigCmd.latency = 0; in main()
537 mConfigCmd.cmd = CONFIG_CMD_CALIBRATE; in main()
538 if (setType(&mConfigCmd, argv[2])) { in main()
547 mConfigCmd.evtType = EVT_NO_SENSOR_CONFIG_EVENT; in main()
548 mConfigCmd.rate = 0; in main()
549 mConfigCmd.latency = 0; in main()
550 mConfigCmd.cmd = CONFIG_CMD_FLUSH; in main()
551 if (setType(&mConfigCmd, argv[2])) { in main()
614 if (pConfigCmd != &mConfigCmd) in main()