nicsensor/docs/code_structure.txt

15 lines
818 B
Plaintext
Raw Permalink Normal View History

On Version V1.x
PART I. Sensor读取
2024-12-29 18:36:09 +08:00
start_get_sensor //启动读取Sensor的流程
|--->set_configuration
| |--->set_configuration_5280m7/5468m7/donghu/yichun //根据服务器类型设置具体I2C相关参数
|--->get_pca9641_controll //如果服务器上有PCA9641,选通它
|--->switch_pca9548_channel //切换9548/9546到对应的槽位上
|--->process_sensor
|--->sensor_init //传感器可能需要初始化
|--->read_sensor_value //读取传感器的数值
|--->convert_sensor_value //处理传感器的读值并做可视化处理
PART II. Detect操作
start_detect_device //启动detect i2c的流程
|--->detect_on_5280m7/5468m7/donghu/yichun //根据服务器类型进行对应的detect操作