Files
SmartMassager_STM32/Core/Inc/gbk_text.h

73 lines
2.9 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.
#ifndef __GBK_TEXT_H__
#define __GBK_TEXT_H__
#include <stdint.h>
// GBK文本数组声明定义在gbk_text.c中
extern const uint8_t text_device_name_GBK[];
extern const uint8_t text_device_loading_GBK[];
extern const uint8_t text_start_massage_GBK[];
extern const uint8_t text_start_heating_GBK[];
extern const uint8_t text_stop_massage_GBK[];
extern const uint8_t text_stop_heating_GBK[];
extern const uint8_t text_massage_gear_1_GBK[];
extern const uint8_t text_massage_gear_2_GBK[];
extern const uint8_t text_massage_gear_3_GBK[];
extern const uint8_t text_massage_time_10_GBK[];
extern const uint8_t text_massage_time_15_GBK[];
extern const uint8_t text_massage_time_20_GBK[];
extern const uint8_t text_massage_time_30_GBK[];
extern const uint8_t text_massage_time_cont_GBK[];
extern const uint8_t text_remaining_time_GBK[];
extern const uint8_t text_heating_on_GBK[];
extern const uint8_t text_heating_off_GBK[];
extern const uint8_t text_massage_running_GBK[];
extern const uint8_t text_massage_paused_GBK[];
extern const uint8_t text_massage_ended_GBK[];
// GBK文本长度宏预计算不含\0
#define text_device_name_LEN (10)
#define text_device_loading_LEN (20)
#define text_start_massage_LEN (10)
#define text_start_heating_LEN (10)
#define text_stop_massage_LEN (10)
#define text_stop_heating_LEN (10)
#define text_massage_gear_1_LEN (13)
#define text_massage_gear_2_LEN (13)
#define text_massage_gear_3_LEN (13)
#define text_massage_time_10_LEN (16)
#define text_massage_time_15_LEN (16)
#define text_massage_time_20_LEN (16)
#define text_massage_time_30_LEN (16)
#define text_massage_time_cont_LEN (14)
#define text_remaining_time_LEN (18)
#define text_heating_on_LEN (12)
#define text_heating_off_LEN (12)
#define text_massage_running_LEN (8)
#define text_massage_paused_LEN (12)
#define text_massage_ended_LEN (12)
// 兼容旧代码的别名
#define text_device_name text_device_name_GBK
#define text_device_loading text_device_loading_GBK
#define text_start_massage text_start_massage_GBK
#define text_start_heating text_start_heating_GBK
#define text_stop_massage text_stop_massage_GBK
#define text_stop_heating text_stop_heating_GBK
#define text_massage_gear_1 text_massage_gear_1_GBK
#define text_massage_gear_2 text_massage_gear_2_GBK
#define text_massage_gear_3 text_massage_gear_3_GBK
#define text_massage_time_10 text_massage_time_10_GBK
#define text_massage_time_15 text_massage_time_15_GBK
#define text_massage_time_20 text_massage_time_20_GBK
#define text_massage_time_30 text_massage_time_30_GBK
#define text_massage_time_cont text_massage_time_cont_GBK
#define text_remaining_time text_remaining_time_GBK
#define text_heating_on text_heating_on_GBK
#define text_heating_off text_heating_off_GBK
#define text_massage_running text_massage_running_GBK
#define text_massage_paused text_massage_paused_GBK
#define text_massage_ended text_massage_ended_GBK
#endif // __GBK_TEXT_H__