code: def create_from_response_pdu(resp_pdu):
          
          write_single_register = WriteSingleRegister()
  
          address, value = struct.unpack('>H' + conf.TYPE_CHAR, resp_pdu[1:5])
  
          write_single_register.address = address
          write_single_register.data = value
  
          return write_single_register
docs: Create instance from response PDU.
  
          :param resp_pdu: Byte array with request PDU.
          :return: Instance of :class:`WriteSingleRegister`.