Mbed Host Tests
mbed_host_tests.host_tests_toolbox.host_functional Namespace Reference

Functions

def flash_dev (disk=None, image_path=None, copy_method='default', port=None, program_cycle_s=4)
 Flash device using pythonic interface. More...
 
def reset_dev (port=None, disk=None, reset_type='default', reset_timeout=1, serial_port=None, baudrate=DEFAULT_BAUD_RATE, timeout=1, verbose=False)
 Reset device using pythonic interface. More...
 
def handle_send_break_cmd (port, disk, reset_type=None, baudrate=None, timeout=1, verbose=False)
 Resets platforms and prints serial port output @detail Mix with switch -r RESET_TYPE and -p PORT for versatility. More...
 

Detailed Description

mbed SDK
Copyright (c) 2011-2016 ARM Limited

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Author: Przemyslaw Wirkus <Przemyslaw.Wirkus@arm.com>

Function Documentation

◆ flash_dev()

def mbed_host_tests.host_tests_toolbox.host_functional.flash_dev (   disk = None,
  image_path = None,
  copy_method = 'default',
  port = None,
  program_cycle_s = 4 
)

Flash device using pythonic interface.

Parameters
diskSwitch -d <disk>
image_pathSwitch -f <image_path>
copy_methodSwitch -c <copy_method> (default: shell)
portSwitch -p <port>

Definition at line 27 of file host_functional.py.

◆ handle_send_break_cmd()

def mbed_host_tests.host_tests_toolbox.host_functional.handle_send_break_cmd (   port,
  disk,
  reset_type = None,
  baudrate = None,
  timeout = 1,
  verbose = False 
)

Resets platforms and prints serial port output @detail Mix with switch -r RESET_TYPE and -p PORT for versatility.

Definition at line 84 of file host_functional.py.

◆ reset_dev()

def mbed_host_tests.host_tests_toolbox.host_functional.reset_dev (   port = None,
  disk = None,
  reset_type = 'default',
  reset_timeout = 1,
  serial_port = None,
  baudrate = DEFAULT_BAUD_RATE,
  timeout = 1,
  verbose = False 
)

Reset device using pythonic interface.

Parameters
portSwitch -p <port>
diskSwitch -d <disk>
reset_typeSwitch -r <reset_type>
reset_timeoutSwitch -R <reset_timeout>
serial_portSerial port handler, set to None if you want this function to open serial
baudrateSerial port baudrate
timeoutSerial port timeout
verboseVerbose mode

Definition at line 49 of file host_functional.py.