⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 net_tftpc.h

📁 MIPS YAMON, a famous monitor inc. source, make file and PDF manuals.
💻 H
📖 第 1 页 / 共 2 页
字号:
 *                          NET_TFTPC_init *  Description : *  ------------- *  Initialize the TFTPC module. * * *  Parameters : *  ------------ *  - * * *  Return values : *  --------------- *  'OK'(=0), successfull initialization * ************************************************************************/UINT32 NET_TFTPC_init( void ) ;/************************************************************************ * *                          NET_TFTPC_open *  Description : *  ------------- *  Allocate a TFTPC-SAP and register user context. * * *  Parameters : *  ------------ *  'ip_adr',          IN,    destination ip address (BE) *  'filename',        IN,    filename to read *  'sp_hd',           OUT,   handle of TFTPC to be used by user by call *                            of 'read', 'readbyte' or 'close' * *  Return values : *  --------------- *  'ERROR_NET_TFTPC_FATAL_STATE'      A fatal state has been detected in TFTPC. *  'ERROR_NET_TFTPC_NOT_INITIALIZED'  TFTPC-'init' has not been called. *  'OK'(=0), * * ************************************************************************/UINT32 NET_TFTPC_open( UINT32     ip_adr,    /* destination ip address (BE) */                       UINT8      *filename, /* filename to read            */                       UINT32     *sp_hd ) ; /* file session handle         *//************************************************************************ * *                          NET_TFTPC_close *  Description : *  ------------- *  Close  TFTPC-SAP. * * *  Parameters : *  ------------ *  - * * *  Return values : *  --------------- *  'OK'(=0),                TFTPC SAP has been closed * * ************************************************************************/UINT32 NET_TFTPC_close( UINT32 sp_hd ) ;/************************************************************************ * *                          NET_TFTPC_read *  Description : *  ------------- *  Read block data. * * *  Parameters : *  ------------ *  - * * *  Return values : *  --------------- *  'OK'(=0),               Data has been read. * * ************************************************************************/UINT32 NET_TFTPC_read( UINT32 sp_hd,                       UINT32 *length,                       UINT8  *data ) ;/************************************************************************ * *                          NET_TFTPC_readbyte *  Description : *  ------------- *  Read one byte of received data. * * *  Parameters : *  ------------ *  - * * *  Return values : *  --------------- *  'OK'(=0),               Byte has been read. * * ************************************************************************/UINT32 NET_TFTPC_readbyte( UINT32 sp_hd,                           UINT8  *byte ) ;/************************************************************************ * *                          NET_TFTPC_file_read *  Description : *  ------------- *  Read file ('filename') of host('ipadr') into 'buffer' * * *  Parameters : *  ------------ *  'ip_adr',          IN,    TFTP server host ip address (BE) *  'filename',        IN,    name of file to read *  'buffer',          IN,    pointer to buffer to write *  'size',            IN,    pointer to size of buffer *  'poll',            IN,    pointer to poll function to do be called *                            during file transfer * * *  Return values : *  --------------- *  'OK'(=0),                 File has been read. * * ************************************************************************/UINT32 NET_TFTPC_file_read( UINT32 ipadr,                             UINT8  *filename,                            UINT8  *buffer,                            UINT32 *size,                            UINT32 (*poll)(void) ) ;/************************************************************************ * *                          NET_TFTPC_file_write *  Description : *  ------------- *  Write 'buffer' into file('filename') of host('ipadr') * * *  Parameters : *  ------------ *  'ip_adr',          IN,    TFTP server host ip address (BE) *  'filename',        IN,    name of file to write *  'buffer',          IN,    pointer to buffer to read into file *  'size',            IN,    pointer to size of buffer *  'poll',            IN,    pointer to poll function to do be called *                            during file transfer * * *  Return values : *  --------------- *  'OK'(=0),                 Buffer has been written. * * ************************************************************************/UINT32 NET_TFTPC_file_write( UINT32 ipadr,                              UINT8  *filename,                             UINT8  *buffer,                             UINT32 *size,                             UINT32 (*poll)(void) ) ;/************************************************************************ * *                          NET_TFTPC_poll *  Description : *  ------------- *  Do timer managemnt of TFTPC-SAP's. or inquire state * * *  Parameters : *  ------------ *  - * * *  Return values : *  --------------- *  'OK'(=0),                 * * ************************************************************************/UINT32 NET_TFTPC_poll( UINT32 *state, UINT32 *last_io_compl, UINT32 *cause ) ;#endif /* #ifndef NET_TFTPC_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -