def parse_segment(data, pos):
    """Parses a single 7-segment digit from raw multimeter data

    :param data: Raw multimeter data, aligned to 15-byte boundary
    :type data: bytes
    :param pos: Number of segment to parse (numbered left to right)
    :type pos: int

    :return: 7-segment digit configuration
    :rtype: tuple
    """
    start_i = 3 + 2 * pos
    return (
        bool(data[start_i] & (1 << 3)),  # A
        bool(data[start_i + 1] & (1 << 3)),  # B
        bool(data[start_i + 1] & (1 << 1)),  # C
        bool(data[start_i + 1] & 1),  # D
        bool(data[start_i] & (1 << 1)),  # E
        bool(data[start_i] & (1 << 2)),  # F
        bool(data[start_i + 1] & (1 << 2)),  # G
    )