Files
stc32g128k/App/ui.h

86 lines
3.2 KiB
C
Raw Permalink Normal View History

#ifndef __UI_H__
#define __UI_H__
#include "config.h"
/* ====== OLED 屏幕 UI (用户界面) 渲染层接口 ====== */
/**
* @brief
* @param state (STATE_NORMAL/STATE_ARMED/STATE_DISARMED)
* @param hour
* @param min
* @details 120x240 AMOLED
* ()
*/
void UI_ShowClockPage(SystemState state, u8 hour, u8 min);
/**
* @brief
* @param selected_index (0:, 1:PIR, 2:, 3:, 4:)
*/
void UI_ShowPairMenuPage(u8 selected_index);
/**
* @brief 线
* @param frame_index (0~2 )
*/
void UI_ShowPairWaitPage(u8 frame_index);
/**
* @brief 线
* @param type (0~4)
* @param zone_index (1~99)
*/
void UI_ShowPairConfirmPage(u8 type, u8 zone_index);
/**
* @brief
* @details "APPAIRAGE OK" ()
*/
void UI_ShowPairSuccessPage(void);
/**
* @brief (30)
* @param is_timeout 10
* @details "ECHEC" ()
*/
void UI_ShowPairFailPage(u8 is_timeout);
/**
* @brief
* @param type (0:, 1:PIR, 2:, 3:, 4:)
* @param zone_index (1~99, 0)
* @details
*/
void UI_ShowAlarmPage(u8 type, u8 zone_index);
/**
* @brief SOS
* @details "SOS EMIS" ()
*/
void UI_ShowSosPage(void);
/**
* @brief (IPC)
* @param addr 24 ID ()
*/
void UI_ShowBindingPage(u32 addr);
/**
* @brief
* @param selected_index (0:HORLOGE时间, 1:APPAIRAGE对码, 2:LIAISON绑定)
*/
void UI_ShowMainMenu(u8 selected_index);
/**
* @brief ()
* @param hour
* @param min
* @param selection (1:, 2:)
* @param blink_on 500ms (1-, 0-)
*/
void UI_ShowSetTimePage(u8 hour, u8 min, u8 selection, u8 blink_on);
#endif // __UI_H__