@staticmethod<EOL><INDENT>def create_from_response_pdu(resp_pdu, req_pdu):<DEDENT>
read_input_registers = ReadInputRegisters()<EOL>read_input_registers.quantity = struct.unpack('<STR_LIT>', req_pdu[-<NUM_LIT:2>:])[<NUM_LIT:0>]<EOL>fmt = '<STR_LIT:>>' + (conf.TYPE_CHAR * read_input_registers.quantity)<EOL>read_input_registers.data = list(struct.unpack(fmt, resp_pdu[<NUM_LIT:2>:]))<EOL>return read_input_registers<EOL>
Create instance from response PDU.

        Response PDU is required together with the number of registers read.

        :param resp_pdu: Byte array with request PDU.
        :param quantity: Number of coils read.
        :return: Instance of :class:`ReadCoils`.