Files
2025-12-15 16:07:49 +08:00

58 lines
1.5 KiB
C
Raw Permalink 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.
/*—————————————————————----------
* 文 件 名Cmd.h
* 作 者:邹亮
* 日 期2013-12-30
* 文件说明:控制台头文件
*——————————————————————————*/
#ifndef _CMD_H
#define _CMD_H
#include "Basedefine.h"
#include "uart.h"
typedef const struct
{
const u8 *cmd;
void (*action)(void);
const u8 *info;
} sCmd;
extern void add_in_flash(void);
extern void add_list_node(void);
extern char change_parity(u16 parity);
extern float change_stop_bits(u16 uart_stopbit);
extern u16 change_string_to_arry16(char * input);
extern u8 CharToU8(u8 data);
extern void Cmd_Exe(void);
extern void Cmd_Proc(void);
extern void delete_space_key(u8 *buf);
extern u8 find_cmd_length(u8 * buf);
extern u16 find_string16_len(char * str);
extern u8 GetStrPara(u8* buffer, u8 index);
extern void GetTime(void);
extern void GetU16Para(u16 *para,u8 index);
extern void GetU8Para(u8 *para,u8 index);
extern void ListCmd(void);
extern void lora_cmd_tx(void );
extern void mbus_direct_tx(void);
extern void printf_uart_port(st_uart_int port_init);
extern void read_curent_protocl(void);
extern void read_local_addr(void);
extern void read_maintain(void);
extern void read_mbus_power(void);
extern void release_debug(void);
extern void SetTime(void);
extern void set_gMeterConfig(void);
extern void set_local_addr(void);
extern void set_mbus_port(void);
extern void set_mbus_power(void);
extern void simul_plc_rx(void);
extern void simul_read_meter(void);
extern void write_maintain(void);
extern void scan_ports(void);
#endif