![]() |
RAFW Flexible Software Package Documentation
Release v2.0.1
|
|
Functions | |
| fsp_err_t | app_dpm_get_sleep_flag (UINT8 *p_flag) |
| Retrieves the flag indicating whether the API to enter or exit DPM. More... | |
| fsp_err_t | app_dpm_set_sleep_flag (UINT8 _flag) |
| Sets the flag indicating whether the system should enter or exit DPM. More... | |
| fsp_err_t | app_dpm_info_get (char *_name, app_dpm_info_rtm **rtm_info) |
| Get if exist or allocate if not exist the RTM resource for Server apps. More... | |
| fsp_err_t | app_dpm_get_client_socket_port (UINT32 *p_port) |
| Get the saved client' binding port from app_dpm_info_rtm struct. More... | |
| fsp_err_t | app_dpm_set_send_pub_flag (UINT8 _flag) |
| Set the flag whether device publish to server or not. More... | |
| fsp_err_t | app_dpm_get_send_pub_flag (UINT8 *p_flag) |
| Get the flag whether device publish to server or not. More... | |
| fsp_err_t | app_dpm_set_wait_job_next_flag (UINT8 _flag) |
| Set the flag whether device need to wait the flag for next job or not. More... | |
| fsp_err_t | app_dpm_get_wait_job_next_flag (UINT8 *p_flag) |
| Get the flag whether device need to wait the flag for next job or not. More... | |
| fsp_err_t | app_get_peer_ip_str (char **p_ipStr) |
| Get the IP string of server to connect. More... | |
| fsp_err_t | app_get_random_local_port (UINT32 *p_port) |
| Retrieves a randomly generated local port number for socket binding. More... | |
| fsp_err_t | app_get_count_of_reconnection (UINT32 *p_count) |
| Get the number of reconnection attempts on DPM wakeup mode. More... | |
| fsp_err_t | app_socket_set_port_n_filter (UINT32 _defLocalPort) |
| Register a binded local port for DPM mode and set port filter for DPM wakeup. More... | |
| fsp_err_t | app_set_persistent_session (UINT8 _value) |
| Set the flag depending on whether the persistent session exists or not. More... | |
| fsp_err_t | app_is_persistent_session (UINT8 *p_value) |
| Retrieves the flag indicating whether a persistent session is enabled. More... | |
| fsp_err_t | app_is_reconnected (UINT8 *p_value) |
| Get the flag whether reconnection happened or not. More... | |
| fsp_err_t | app_set_reconnect_flag (UINT8 _value) |
| Set the reconnection flag to the input paramter. More... | |
| fsp_err_t | app_dpm_get_recv_timeout_flag (UINT8 *p_value) |
| Get the receive timeout flag. More... | |
| fsp_err_t | app_dpm_set_recv_timeout_flag (UINT8 _value) |
| Set the receive timeout flag to the input paramter. More... | |
| fsp_err_t | app_dpm_get_unknown_uc_flag (UINT8 *p_value) |
| Get the unknown UC flag. More... | |
| fsp_err_t | app_dpm_set_unknown_uc_flag (UINT8 _value) |
| Set the unknown UC flag to the input paramter. More... | |
| fsp_err_t | app_set_ka_value (UINT16 _kaVal) |
| Set the keepalive time interval for connection peer to the input parmeter by seconds. More... | |
| fsp_err_t | app_get_ka_value (UINT16 *p_kaVal) |
| Get the keepalive time interval for communication with peer. More... | |
| fsp_err_t | app_dpm_set_rcv_ready (void) |
| Notify the DPM module that the receiver is ready after DPM wakeup. More... | |
| fsp_err_t | persistant_read_callback_set (persistant_storage_read_cb_t cb) |
| set read callback function to get server IP Address from nvram More... | |
| fsp_err_t | persistant_write_callback_set (persistant_storage_write_cb_t cb) |
| set write callback function to set server IP Address to nvram More... | |
| fsp_err_t | awsiot_app_print_elapse_time_ms (const char *fmt,...) |
| Check passed time. More... | |
Interface for accessing AWS_LWIP_SOCK_WRAP_W Storage.
This section defines the API for the AWS_LWIP_SOCK_WRAP_W ( Networking) Module. The AWS_LWIP_SOCK_WRAP_W Module provides interface to control, access, write to lwIP .
Data Structures | |
| struct | app_dpm_info_rtm |
| data used to save persistent information on RTM for platform More... | |
| struct | InternalRTM |
| internal used RTM structure More... | |
| struct | dpmAppThreadInfo |
| structure for DPM App thread More... | |
Enumerations | |
| enum | APPSleepMode |
| Sleep mode enum. More... | |
| enum | APPTimerMode |
| The mode types of KA or RTC wakeup timer. More... | |
| struct app_dpm_info_rtm |
data used to save persistent information on RTM for platform
| struct InternalRTM |
| struct dpmAppThreadInfo |
structure for DPM App thread
| enum APPSleepMode |
| enum APPTimerMode |
The mode types of KA or RTC wakeup timer.
Enumeration structure for wakeup timer mode
| fsp_err_t app_dpm_get_sleep_flag | ( | UINT8 * | p_flag | ) |
Retrieves the flag indicating whether the API to enter or exit DPM.
| [out] | p_flag | Pointer to a variable where the current DPM flag value will be stored. |
| fsp_err_t app_dpm_set_sleep_flag | ( | UINT8 | _flag | ) |
Sets the flag indicating whether the system should enter or exit DPM.
| [in] | _flag | go DPM (1) or exit DPM (0) |
| fsp_err_t app_dpm_info_get | ( | char * | _name, |
| app_dpm_info_rtm ** | rtm_info | ||
| ) |
Get if exist or allocate if not exist the RTM resource for Server apps.
| [in,out] | rtm_info | Pointer to store the address of the retrieved or newly allocated RTM resource |
| [in] | _name | if null passed, _name will be assigned as predefined name |
| fsp_err_t app_dpm_get_client_socket_port | ( | UINT32 * | p_port | ) |
Get the saved client' binding port from app_dpm_info_rtm struct.
| [out] | p_port | Pointer to a variable where the retrieved client binding port number will be stored. |
| fsp_err_t app_dpm_set_send_pub_flag | ( | UINT8 | _flag | ) |
Set the flag whether device publish to server or not.
| [in] | _flag | 1(increase) or 0(decrease) |
| fsp_err_t app_dpm_get_send_pub_flag | ( | UINT8 * | p_flag | ) |
Get the flag whether device publish to server or not.
| [out] | p_flag | Pointer to a variable where the publish flag will be stored.
|
| fsp_err_t app_dpm_set_wait_job_next_flag | ( | UINT8 | _flag | ) |
Set the flag whether device need to wait the flag for next job or not.
| [in] | _flag | 1 or 0 |
| fsp_err_t app_dpm_get_wait_job_next_flag | ( | UINT8 * | p_flag | ) |
Get the flag whether device need to wait the flag for next job or not.
| [out] | p_flag | Pointer to a variable where the wait flag will be stored.
|
| fsp_err_t app_get_peer_ip_str | ( | char ** | p_ipStr | ) |
Get the IP string of server to connect.
| [out] | p_ipStr | Pointer to a variable that will receive the address of the server IP string. |
| fsp_err_t app_get_random_local_port | ( | UINT32 * | p_port | ) |
Retrieves a randomly generated local port number for socket binding.
| [out] | p_port | Pointer to a variable where the generated local port number will be stored. |
| fsp_err_t app_get_count_of_reconnection | ( | UINT32 * | p_count | ) |
Get the number of reconnection attempts on DPM wakeup mode.
| [out] | p_count | Pointer to a variable where the reconnection attempt count will be stored. |
| fsp_err_t app_socket_set_port_n_filter | ( | UINT32 | _defLocalPort | ) |
Register a binded local port for DPM mode and set port filter for DPM wakeup.
| [in] | _defLocalPort | port number for registration |
| fsp_err_t app_set_persistent_session | ( | UINT8 | _value | ) |
Set the flag depending on whether the persistent session exists or not.
| [in] | _value | 1 or 0 |
| fsp_err_t app_is_persistent_session | ( | UINT8 * | p_value | ) |
Retrieves the flag indicating whether a persistent session is enabled.
| [out] | p_value | Pointer to a variable where the persistent session flag will be stored.
|
| fsp_err_t app_is_reconnected | ( | UINT8 * | p_value | ) |
Get the flag whether reconnection happened or not.
| [out] | p_value | Pointer to a variable where the reconnection flag will be stored.
|
| fsp_err_t app_set_reconnect_flag | ( | UINT8 | _value | ) |
Set the reconnection flag to the input paramter.
| [in] | _value | true or false |
| fsp_err_t app_dpm_get_recv_timeout_flag | ( | UINT8 * | p_value | ) |
Get the receive timeout flag.
| fsp_err_t app_dpm_set_recv_timeout_flag | ( | UINT8 | _value | ) |
Set the receive timeout flag to the input paramter.
| [in] | _value | Receive timeout flag value. Possible values:
|
| fsp_err_t app_dpm_get_unknown_uc_flag | ( | UINT8 * | p_value | ) |
Get the unknown UC flag.
| [out] | p_value | Pointer to a variable where the unknown UC flag will be stored.
|
| fsp_err_t app_dpm_set_unknown_uc_flag | ( | UINT8 | _value | ) |
Set the unknown UC flag to the input paramter.
| [in] | _value | 1 or 0 |
| fsp_err_t app_set_ka_value | ( | UINT16 | _kaVal | ) |
Set the keepalive time interval for connection peer to the input parmeter by seconds.
| [in] | _kaVal | keepalive time interval by seconds |
| fsp_err_t app_get_ka_value | ( | UINT16 * | p_kaVal | ) |
Get the keepalive time interval for communication with peer.
| [out] | p_kaVal | Pointer to a UINT16 variable where the keepalive interval (in seconds) will be stored. |
| fsp_err_t app_dpm_set_rcv_ready | ( | void | ) |
Notify the DPM module that the receiver is ready after DPM wakeup.
| FSP_SUCCESS | Notification sent successfully. |
| FSP_ERR_FAILURE | Failed to notify the DPM module. |
| fsp_err_t persistant_read_callback_set | ( | persistant_storage_read_cb_t | cb | ) |
set read callback function to get server IP Address from nvram
| [in] | cb | callback function |
| fsp_err_t persistant_write_callback_set | ( | persistant_storage_write_cb_t | cb | ) |
set write callback function to set server IP Address to nvram
| [in] | cb | callback function |
| fsp_err_t awsiot_app_print_elapse_time_ms | ( | const char * | fmt, |
| ... | |||
| ) |
Check passed time.
| [in] | fmt | formatted string for debug |