summaryrefslogtreecommitdiffstats
path: root/espFtpCommands.h
blob: 4cf8c21a1c164de578ae4e3f56d8e32c4763b4a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef ESP_FTP_COMMANDS_H
#define ESP_FTP_COMMANDS_H

#define FTP_CMD(CMD) (FTP_CMD_LE_##CMD) 

#define FTP_CMD_LE_USER 0x52455355         // "USER" as uint32_t (little endian)
#define FTP_CMD_BE_USER 0x55534552         // "USER" as uint32_t (big endian)
#define FTP_CMD_LE_PASS 0x53534150         // "PASS" as uint32_t (little endian)
#define FTP_CMD_BE_PASS 0x50415353         // "PASS" as uint32_t (big endian)
#define FTP_CMD_LE_QUIT 0x54495551         // "QUIT" as uint32_t (little endian)
#define FTP_CMD_BE_QUIT 0x51554954         // "QUIT" as uint32_t (big endian)
#define FTP_CMD_LE_CDUP 0x50554443         // "CDUP" as uint32_t (little endian)
#define FTP_CMD_BE_CDUP 0x43445550         // "CDUP" as uint32_t (big endian)
#define FTP_CMD_LE_CWD  0x00445743         // "CWD"  as uint32_t (little endian)
#define FTP_CMD_BE_CWD  0x43574400         // "CWD"  as uint32_t (big endian)
#define FTP_CMD_LE_PWD  0x00445750         // "PWD"  as uint32_t (little endian)
#define FTP_CMD_BE_PWD  0x50574400         // "PWD"  as uint32_t (big endian)
#define FTP_CMD_LE_MODE 0x45444f4d         // "MODE" as uint32_t (little endian)
#define FTP_CMD_BE_MODE 0x4d4f4445         // "MODE" as uint32_t (big endian)
#define FTP_CMD_LE_PASV 0x56534150         // "PASV" as uint32_t (little endian)
#define FTP_CMD_BE_PASV 0x50415356         // "PASV" as uint32_t (big endian)
#define FTP_CMD_LE_PORT 0x54524f50         // "PORT" as uint32_t (little endian)
#define FTP_CMD_BE_PORT 0x504f5254         // "PORT" as uint32_t (big endian)
#define FTP_CMD_LE_STRU 0x55525453         // "STRU" as uint32_t (little endian)
#define FTP_CMD_BE_STRU 0x53545255         // "STRU" as uint32_t (big endian)
#define FTP_CMD_LE_TYPE 0x45505954         // "TYPE" as uint32_t (little endian)
#define FTP_CMD_BE_TYPE 0x54595045         // "TYPE" as uint32_t (big endian)
#define FTP_CMD_LE_ABOR 0x524f4241         // "ABOR" as uint32_t (little endian)
#define FTP_CMD_BE_ABOR 0x41424f52         // "ABOR" as uint32_t (big endian)
#define FTP_CMD_LE_DELE 0x454c4544         // "DELE" as uint32_t (little endian)
#define FTP_CMD_BE_DELE 0x44454c45         // "DELE" as uint32_t (big endian)
#define FTP_CMD_LE_LIST 0x5453494c         // "LIST" as uint32_t (little endian)
#define FTP_CMD_BE_LIST 0x4c495354         // "LIST" as uint32_t (big endian)
#define FTP_CMD_LE_MLSD 0x44534c4d         // "MLSD" as uint32_t (little endian)
#define FTP_CMD_BE_MLSD 0x4d4c5344         // "MLSD" as uint32_t (big endian)
#define FTP_CMD_LE_NLST 0x54534c4e         // "NLST" as uint32_t (little endian)
#define FTP_CMD_BE_NLST 0x4e4c5354         // "NLST" as uint32_t (big endian)
#define FTP_CMD_LE_NOOP 0x504f4f4e         // "NOOP" as uint32_t (little endian)
#define FTP_CMD_BE_NOOP 0x4e4f4f50         // "NOOP" as uint32_t (big endian)
#define FTP_CMD_LE_RETR 0x52544552         // "RETR" as uint32_t (little endian)
#define FTP_CMD_BE_RETR 0x52455452         // "RETR" as uint32_t (big endian)
#define FTP_CMD_LE_STOR 0x524f5453         // "STOR" as uint32_t (little endian)
#define FTP_CMD_BE_STOR 0x53544f52         // "STOR" as uint32_t (big endian)
#define FTP_CMD_LE_MKD  0x00444b4d         // "MKD"  as uint32_t (little endian)
#define FTP_CMD_BE_MKD  0x4d4b4400         // "MKD"  as uint32_t (big endian)
#define FTP_CMD_LE_RMD  0x00444d52         // "RMD"  as uint32_t (little endian)
#define FTP_CMD_BE_RMD  0x524d4400         // "RMD" as uint32_t (big endian)
#define FTP_CMD_LE_RNFR 0x52464e52         // "RNFR" as uint32_t (little endian)
#define FTP_CMD_BE_RNFR 0x524e4652         // "RNFR" as uint32_t (big endian)
#define FTP_CMD_LE_RNTO 0x4f544e52         // "RNTO" as uint32_t (little endian)
#define FTP_CMD_BE_RNTO 0x524e544f         // "RNTO" as uint32_t (big endian)
#define FTP_CMD_LE_FEAT 0x54414546         // "FEAT" as uint32_t (little endian)
#define FTP_CMD_BE_FEAT 0x46454154         // "FEAT" as uint32_t (big endian)
#define FTP_CMD_LE_MDTM 0x4d54444d         // "MDTM" as uint32_t (little endian)
#define FTP_CMD_BE_MDTM 0x4d44544d         // "MDTM" as uint32_t (big endian)
#define FTP_CMD_LE_SIZE 0x455a4953         // "SIZE" as uint32_t (little endian)
#define FTP_CMD_BE_SIZE 0x53495a45         // "SIZE" as uint32_t (big endian)
#define FTP_CMD_LE_SITE 0x45544953         // "SITE" as uint32_t (little endian)
#define FTP_CMD_BE_SITE 0x53495445         // "SITE" as uint32_t (big endian)
#define FTP_CMD_LE_SYST 0x54535953         // "SYST" as uint32_t (little endian)
#define FTP_CMD_BE_SYST 0x53595354         // "SYST" as uint32_t (big endian)

#endif // ESP_FTP_COMMANDS_H