Microchip® Advanced Software Framework

BasicTFTP.h File Reference
#include "portmacro.h"

Data Structures

struct  servent
 
struct  tftphdr
 

Macros

#define ACK   04 /* acknowledgement */
 
#define DATA   03 /* data packet */
 
#define EACCESS   2 /* access violation */
 
#define EBADID   5 /* unknown transfer ID */
 
#define EBADOP   4 /* illegal TFTP operation */
 
#define EEXISTS   6 /* file already exists */
 
#define ENOSPACE   3 /* disk full or allocation exceeded */
 
#define ENOTFOUND   1 /* file not found */
 
#define ENOUSER   7 /* no such user */
 
#define ERROR   05 /* error code */
 
#define EUNDEF   0 /* not defined */
 
#define RRQ   01 /* read request */
 
#define SEGSIZE   512 /* data segment size */
 
#define TFTP_EACCESS   2 /* access violation */
 
#define TFTP_EBADID   5 /* unknown transfer ID */
 
#define TFTP_EBADOP   4 /* illegal TFTP operation */
 
#define TFTP_EEXISTS   6 /* file already exists */
 
#define TFTP_ENOSPACE   3 /* disk full or allocation exceeded */
 
#define TFTP_ENOTFOUND   1 /* file not found */
 
#define TFTP_ENOUSER   7 /* no such user */
 
#define TFTP_INVALID   10 /* invalid parameter */
 
#define TFTP_NETASCII   0
 
#define TFTP_NETERR   9 /* some sort of network error */
 
#define TFTP_OCTET   1
 
#define TFTP_PROTOCOL   11 /* protocol violation */
 
#define TFTP_RETRIES_MAX   5
 
#define TFTP_TIMEOUT   8 /* operation timed out */
 
#define TFTP_TIMEOUT_MAX   50
 
#define TFTP_TIMEOUT_PERIOD   5
 
#define TFTP_TOOLARGE   12 /* file is larger than buffer */
 
#define th_block   th_u.tu_block
 
#define th_code   th_u.tu_code
 
#define th_msg   th_data
 
#define th_stuff   th_u.tu_stuff
 
#define WRQ   02 /* write request */
 

Functions

 portTASK_FUNCTION_PROTO (vBasicTFTPServer, pvParameters)
 

#define ACK   04 /* acknowledgement */
#define DATA   03 /* data packet */
#define EACCESS   2 /* access violation */
#define EBADID   5 /* unknown transfer ID */
#define EBADOP   4 /* illegal TFTP operation */
#define EEXISTS   6 /* file already exists */
#define ENOSPACE   3 /* disk full or allocation exceeded */
#define ENOTFOUND   1 /* file not found */
#define ENOUSER   7 /* no such user */
#define ERROR   05 /* error code */
#define EUNDEF   0 /* not defined */
#define RRQ   01 /* read request */
#define SEGSIZE   512 /* data segment size */
#define TFTP_EACCESS   2 /* access violation */
#define TFTP_EBADID   5 /* unknown transfer ID */
#define TFTP_EBADOP   4 /* illegal TFTP operation */
#define TFTP_EEXISTS   6 /* file already exists */
#define TFTP_ENOSPACE   3 /* disk full or allocation exceeded */
#define TFTP_ENOTFOUND   1 /* file not found */
#define TFTP_ENOUSER   7 /* no such user */
#define TFTP_INVALID   10 /* invalid parameter */
#define TFTP_NETASCII   0
#define TFTP_NETERR   9 /* some sort of network error */
#define TFTP_OCTET   1
#define TFTP_PROTOCOL   11 /* protocol violation */
#define TFTP_RETRIES_MAX   5
#define TFTP_TIMEOUT   8 /* operation timed out */
#define TFTP_TIMEOUT_MAX   50
#define TFTP_TIMEOUT_PERIOD   5
#define TFTP_TOOLARGE   12 /* file is larger than buffer */
#define th_block   th_u.tu_block
#define th_code   th_u.tu_code
#define th_msg   th_data
#define th_stuff   th_u.tu_stuff
#define WRQ   02 /* write request */

portTASK_FUNCTION_PROTO ( vBasicTFTPServer  ,
pvParameters   
)