You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
840 B
Python
29 lines
840 B
Python
"""A sans-io python implementation of the Highway Addressable Remote Transducer Protocol."""
|
|
|
|
from .__version__ import *
|
|
|
|
# 延迟导入以避免循环依赖
|
|
def _get_hart_communication():
|
|
from .HARTCommunication import HARTCommunication, BurstModeON, BurstModeOFF, PrimaryMasterMode, SecondaryMasterMode
|
|
return HARTCommunication, BurstModeON, BurstModeOFF, PrimaryMasterMode, SecondaryMasterMode
|
|
|
|
# 导出常用模块
|
|
from . import common
|
|
from . import universal
|
|
from . import tools
|
|
from ._unpacker import *
|
|
|
|
# 导出主要类和常量
|
|
HARTCommunication, BurstModeON, BurstModeOFF, PrimaryMasterMode, SecondaryMasterMode = _get_hart_communication()
|
|
|
|
__all__ = [
|
|
'HARTCommunication',
|
|
'BurstModeON',
|
|
'BurstModeOFF',
|
|
'PrimaryMasterMode',
|
|
'SecondaryMasterMode',
|
|
'common',
|
|
'universal',
|
|
'tools'
|
|
]
|