Files
STM32F4-Base/Drivers/BSP/UI/ui_page_dc.c
T
2026-09-09 17:15:04 +08:00

38 lines
1.1 KiB
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.
/*
* 模块名称:UI Page DC (直流量内容页)
* 模块功能:直流量叶子节点的内容页数据——数据列表(3 项单页);
* 向框架 ui_content_page 提供页面描述符(零 LVGL 对象)
* 适用平台:STM32F407ZGTx / PC 模拟器(两端共用)
* 作者:王建锋
* 创建日期:2026-09-09
* 修改记录:
* 2026-09-09 王建锋 创建:自 ui_content_page 单体拆出(数据原样迁移,零改动)
*/
/* 头文件包含区 */
#include "ui_page_dc.h"
/* 静态变量定义区 */
/* 直流量行(参考图 21) */
static const cp_row_t s_rows[] = {
{"ZL01", "3.01"},
{"ZL02", "3.15"},
{"Pa1", "3.288"},
};
/* 页面描述符(外部链接:框架描述符表 s_defs[] 直接引用;列表页单页,钩子全 NULL) */
const content_page_def_t ui_page_dc_desc = {
.title = "直流量",
.selectable = 1u,
.top_y = 24,
.pitch = 14,
.band_h = 13,
.text_dy = 0,
.left_x = 7,
.right_x = 101,
.rows_per_page = 8u,
.row_count = 3,
.rows = s_rows,
};