Portable interface#
Functions#
Delay ms.
Dump buffer.
FTP get global IP address.
FTP Init.
FTP network is connected.
FTP Close.
TFTP Delay ms.
Define SL_TFTP_DEBUG.
TFTP get global IP address.
TFTP network is connected.
TFTP Close.
Free address.
Get UDP address structure.
TFTP Receive messages on a UDP socket.
TFTP Send a message on a UDP socket.
TFTP udp socket create.
Macros#
FTP debug macro function.
FTP error value.
FTP invalid socket ID.
FTP Localhost string.
TFTP error value (alias)
TFTP invalid socket ID (alias)
TFTP Localhost string (alias)
Function Documentation#
sl_ftp_delay_ms#
void sl_ftp_delay_ms (const uint32_t delay_ms)
Delay ms.
N/A | delay_ms | Milliseconds |
Portable function
120
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_ftp_dump_buff#
void sl_ftp_dump_buff (const uint8_t *const data_ptr, const uint16_t data_size)
Dump buffer.
[in] | data_ptr | Data ptr |
[in] | data_size | Data size |
Util function to dump buffer in hex format
113
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_ftp_get_global_addr#
const char * sl_ftp_get_global_addr (void )
FTP get global IP address.
N/A |
Portable function Returns
Global address string representation
134
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_ftp_init#
void sl_ftp_init (void )
FTP Init.
N/A |
Initialize FTP service
105
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_ftp_is_network_connected#
bool sl_ftp_is_network_connected (void )
FTP network is connected.
N/A |
Portable function Returns
true if network is connected, otherwise false
127
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_ftp_socket_close#
int32_t sl_ftp_socket_close (int32_t sockid)
FTP Close.
N/A | sockid | Socket ID |
Portable function Returns
int32_t Closed socket ID on success, -1 on error
142
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_delay_ms#
__STATIC_INLINE void sl_tftp_delay_ms (const uint32_t delay_ms)
TFTP Delay ms.
N/A | delay_ms | Milliseconds |
Alias function
211
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_dump_buff#
__STATIC_INLINE void sl_tftp_dump_buff (const uint8_t *const data_ptr, const uint16_t data_size)
Define SL_TFTP_DEBUG.
[in] | data_ptr | Data ptr |
[in] | data_size | Data size |
TFTP Dump buffer
Alias function
201
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_get_global_addr#
__STATIC_INLINE const char * sl_tftp_get_global_addr (void )
TFTP get global IP address.
N/A |
Portable function Returns
Global address string representation
231
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_is_network_connected#
__STATIC_INLINE bool sl_tftp_is_network_connected (void )
TFTP network is connected.
N/A |
Alias function Returns
true if network is connected, otherwise false
221
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_socket_close#
__STATIC_INLINE int32_t sl_tftp_socket_close (int32_t sockid)
TFTP Close.
N/A | sockid | Socket ID |
Alias function Returns
int32_t Closed socket ID on success, -1 on error
242
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_udp_free_addr#
void sl_tftp_udp_free_addr (void * addr)
Free address.
[in] | addr | Address structure |
Release the allocated address strcutre
291
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_udp_get_addr#
void * sl_tftp_udp_get_addr (const char * host, uint16_t port)
Get UDP address structure.
[in] | host | Host string |
[in] | port | Port |
Allocate address structue and set host address and port Returns
void * Address structure
283
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_udp_recvfrom#
int32_t sl_tftp_udp_recvfrom (int32_t sockid, void * buff, uint32_t len, void * src_addr)
TFTP Receive messages on a UDP socket.
[in] | sockid | socket id |
[out] | buff | destination buffer ptr |
[in] | len | length of data to read |
[out] | src_addr | Source address |
Receives data on a socket whether or not it is connection-oriented. Returns
return the number of bytes received, or -1 if an error occurred
274
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_udp_sendto#
int32_t sl_tftp_udp_sendto (int32_t sockid, const void * buff, uint32_t len, const void * dest_addr)
TFTP Send a message on a UDP socket.
[in] | sockid | socket ID |
[in] | buff | buffer pointer to send |
[in] | len | length of data to send |
[in] | dest_addr | destination address ptr, the structure must be prepared for UDP sockets |
Preferred in datagram mode (UDP). Returns
On success, these calls return the number of bytes sent. On error, -1 is returned
263
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
sl_tftp_udp_socket_create#
int32_t sl_tftp_udp_socket_create (void )
TFTP udp socket create.
N/A |
Portable function Returns
int32_t Socket ID
252
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
Macro Definition Documentation#
sl_ftp_debug#
#define sl_ftp_debugValue:
(format, ...)
FTP debug macro function.
72
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
SL_FTP_ERROR#
#define SL_FTP_ERRORValue:
SL_FTP_INVALID_SOCKID
FTP error value.
83
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
SL_FTP_INVALID_SOCKID#
#define SL_FTP_INVALID_SOCKIDValue:
(-1)
FTP invalid socket ID.
80
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
SL_FTP_LOCAL_HOST_STR#
#define SL_FTP_LOCAL_HOST_STRValue:
"::"
FTP Localhost string.
77
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
SL_TFTP_ERROR#
#define SL_TFTP_ERRORValue:
SL_FTP_ERROR
TFTP error value (alias)
94
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
SL_TFTP_INVALID_SOCKID#
#define SL_TFTP_INVALID_SOCKIDValue:
SL_FTP_INVALID_SOCKID
TFTP invalid socket ID (alias)
91
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h
SL_TFTP_LOCAL_HOST_STR#
#define SL_TFTP_LOCAL_HOST_STRValue:
SL_FTP_LOCAL_HOST_STR
TFTP Localhost string (alias)
88
of file /mnt/raid/workspaces/ws.obQFDUprC/overlay/gsdk/app/wisun/component/ftp/sl_ftp.h