#NEWLINE# def resetTarget( self ) : #NEWLINE# #INDENT# cmd = [ ] #NEWLINE# cmd . append ( COMMAND_ID [ 'DAP_RESET_TARGET' ] ) #NEWLINE# self . interface . write ( cmd ) #NEWLINE# resp = self . interface . read ( ) #NEWLINE# if ( resp [ 0 ] != COMMAND_ID [ 'DAP_RESET_TARGET' ] ) : #NEWLINE# #INDENT# raise DAPAccessIntf . DeviceError ( ) #NEWLINE# #UNINDENT# if ( resp [ 1 ] != DAP_OK ) : #NEWLINE# #INDENT# raise DAPAccessIntf . CommandError ( ) #NEWLINE# #UNINDENT# return resp [ 1 ]