更新UCD-API库及文档

This commit is contained in:
xinzhu.yin
2026-07-02 17:16:18 +08:00
parent a500751d85
commit 9fa811a9eb
290 changed files with 9558 additions and 2306 deletions

View File

@@ -0,0 +1,28 @@
from UniTAP.libs.lib_tsi.tsi_io import DeviceIO
class DevBase:
"""
Class `DevBase`.
"""
def __init__(self, dev_io: DeviceIO):
self.__dev_io = dev_io
def is_fw_update_available(self) -> bool:
"""
Checks if there is a firmware update available for the current device.
Returns:
object of bool type.
"""
return self.__dev_io.is_fw_update_available()
def get_fw_update_info(self) -> str:
"""
Returns a list of modules to update on the current device and also displays the current version.
Returns:
object of str type.
"""
return self.__dev_io.get_fw_update_info()