docs(M1): 详细设计说明书补齐第3~9节(文件格式/HTTP接口/时序/状态机/错误码/90条用例清单/待实现清单)
This commit is contained in:
1 parent
8e7fc5015a
commit
e0cc5d578f
30 files changed
+10137
-15
No files matched your search
@@ -28,17 +28,17 @@ typedef uint8_t shs_matrix_t[SHS_DAYS][SHS_HOURS];
|
||||
/** 设置某个时刻的动作:day 0~6、hour 0~23,越界返回 SHS_ERR_RANGE */
|
||||
shs_err_t schedule_set(shs_matrix_t matrix, int day, int hour, uint8_t action);
|
||||
/** 读取某个时刻的动作 */
|
||||
uint8_t schedule_get(const shs_matrix_t matrix, int day, int hour);
|
||||
uint8_t schedule_get(shs_matrix_t matrix, int day, int hour);
|
||||
/** 清空矩阵 */
|
||||
void schedule_clear(shs_matrix_t matrix);
|
||||
/** 统计已安排的动作总数(循环嵌套) */
|
||||
int schedule_count_actions(const shs_matrix_t matrix);
|
||||
int schedule_count_actions(shs_matrix_t matrix);
|
||||
/** 把矩阵渲染成文本报表(嵌套循环 + 字符拼接,供 CLI 与网页展示) */
|
||||
shs_err_t schedule_render(const shs_matrix_t matrix, char *buf, size_t buf_size);
|
||||
shs_err_t schedule_render(shs_matrix_t matrix, char *buf, size_t buf_size);
|
||||
/** 动作名称(switch 演示) */
|
||||
const char *schedule_action_name(uint8_t action);
|
||||
/** 执行指定时刻的定时动作(项目四:主循环里按小时触发一次) */
|
||||
shs_err_t schedule_run_slot(Device devices[], int count, const shs_matrix_t matrix,
|
||||
shs_err_t schedule_run_slot(Device devices[], int count, shs_matrix_t matrix,
|
||||
int day, int hour, char *log_msg, size_t log_size);
|
||||
|
||||
#endif /* SHS_SCHEDULE_H */
|
||||
Reference in new issue
Block a user