Lines Matching refs:cmd

574     char    cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE] = {'\0'};  in otPlatDiagProcess()  local
575 char *cur = cmd; in otPlatDiagProcess()
576 char *end = cmd + sizeof(cmd); in otPlatDiagProcess()
598 error = GetRadioSpinel().PlatDiagProcess(cmd); in otPlatDiagProcess()
617 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagTxPowerSet() local
619 snprintf(cmd, sizeof(cmd), "power %d", aTxPower); in otPlatDiagTxPowerSet()
620 SuccessOrExit(GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagTxPowerSet()
628 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagChannelSet() local
630 snprintf(cmd, sizeof(cmd), "channel %d", aChannel); in otPlatDiagChannelSet()
631 SuccessOrExit(GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagChannelSet()
640 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagGpioSet() local
642 snprintf(cmd, sizeof(cmd), "gpio set %d %d", aGpio, aValue); in otPlatDiagGpioSet()
643 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagGpioSet()
652 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagGpioGet() local
658 snprintf(cmd, sizeof(cmd), "gpio get %d", aGpio); in otPlatDiagGpioGet()
659 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagGpioGet()
672 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagGpioSetMode() local
674 … snprintf(cmd, sizeof(cmd), "gpio mode %d %s", aGpio, aMode == OT_GPIO_MODE_INPUT ? "in" : "out"); in otPlatDiagGpioSetMode()
675 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagGpioSetMode()
684 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagGpioGetMode() local
690 snprintf(cmd, sizeof(cmd), "gpio mode %d", aGpio); in otPlatDiagGpioGetMode()
691 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagGpioGetMode()
725 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagRadioGetPowerSettings() local
737 snprintf(cmd, sizeof(cmd), "powersettings %d", aChannel); in otPlatDiagRadioGetPowerSettings()
738 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagRadioGetPowerSettings()
760 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagRadioSetRawPowerSetting() local
765 nbytes = snprintf(cmd, sizeof(cmd), "rawpowersetting "); in otPlatDiagRadioSetRawPowerSetting()
769 …nbytes += snprintf(cmd + nbytes, sizeof(cmd) - static_cast<size_t>(nbytes), "%02x", aRawPowerSetti… in otPlatDiagRadioSetRawPowerSetting()
770 VerifyOrExit(nbytes < static_cast<int>(sizeof(cmd)), error = OT_ERROR_INVALID_ARGS); in otPlatDiagRadioSetRawPowerSetting()
773 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagRadioSetRawPowerSetting()
785 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagRadioGetRawPowerSetting() local
793 snprintf(cmd, sizeof(cmd), "rawpowersetting"); in otPlatDiagRadioGetRawPowerSetting()
794 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagRadioGetRawPowerSetting()
809 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagRadioRawPowerSettingEnable() local
811 snprintf(cmd, sizeof(cmd), "rawpowersetting %s", aEnable ? "enable" : "disable"); in otPlatDiagRadioRawPowerSettingEnable()
812 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagRadioRawPowerSettingEnable()
823 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagRadioTransmitCarrier() local
825 snprintf(cmd, sizeof(cmd), "cw %s", aEnable ? "start" : "stop"); in otPlatDiagRadioTransmitCarrier()
826 SuccessOrExit(error = GetRadioSpinel().PlatDiagProcess(cmd)); in otPlatDiagRadioTransmitCarrier()
836 char cmd[OPENTHREAD_CONFIG_DIAG_CMD_LINE_BUFFER_SIZE]; in otPlatDiagRadioTransmitStream() local
838 snprintf(cmd, sizeof(cmd), "stream %s", aEnable ? "start" : "stop"); in otPlatDiagRadioTransmitStream()
839 return GetRadioSpinel().PlatDiagProcess(cmd); in otPlatDiagRadioTransmitStream()