sggt/App/APP_WU/Inc/app_screen_setting_trans.h

65 lines
1.3 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 __APP_SCREEN_SETTING_TRANS_H
#define __APP_SCREEN_SETTING_TRANS_H
#include "apps_gather.h"
#define TEXT_HART 0
#define TEXT_BLE 1
#define TEXT_MODBUS 2
#define TEXT_MODBUS_CONFIG 3
typedef enum
{
MOD_CONF_SLAVE_ID = 0,
MOD_CONF_START_ADDRESS,
MOD_CONF_BYTES,
MOD_CONF_TIMEOUT,
MOD_CONF_COMMAND,
MOD_CONF_REGISTER_NUM,
MOD_CONF_CALIBRATION,
MOD_CONF_NEXT,
MOD_CONF_NONE
}MOD_CONF_ITEMS;
typedef enum
{
MOD_TRX_DATA = 0,
MOD_TRX_PREVIOUS,
MOD_TRX_SET,
MOD_TRX_SEND,
MOD_TRX_NONE
}MOD_TRX_ITEMS;
void communication_switch(void);
void set_communication_text(uint8_t con);
void config_items_set_color(MOD_CONF_ITEMS cur, uint32_t color);
void config_items_check(MOD_CONF_ITEMS cur, MOD_CONF_ITEMS cur_prv);
void trx_items_set_color(MOD_TRX_ITEMS cur, uint32_t color);
void trx_items_check(MOD_TRX_ITEMS cur, MOD_TRX_ITEMS cur_prv);
void set_communication_modify(uint8_t con, int8_t step);
void key_functions_modbus(void);
//切换至modbus配置界面后对显示内容进行调整语言、默认值
void scr_modbus_config_recover(void);
//切换至trx收发界面后游标复位清空数据、tx、rx内容
void scr_modbus_trx_recover(void);
void screen_modbus_trx_run(void);
extern uint8_t com_switch_cursor;
extern uint8_t com_switch_cursor_prv;
extern uint8_t trx_focus;
#endif