APP_COMM
Defines
-
LCD_DEVICE_NAME
-
OTA_ERR_FONT
-
FACTORY_CFG_ID_OTA
-
WATCH_DEVICE_NAME
-
CPU_MODEL
-
PRODUCT_SOFTWARE_VER
-
BACKLIGHT_LEVEL_MAX
-
BACKLIGHT_LEVEL_MIN
-
STR_NULL
-
app_get_strid(key_name, name)
-
app_get_str(key_name, name)
-
app_get_str_from_id(key_id)
-
app_get_str_from_lang_pack(lang_pack, key_name)
Enums
-
enum [anonymous]
Values:
-
enumerator BACKLIGHT_ONE_LEVEL
LCD brightness level 1
-
enumerator BACKLIGHT_TWO_LEVEL
LCD brightness level 2
-
enumerator BACKLIGHT_THREE_LEVEL
LCD brightness level 3
-
enumerator BACKLIGHT_FOUR_LEVEL
LCD brightness level 4
-
enumerator BACKLIGHT_FIVE_LEVEL
LCD brightness level 5
-
enumerator BACKLIGHT_ONE_LEVEL
Functions
-
void app_lcd_off(void)
Turn off LCD, LCD power off.
-
void app_lcd_on(void)
Turn on LCD, LCD power on.
-
void app_lcpu_pwr_on(void)
Notify LCPU, the HCPU has been powered on. In dual core (non 52x), due to the need for low battery detection on the HCPU during power on, the battery measurement of the LCPU is opened here..
-
void app_lcpu_pwr_off(uint16_t type)
Notify LCPU, the HCPU is about to shutdown.
- 参数:
type -- Interface of type app_lcpu_t.
-
void app_lcpu_pwr_off_cb(void)
After notify LCPU when the HCPU is about to shutdown, waiting for LCPU response.
-
void app_device_info_get(device_info_t *device_info)
Obtain relevant information about the device.
- 参数:
device_info -- Pointer to device information
-
bool app_screen_lock_time_is_end(void)
Determine if the lock screen time has timed out.
- 返回值:
bool -- Timeout or not
-
void app_screen_lock_enable(bool enable)
Set whether to enable the lock screen function.
-
uint32_t app_screen_lock_time_set(uint32_t ms)
Set lock screen time length and store it in NVM.
- 参数:
ms -- Lock screen time length, unit ms
- 返回值:
uint32_t -- Previous lock screen time length before setting
-
uint32_t app_screen_lock_time_temp_set(uint32_t ms)
Temporarily set lock screen time length, not store it in NVM.
- 参数:
ms -- Lock screen time length, unit ms
- 返回值:
uint32_t -- Previous lock screen time length before setting
-
void app_sys_time_update(sys_time_t *time)
Update system time.
- 参数:
time -- New system time
-
void app_sys_time_reset(void)
Reset the system clock, the system clock will be restored to its default state.
-
void app_sys_timestamp_update(time_t timestamp)
Update system time using time_t's time stamp.
- 参数:
timestamp -- New system time
-
void app_hindi_font_active(void)
Open hindi(Devanagari) with font name Devanagari _hindi_name. HINDI_LANG_PREV_CONVERT_SUPPORT: Static text uses pre conversion to improve display speed.
-
void app_hindi_font_deactive(void)
close hindi(Devanagari) font.
-
void app_tp_buffer_clean(void)
Clean TP buffer in driver.
-
void app_tp_wakeup_enable(uint8_t enable)
Enable TP wakeup function or not. Due to tp pin maybe placed in LCPU, so need send to LCPU.
- 参数:
enable -- Enable or not.
-
void app_frame_buffer_clean(void)
Clean frame buffer.
-
void app_locale_lang_init(void)
Initalize local language. 1) Get language list(ex_lang) from flash's language packet if exist. 2) Set default language.
-
void app_locale_lang_update(const char *locale)
Updated and set local language.
- 参数:
locale -- Locale language name.
-
void app_lcd_backlight_set(uint8_t level)
Set LCD display brightness.
- 参数:
level -- Brightness level.
-
char *app_current_app_name_get(void)
Get the name of currently running application name.
- 返回值:
string -- Currently running application name
-
void app_watchdog_enable(uint8_t enable)
Enable watchdog or not.
- 参数:
enable -- Enable watchdog or not.
-
void app_watchdog_pet(void)
Pet watchdog to avoid watchdog timeout.
-
rt_err_t app_ota_status_set(uint16_t state)
Set OTA status and save it.
- 参数:
state -- OTA status.
- 返回值:
rt_err_t -- Set status result
-
uint16_t app_ota_status_get(void)
Get OTA status.
- 返回值:
uint16_t -- Current OTA state.
-
int app_version_is_release_mode(void)
Get version mode, release mode or debug mode. For release mode, some exception can't be asserted For debug mode, watchdog maybe close.
- 返回值:
int -- 0: debug mode; 1: release mode.
-
void app_version_release_mode_set(bool mode)
Set version mode.
- 参数:
mode -- Version mode, 0: debug mode; 1: release mode.
-
void app_gpu_wait_done(void)
Waiting GPU done. It will be called when power_off animation procedure.
-
char *app_convert_time_formats_str(bool need_sec)
Convert time to format string. hour : minute: second with format %02d:%02d:%02d.
- 返回值:
string -- time string with %02d:%02d:%02d (hour : minute: second).
-
void app_font_open(void)
Initialize font, deal ota abnoraml.
-
struct device_info_t
-
struct screen_lock_ctrl_t