Functions | |
int32_t | fsys_init_dir (user_type *user_list, mmc_function_type *mmc_func) |
Initialize all directories specified in user_list. More... | |
int32_t | fsys_init_file (direntry_type *fp, uint32_t offset, int32_t size) |
This function initializes all necessary internal parameters for a specific user file. More... | |
int32_t | fsys_get_file_size (direntry_type *fp) |
Determine file size of specified file. More... | |
direntry_type * | fsys_send_all (direntry_type *fp, int32_t size, int32_t send_all) |
File transmission function. More... | |
void | fsys_init_flash (void) |
Initialize FLASH-sectors. More... | |
int32_t fsys_init_file | ( | direntry_type * | fp, |
uint32_t | offset, | ||
int32_t | size | ||
) |
int32_t fsys_get_file_size | ( | direntry_type * | fp | ) |
direntry_type * fsys_send_all | ( | direntry_type * | fp, |
int32_t | size, | ||
int32_t | send_all | ||
) |
This multi-purpose file transmission function allows to send or receive data (ASCII, binary or Intel-Hex) from or to FLASH/RAM space via connected TCP socket.
fp | - file to send |
size | - some bytes left to send from previous packet |
send_all | - if TRUE all data will be sent immediately (blocking mode) |
void fsys_init_flash | ( | void | ) |
Tag all FLASH-sectors as not empty for correct sector erase. Must be called before data is written into FLASH memory via fsys_send_all().
- |