<s> """<STR_LIT>""" <EOL> from __future__ import absolute_import <EOL> from enum import Enum <EOL> class DAPAccessIntf ( object ) : <EOL> class PORT ( Enum ) : <EOL> """<STR_LIT>""" <EOL> DEFAULT = <NUM_LIT:0> <EOL> SWD = <NUM_LIT:1> <EOL> JTAG = <NUM_LIT:2> <EOL> class REG ( Enum ) : <EOL> """<STR_LIT>""" <EOL> DP_0x0 = <NUM_LIT:0> <EOL> DP_0x4 = <NUM_LIT:1> <EOL> DP_0x8 = <NUM_LIT:2> <EOL> DP_0xC = <NUM_LIT:3> <EOL> AP_0x0 = <NUM_LIT:4> <EOL> AP_0x4 = <NUM_LIT:5> <EOL> AP_0x8 = <NUM_LIT:6> <EOL> AP_0xC = <NUM_LIT:7> <EOL> class ID ( Enum ) : <EOL> """<STR_LIT>""" <EOL> VENDOR = <NUM_LIT:1> <EOL> PRODUCT = <NUM_LIT:2> <EOL> SER_NUM = <NUM_LIT:3> <EOL> FW_VER = <NUM_LIT:4> <EOL> DEVICE_VENDOR = <NUM_LIT:5> <EOL> DEVICE_NAME = <NUM_LIT:6> <EOL> class Error ( Exception ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class DeviceError ( Error ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class CommandError ( DeviceError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class TransferError ( CommandError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class TransferTimeoutError ( TransferError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class TransferFaultError ( TransferError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> class TransferProtocolError ( TransferError ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> @ staticmethod <EOL> def get_connected_devices ( ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> @ staticmethod <EOL> def get_device ( device_id ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def open ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def close ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def get_unique_id ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def identify ( self , item ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def connect ( self , port = None ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def disconnect ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def set_clock ( self , frequency ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def get_swj_mode ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def reset ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def assert_reset ( self , asserted ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def set_deferred_transfer ( self , enable ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def flush ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def vendor ( self , index ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def write_reg ( self , reg_id , value , dap_index = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def read_reg ( self , reg_id , dap_index = <NUM_LIT:0> , now = True ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def reg_write_repeat ( self , num_repeats , reg_id , data_array , dap_index = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) <EOL> def reg_read_repeat ( self , num_repeats , reg_id , dap_index = <NUM_LIT:0> , now = True ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError ( ) </s>
