Embedded File System directory. More...
#include <net.h>
Data Fields | |
char | dir [MAX_NAME_LEN] |
char | name [MAX_NAME_LEN] |
int32_t | size |
uint32_t | access |
int8_t | type |
uint32_t | offset |
uint32_t | max_offset |
uint32_t | pos |
uint32_t | rw |
uint32_t | timeout |
SOCKET * | data_con |
char * | buffer |
int32_t | error |
char * | auth_key |
char * | auth_name |
int32_t | index |
char(* | get_byte )(uint32_t, uint32_t) |
int32_t(* | put_byte )(uint32_t, char) |
uint16_t(* | read_block )(char *, uint32_t, uint32_t, uint16_t) |
The direntry_type structure is used to specify a directory/file for the EFS. It's used for FTP, HTTP or telnet servers.
dir |
name |
File name
max. 60 characters, no spaces
int32_t size |
File size
access |
File access
use defines
int8_t type |
File type 'A'-ASCII, 'B'-bin or 'I'-hex
uint32_t max_offset |
Maximum address offset
uint32_t pos |
Position of data pointer
rw |
Read write flag
use defines
timeout |
Timeout counter
SOCKET* data_con |
Connected data socket
buffer |
Data buffer for transfer
error |
Error_code
check previous transmission for errors:
auth_key |
Authentication key
used for secure webpages; key is set automatically by function http_set_authentication()
auth_name |
Authentication name
used for secure webpages; name is set automatically by function http_set_authentication()
index |
get_byte |
File read callback function
overwritable function to read external data (e.g. from SPI FLASH)
put_byte |
File write callback function
overwritable function to write external data (e.g. to SPI FLASH)