27 #ifndef _M2MB_PROFILE_H_ 28 #define _M2MB_PROFILE_H_ 34 #define M2M_PROFILE_DBG_PRINT(...) 91 #define DEFAULT_TCP_SERVER 1 92 #define DEFAULT_TCP_CLIENT 2 93 #define DEFAULT_UDP_SOCKET 3 95 #define M2M_HTTPD_PROFILE_ENABLE 862 #ifdef M2M_HTTPD_PROFILE_ENABLE
M2MB_POWER_SAVE_CFG_T power_save
UINT16 httpc_max_body_len
UINT32 slow_scan_interval
Socket IPv4/IPv6 Internet address union.
UINT16 l3_retry_time_delay
struct M2MB_RETRY_CFG_S M2MB_RETRY_CFG_T
Debug module configuration context.
struct M2MB_HTTPC_CGF_S M2MB_HTTPC_CFG_ARRAY_T
HTTP client cfg structure.
struct M2MB_UDP_CFG_S M2MB_UDP_CFG_T
UDP cfg structure.
struct M2MB_SYSTEM_CFG_S M2MB_SYSTEM_CFG_T
System cfg structure.
M2MB_STATUS_T(* M2MB_PROFILE_APPLY_CB_T)(UINT8 device_id, M2MB_PROFILE_EVENT_T event, M2MB_STATUS_T status, VOID *pData)
Profile apply callback prototype.
M2MB_DNS_HOST_CFG_T cfg[]
M2MB_DNS_HOST_CFG_ARRAY_T * pDNSHost
UINT32 inactivity_ap_period
struct M2MB_PROFILE_GPIO_CFG_S M2MB_PROFILE_GPIO_CFG_T
UINT32 force_scan_interval
struct M2MB_HTTPD_PROFILE_S M2MB_HTTPD_PROFILE_T
HTTP Server Profile cfg structure.
M2MB_RETRY_CFG_T ncm_retry_cfg
M2MB_PROFILE_GPIO_CFG_T gpio_cfg[]
struct M2MB_PROFILE_DBG_CFG_S M2MB_PROFILE_DBG_CFG_T
Debug configuration structure.
M2MB_PROFILE_XFP_CFG_T xfp_cfg
struct M2MB_WLAN_STA_CFG_ARRAY_S M2MB_WLAN_STA_CFG_ARRAY_T
Array of WLAN STATION configuration structure.
UINT8 * m2mb_profile_event_str[]
M2MB_PROFILE_DBG_CFG_T dbg_cfg
struct M2MB_AP_CFG_S M2MB_AP_CFG_T
AP cfg structure.
M2MB_PROFILE_UART_CFG_T * pCfg
UINT16 httpc_max_header_len
struct M2MB_PROFILE_GPIO_CFG_ARRAY_S M2MB_PROFILE_GPIO_CFG_ARRAY_T
GPIO cfg structure for the system.
M2MB_PROFILE_EVENT_T event
INT32 m2mb_profile_tcp_soc_init(M2MB_T_CFG_T *t_cfg)
m2mb_profile_tcp_soc_init is called to apply the profile related to TCP.
M2MB_PROFILE_UART_CFG_T uart[2]
struct M2MB_SNTP_CFG_S M2MB_SNTP_CFG_T
SNTP client cfg structure.
struct M2MB_POWER_SAVE_CFG_S M2MB_POWER_SAVE_CFG_T
M2MB_HTTPD_PROFILE_URI_CFG_ARRAY_T * pURI
struct M2MB_T_CFG_S M2MB_T_CFG_T
TCP cfg structure.
struct M2MB_PROFILE_XFP_CFG_S M2MB_PROFILE_XFP_CFG_T
XFP configuration structure.
struct M2MB_HTTPD_PROFILE_URI_CFG_ARRAY_S M2MB_HTTPD_PROFILE_URI_CFG_ARRAY_T
HTTP Server URI config structure.
TCP cfg structure for the system.
UINT32 fast_scan_duration
struct M2MB_STA_CFG_S M2MB_STA_CFG_T
STA cfg structure.
M2MB_MDNS_HOST_CFG_T host
INT32 m2mb_profile_apply(const M2MB_SYSTEM_CFG_T *pCfg, M2MB_PROFILE_APPLY_CB_T cb)
m2mb_profile_apply is called to apply the profile.
UINT32 fast_scan_interval
struct M2MB_DHCP_SRV_CFG_S M2MB_DHCP_SRV_CFG_T
DHCP server cfg structure.
struct M2MB_MDNS_SERVICE_CFG_S M2MB_MDNS_SERVICE_CFG_T
MDNS service cfg structure.
M2MB_WLAN_STA_CFG_T wlan[1]
XFP configuration structure.
M2MB_PROFILE_GPIO_CFG_ARRAY_T * gpio
struct M2MB_HTTPD_PROFILE_CFG_S M2MB_HTTPD_PROFILE_CFG_T
HTTP Server cfg structure.
M2MB_PROFILE_EVENT
Profile event enumeration.
struct M2MB_PROFILE_UART_CB M2MB_PROFILE_UART_CB_T
UART read and write callback data structure.
UINT16 l4_retry_time_delay
struct M2M_PROFILE_STA_SET_RESULT_S M2M_PROFILE_STA_SET_RESULT_T
STA structure used in user callback to update the status of STA initialization.
UINT16 rssi_low_threshold
struct M2MB_EAP_CONF_S M2MB_EAP_CONF_T
UDP cfg structure for the system.
struct M2MB_PROFILE_SOC_RESULT M2MB_PROFILE_SOC_RESULT_T
Socket for UDP & TCP initialization result.
HTTP Server Profile cfg structure.
STA structure used in user callback to update the status of STA initialization.
struct M2MB_DNS_HOST_CFG_S M2MB_DNS_HOST_CFG_T
DNS host cfg structure.
UINT16 l2_retry_time_delay
Array of DNS host cfg structure.
struct M2MB_DNS_HOST_CFG_ARRAY_S M2MB_DNS_HOST_CFG_ARRAY_T
Array of DNS host cfg structure.
UINT16 rssi_high_threshold
UART initialization result.
BLE driver functionality.
struct M2MB_HTTPD_PROFILE_URI_INFO_S M2MB_HTTPD_PROFILE_URI_INFO_T
HTTP Server URI info structure.
MDNS service cfg structure.
M2MB_WLAN_STA_CFG_ARRAY_T * pWlan
struct M2MB_PROFILE_UART_OPEN_CB M2MB_PROFILE_UART_OPEN_CB_T
UART initialization result.
struct M2MB_T_CFG_ARRAY_S M2MB_TCP_CFG_ARRAY_T
TCP cfg structure for the system.
M2MB_HTTPD_PROFILE_CFG_T cfg
M2MB_ROAMING_CFG_T roaming
M2MB_TCP_CFG_ARRAY_T * pTcp
HTTP Server cfg structure.
M2MB_HTTPD_PROFILE_URI_INFO_T info[]
Debug configuration structure.
struct M2MB_PROFILE_SOC_RESULT * next
M2MB_HTTPD_PROFILE_T httpd
UART configuration structure.
M2MB_MDNS_SERVICE_CFG_ARRAY_T * pService
Json complex object structure.
Structure for all BLE configuration parameters.
Socket for UDP & TCP initialization result.
struct M2MB_STA_SCAN_CFG_S M2MB_STA_SCAN_CFG_T
STA scan cfg structure.
enum M2MB_PROFILE_EVENT M2MB_PROFILE_EVENT_T
Profile event enumeration.
M2MB_UDP_CFG_ARRAY_T * pUdp
struct M2M_PROFILE_AP_SET_RESULT_S M2M_PROFILE_AP_SET_RESULT_T
AP structure used in user callback to update the status of AP initialization.
DHCP server cfg structure.
struct M2MB_MDNS_SERVICE_CFG_ARRAY_S M2MB_MDNS_SERVICE_CFG_ARRAY_T
unsigned long long UINT64
HTTP Server URI config structure.
char * m2mb_get_profile_event_string(M2MB_PROFILE_EVENT_T event)
struct M2MB_UDP_CFG_ARRAY_S M2MB_UDP_CFG_ARRAY_T
UDP cfg structure for the system.
struct M2MB_MDNS_HOST_CFG_S M2MB_MDNS_HOST_CFG_T
MDNS host cfg structure.
HTTP client cfg structure.
UART read and write callback data structure.
Array of WLAN STATION configuration structure.
struct M2M_IP_CFG_S M2MB_IP_CFG_T
IP cfg structure.
struct M2MB_ROAMING_CFG_S M2MB_ROAMING_CFG_T
Roaming cfg structure.
INT32 m2mb_profile_udp_soc_init(M2MB_UDP_CFG_T *udp_cfg)
m2mb_profile_udp_soc_init is called to apply the profile related to UDP.
struct M2MB_MDNS_CFG_S M2MB_MDNS_CFG_T
MDNS cfg structure.
GPIO cfg structure for the system.
AP structure used in user callback to update the status of AP initialization.
struct M2MB_PROFILE_UART_CFG M2MB_PROFILE_UART_CFG_T
UART configuration structure.
const M2MB_JSON_COMPLEX_OBJ_T system_schema
struct M2MB_WLAN_STA_CFG_S M2MB_WLAN_STA_CFG_T
WLAN sta structure.
SNTP client cfg structure.
struct M2MB_AP_WLAN_CFG_S M2MB_AP_WLAN_CFG_T
AP WLAN cfg structure.
M2MB_MDNS_SERVICE_CFG_T cfg[]
HTTP Server URI info structure.