#NEWLINE# def reg_write_repeat( self , num_repeats , reg_id , data_array , dap_index = 0 ) : #NEWLINE# #INDENT# assert isinstance ( num_repeats , six . integer_types ) #NEWLINE# assert ( num_repeats == len ( data_array ) ) #NEWLINE# assert ( reg_id in self . REG ) #NEWLINE# assert isinstance ( dap_index , six . integer_types ) #NEWLINE# request = WRITE #NEWLINE# if ( reg_id . value < 4 ) : #NEWLINE# #INDENT# request |= DP_ACC #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# request |= AP_ACC #NEWLINE# #UNINDENT# request |= ( ( reg_id . value % 4 ) * 4 ) #NEWLINE# self . _write ( dap_index , num_repeats , request , data_array )