"""Python driver for direct USB control of LibreVNA (protocol v14)."""

import logging

from .device import LibreVNADevice
from .enums import (
    HardwareFamily,
    PacketType,
    SParameter,
    SweepKind,
    SweepScale,
    SyncMode,
)
from .logging_utils import DEFAULT_LOG_LEVEL, configure_logging
from .exceptions import (
    CRCError,
    DeviceDisconnectedError,
    IncompleteSweepError,
    LibreVNAError,
    NackError,
    ParseError,
    ProtocolVersionMismatch,
    TimeoutError,
    UnsupportedHardwareError,
)
from .models import (
    DeviceConfigVariant,
    DeviceInfo,
    DeviceLimits,
    DeviceStatus,
    Packet,
    StreamHandle,
    SweepResult,
    USBDeviceDescriptor,
    VNADatapointPacket,
    VNARawPoint,
    VNASweepSettings,
)

__all__ = [
    "CRCError",
    "DEFAULT_LOG_LEVEL",
    "DeviceConfigVariant",
    "DeviceDisconnectedError",
    "DeviceInfo",
    "DeviceLimits",
    "DeviceStatus",
    "HardwareFamily",
    "IncompleteSweepError",
    "LibreVNADevice",
    "LibreVNAError",
    "NackError",
    "Packet",
    "PacketType",
    "ParseError",
    "ProtocolVersionMismatch",
    "configure_logging",
    "SParameter",
    "StreamHandle",
    "SweepKind",
    "SweepResult",
    "SweepScale",
    "SyncMode",
    "TimeoutError",
    "USBDeviceDescriptor",
    "UnsupportedHardwareError",
    "VNADatapointPacket",
    "VNARawPoint",
    "VNASweepSettings",
]

logging.getLogger(__name__).addHandler(logging.NullHandler())
