//! 静态功能模块
//!
//! 包含网络信息、版本信息、设备信息、授权和描述辅助函数。

/// 网络信息与扫描
pub mod network;

/// 描述信息辅助函数 (状态码/错误码文本)
pub mod print;

/// 版本信息
pub mod version_info;

/// 设备信息 (序列号、设备名称、邮箱等)
pub mod device_info;

/// 其他静态工具 (管理员检测、系统版本)
pub mod other;

/// 授权管理 (验证、激活、状态查询)
pub mod authorization;

/// 协议常量解码 (转发到 DLL ec_*.h 模块: AL/SDO/EMCY/ESM/PDO/CiA402/Mailbox/SoE/SII/Coupler/Diag)
pub mod protocol_codes;

// 重新导出核心类型
pub use network::{
    ScannedSlaveInfo, NetworkInfo, get_scanned_slaves, get_network_adapters,
    ring_slave_count, scanned_slave_count,
};
pub use print::{
    state_description, al_status_description, al_status_description_cn,
    al_status_full_description, link_state_description, access_description_with_state,
    sdo_error_description, soe_error_description, mailbox_error_description,
    mailbox_type_description, obj_access_description, obj_access_description_cn,
    write_condition_description, can_write_in_state,
    data_type_short_name, data_type_name,
    cia402_state_description, cia402_mode_description,
    fsoe_state_description, fsoe_error_description,
    port_type_description, topology_type_description, pdi_type_description,
    device_type_description, sync_manager_type_description, fmmu_type_description,
    coe_details_description, eoe_details_description,
};
pub use version_info::{DllVersion, dll_version, version as sdk_version};
pub use device_info::{get_serial_number, get_device_name, get_user_email, get_windows_product_key, get_driver_list};
pub use authorization::{
    LicenseStatus, Authorization, AdminHelper, DeviceInfoHelper,
    LicenseCertificate,
};
pub use protocol_codes::{
    ProtocolCodes,
    AlSeverity, SdoAbortCategory, EmcyClass, EcTransitionType,
    EcTopology, EcDeviceType, HomingTrigger,
};
