源码位置
files/demo/api/python/rcl/dist/lauterbach-trace32-rcl-1.0.2
研究 T32_NotifyXXXX
T32_NotifyEventEnable 相当于 cmm 脚本中的“ON”
但 rcl 中并没有实现!
但在 _rc/_library.py 中却发现了相关的代码:
def t32_notifystateenable(self, event_code, callback_function):
"""Enables notification at remote server and registers locally callback_function"""
if event_code > 7:
raise err.ApiNotificationEventCountExceedError(event_code)
event_mask_value = 1 << event_code
try:
if event_code == T32_E_EDIT:
result = self.generic_api_call(rapi_cmd&