parameters: (self, values)
docstring: Performs data phase of transaction:
          receive ACK
          send data
          :param values: bytearray of value(s) to send
docstring_summary: Performs data phase of transaction:
          receive ACK
          send data
          :param values: bytearray of value(s) to send
docstring_tokens: Performs data phase of transaction : receive ACK send data : param values : bytearray of value ( s ) to send
function: def _st_data_phase(self, values):
          """
          Performs data phase of transaction:
          receive ACK
          send data
          :param values: bytearray of value(s) to send
          """
          response = self.updi_phy.receive(1)
          if len(response) != 1 or response[0] != constants.UPDI_PHY_ACK:
              if len(response) >= 0:
                  self.logger.error("expecting ACK after ST, but got: %02x", response[0])
              else:
                  self.logger.error("expecting ACK after ST, got nothing.")
              raise PymcuprogError("Error with st")
  
          self.updi_phy.send(values)
          response = self.updi_phy.receive(1)
          if len(response) != 1 or response[0] != constants.UPDI_PHY_ACK:
              if len(response) >= 0:
                  self.logger.error("expecting ACK after ST value, but got: %02x", response[0])
              else:
                  self.logger.error("expecting ACK after ST value, got nothing.")
              raise PymcuprogError("Error with st")
function_tokens: def _st_data_phase ( self , values ) : response = self . updi_phy . receive ( 1 ) if len ( response ) != 1 or response [ 0 ] != constants . UPDI_PHY_ACK : if len ( response ) >= 0 : self . logger . error ( "expecting ACK after ST, but got: %02x" , response [ 0 ] ) else : self . logger . error ( "expecting ACK after ST, got nothing." ) raise PymcuprogError ( "Error with st" ) self . updi_phy . send ( values ) response = self . updi_phy . receive ( 1 ) if len ( response ) != 1 or response [ 0 ] != constants . UPDI_PHY_ACK : if len ( response ) >= 0 : self . logger . error ( "expecting ACK after ST value, but got: %02x" , response [ 0 ] ) else : self . logger . error ( "expecting ACK after ST value, got nothing." ) raise PymcuprogError ( "Error with st" )