29 lines
1.1 KiB
C
29 lines
1.1 KiB
C
#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
|