RTU/src/protocol/libmms_s/inc/mms_s_value.h

27 lines
875 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @file mms_s_value.h
* @brief IEC 61850 数据属性值初始化接口
*
* @details 提供 mms_s_values_init() 作为 IedModel 的初始化回调。
* 在 IedServer 创建后,遍历模型树中的所有 DA,
* 根据 ICD 中 DAI 的默认值和 bType,设置各 DA 的初始 mmsValue。
*
* 支持的数据类型:BOOLEAN, INT8/16/32, INT8U/16U/32U,
* FLOAT32/64, Enum, VisString*, Unicode*, Timestamp, Dbpos
*/
#pragma once
#include "mms_s_icd.h"
#include "mms_s.h"
/**
* 初始化数据模型中的属性值(IedModel initializer 回调)
*
* 遍历 ICD 模型树中的每个 DA,根据其 bType 和 DAI 中配置的 val,
* 创建对应的 MmsValue 并设置到 DataAttribute 上。
*/
void mms_s_values_init();
/** 预留:值更新函数(当前未完整实现) */
void mms_s_values_update();