Lines Matching refs:commands

401         commands = ['diag channel', f'diag channel {channel}']
403 if self.__support_commands(commands):
410 self.__output_results(commands, ret)
414 commands = ['diag power', f'diag power {power}']
416 if self.__support_commands(commands):
423 self.__output_results(commands, ret)
426 commands = ['diag radio receive', 'diag radio sleep', 'diag radio state']
428 if self.__support_commands(commands):
439 self.__output_results(commands, ret)
443 commands = [f'diag gpio get {gpio}', f'diag gpio set {gpio} 0', f'diag gpio set {gpio} 1']
445 if self.__support_commands(commands):
455 self.__output_results(commands, ret)
459commands = [f'diag gpio mode {gpio}', f'diag gpio mode {gpio} in', f'diag gpio mode {gpio} out']
461 if self.__support_commands(commands):
471 self.__output_results(commands, ret)
493 commands = [
497 for command in commands:
503 commands = [
508 if self.__support_commands(commands):
518 self.__output_results(commands, ret)
521 commands = ['diag powersettings', 'diag powersettings 20']
523 if self.__support_commands(commands):
529 self.__output_results(commands, ret)
536 commands = [f'diag send {packets} {length}', f'diag stats', f'diag stats clear']
538 if self.__support_commands(commands):
556 self.__output_results(commands, ret)
565 commands = [cmd_diag_repeat, 'diag repeat stop', 'diag stats', 'diag stats clear']
567 if self.__support_commands(commands):
598 commands = [cmd_diag_frame, f'diag send {packets}', f'diag stats', f'diag stats clear']
600 if self.__support_commands(commands):
627 def __support_commands(self, commands: List[str]) -> bool:
630 for command in commands:
637 def __output_results(self, commands: List[str], support: bool):
638 for command in commands: