def _command(register_offset, port_number, register_type):
    """Return the command register value corresponding to the register type for a given port number and register offset."""
    return (register_offset * register_type) + port_number