stm32_ota/USER/USER_FTP/user_ftp.h

29 lines
1.1 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#ifndef _USER_FTP_H
#define _USER_FTP_H
#include "ec20ftp.h"
/*****************************************
*自定义变量类型
****************************************/
/*****************************************
*供外部使用的常变量定义
****************************************/
extern FtpP_s sFtpBoot ; //FtpP_s结构体变量声明保存用户连接FTP的参数信息
/*****************************************
*内部函数声明
****************************************/
/*****************************************
*对外接口函数声明
****************************************/
extern void SetAppFtpDir(FtpP_s *psFtp, char* newDir) ; //修改FTP连接的根目录
extern void SetAppFtpUsername(FtpP_s *psFtp, char* username) ; //设置登陆FTP服务器的用户名
extern void SetAppFtpPassword(FtpP_s *psFtp, char* password) ; //设置登陆FTP服务器的用户名密码
extern void SetAppFtpIP(FtpP_s *psFtp, char* ip) ; //设置登陆FTP服务器的IP
extern RunResult AppFtpInit(void) ; //对FTP配置、PDP激活、登录、设置默认路径
extern RunResult AppFtpClose(void) ; //退出FTP服务器、关闭PDP
#endif