WE310F5  39.00.000
m2mb_profile.h File Reference

This file contains the public APIs and structures of m2m profile. More...

#include "m2mb_ble_driver.h"

Go to the source code of this file.

Data Structures

struct  M2MB_WLAN_STA_CFG_S
 WLAN sta structure. More...
 
struct  M2MB_WLAN_STA_CFG_ARRAY_S
 Array of WLAN STATION configuration structure. More...
 
struct  M2M_IP_CFG_S
 IP cfg structure. More...
 
struct  M2MB_STA_SCAN_CFG_S
 STA scan cfg structure. More...
 
struct  M2MB_ROAMING_CFG_S
 Roaming cfg structure. More...
 
struct  M2MB_POWER_SAVE_CFG_S
 
struct  M2MB_EAP_CONF_S
 
struct  M2MB_STA_CFG_S
 STA cfg structure. More...
 
struct  M2M_PROFILE_STA_SET_RESULT_S
 STA structure used in user callback to update the status of STA initialization. More...
 
struct  M2MB_AP_WLAN_CFG_S
 AP WLAN cfg structure. More...
 
struct  M2MB_DHCP_SRV_CFG_S
 DHCP server cfg structure. More...
 
struct  M2MB_AP_CFG_S
 AP cfg structure. More...
 
struct  M2M_PROFILE_AP_SET_RESULT_S
 AP structure used in user callback to update the status of AP initialization. More...
 
struct  M2MB_DNS_HOST_CFG_S
 DNS host cfg structure. More...
 
struct  M2MB_DNS_HOST_CFG_ARRAY_S
 Array of DNS host cfg structure. More...
 
struct  M2MB_MDNS_HOST_CFG_S
 MDNS host cfg structure. More...
 
struct  M2MB_MDNS_SERVICE_CFG_S
 MDNS service cfg structure. More...
 
struct  M2MB_MDNS_SERVICE_CFG_ARRAY_S
 
struct  M2MB_MDNS_CFG_S
 MDNS cfg structure. More...
 
struct  M2MB_UDP_CFG_S
 UDP cfg structure. More...
 
struct  M2MB_UDP_CFG_ARRAY_S
 UDP cfg structure for the system. More...
 
struct  M2MB_PROFILE_SOC_RESULT
 Socket for UDP & TCP initialization result. More...
 
struct  M2MB_T_CFG_S
 TCP cfg structure. More...
 
struct  M2MB_T_CFG_ARRAY_S
 TCP cfg structure for the system. More...
 
struct  M2MB_PROFILE_UART_CFG
 UART configuration structure. More...
 
struct  M2MB_PROFILE_UART_OPEN_CB
 UART initialization result. More...
 
struct  M2MB_PROFILE_UART_CB
 UART read and write callback data structure. More...
 
struct  M2MB_PROFILE_DBG_CFG_S
 Debug configuration structure. More...
 
struct  M2MB_PROFILE_XFP_CFG_S
 XFP configuration structure. More...
 
struct  M2MB_HTTPC_CGF_S
 HTTP client cfg structure. More...
 
struct  M2MB_HTTPD_PROFILE_CFG_S
 HTTP Server cfg structure. More...
 
struct  M2MB_HTTPD_PROFILE_URI_INFO_S
 HTTP Server URI info structure. More...
 
struct  M2MB_HTTPD_PROFILE_URI_CFG_ARRAY_S
 HTTP Server URI config structure. More...
 
struct  M2MB_HTTPD_PROFILE_S
 HTTP Server Profile cfg structure. More...
 
struct  M2MB_SNTP_CFG_S
 SNTP client cfg structure. More...
 
struct  M2MB_RETRY_CFG_S
 
struct  M2MB_PROFILE_GPIO_CFG_S
 
struct  M2MB_PROFILE_GPIO_CFG_ARRAY_S
 GPIO cfg structure for the system. More...
 
struct  M2MB_SYSTEM_CFG_S
 System cfg structure. More...
 

Macros

#define M2M_PROFILE_DBG_PRINT(...)
 
#define DEFAULT_TCP_SERVER   1
 
#define DEFAULT_TCP_CLIENT   2
 
#define DEFAULT_UDP_SOCKET   3
 
#define M2M_HTTPD_PROFILE_ENABLE
 
enum  M2MB_PROFILE_EVENT {
  M2MB_PROFILE_DRV_UART_INIT_DONE,
  M2MB_PROFILE_UART0_READ_CB,
  M2MB_PROFILE_UART0_WRITE_CB,
  M2MB_PROFILE_UART1_READ_CB,
  M2MB_PROFILE_UART1_WRITE_CB,
  M2MB_PROFILE_DBG_INIT_DONE,
  M2MB_PROFILE_XFP_INIT_DONE,
  M2MB_PROFILE_EVENT_AP_MODE_SET,
  M2MB_PROFILE_EVENT_STA_MODE_SET,
  M2MB_PROFILE_EVENT_DNS_SET,
  M2MB_PROFILE_EVENT_mDNS_HOSTNAME_SET,
  M2MB_PROFILE_EVENT_mDNS_SRV_REG_SET,
  M2MB_PROFILE_EVENT_UDP_CFG_SET,
  M2MB_PROFILE_EVENT_TCP_CFG_SET,
  M2MB_PROFILE_EVENT_SNTP_INIT_DONE,
  M2MB_PROFILE_EVENT_SNTP_SYNC_DONE,
  M2MB_PROFILE_EVENT_INIT_DONE
}
 Profile event enumeration. More...
 
typedef enum M2MB_PROFILE_EVENT M2MB_PROFILE_EVENT_T
 Profile event enumeration. More...
 
typedef 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. More...
 
typedef struct M2MB_WLAN_STA_CFG_S M2MB_WLAN_STA_CFG_T
 WLAN sta structure. More...
 
typedef struct M2MB_WLAN_STA_CFG_ARRAY_S M2MB_WLAN_STA_CFG_ARRAY_T
 Array of WLAN STATION configuration structure. More...
 
typedef struct M2M_IP_CFG_S M2MB_IP_CFG_T
 IP cfg structure. More...
 
typedef struct M2MB_STA_SCAN_CFG_S M2MB_STA_SCAN_CFG_T
 STA scan cfg structure. More...
 
typedef struct M2MB_ROAMING_CFG_S M2MB_ROAMING_CFG_T
 Roaming cfg structure. More...
 
typedef struct M2MB_POWER_SAVE_CFG_S M2MB_POWER_SAVE_CFG_T
 
typedef struct M2MB_EAP_CONF_S M2MB_EAP_CONF_T
 
typedef struct M2MB_STA_CFG_S M2MB_STA_CFG_T
 STA cfg structure. More...
 
typedef 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. More...
 
typedef struct M2MB_AP_WLAN_CFG_S M2MB_AP_WLAN_CFG_T
 AP WLAN cfg structure. More...
 
typedef struct M2MB_DHCP_SRV_CFG_S M2MB_DHCP_SRV_CFG_T
 DHCP server cfg structure. More...
 
typedef struct M2MB_AP_CFG_S M2MB_AP_CFG_T
 AP cfg structure. More...
 
typedef 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. More...
 
typedef struct M2MB_DNS_HOST_CFG_S M2MB_DNS_HOST_CFG_T
 DNS host cfg structure. More...
 
typedef struct M2MB_DNS_HOST_CFG_ARRAY_S M2MB_DNS_HOST_CFG_ARRAY_T
 Array of DNS host cfg structure. More...
 
typedef struct M2MB_MDNS_HOST_CFG_S M2MB_MDNS_HOST_CFG_T
 MDNS host cfg structure. More...
 
typedef struct M2MB_MDNS_SERVICE_CFG_S M2MB_MDNS_SERVICE_CFG_T
 MDNS service cfg structure. More...
 
typedef struct M2MB_MDNS_SERVICE_CFG_ARRAY_S M2MB_MDNS_SERVICE_CFG_ARRAY_T
 
typedef struct M2MB_MDNS_CFG_S M2MB_MDNS_CFG_T
 MDNS cfg structure. More...
 
typedef struct M2MB_UDP_CFG_S M2MB_UDP_CFG_T
 UDP cfg structure. More...
 
typedef struct M2MB_UDP_CFG_ARRAY_S M2MB_UDP_CFG_ARRAY_T
 UDP cfg structure for the system. More...
 
typedef struct M2MB_PROFILE_SOC_RESULT M2MB_PROFILE_SOC_RESULT_T
 Socket for UDP & TCP initialization result. More...
 
typedef struct M2MB_T_CFG_S M2MB_T_CFG_T
 TCP cfg structure. More...
 
typedef struct M2MB_T_CFG_ARRAY_S M2MB_TCP_CFG_ARRAY_T
 TCP cfg structure for the system. More...
 
typedef struct M2MB_PROFILE_UART_CFG M2MB_PROFILE_UART_CFG_T
 UART configuration structure. More...
 
typedef struct M2MB_PROFILE_UART_OPEN_CB M2MB_PROFILE_UART_OPEN_CB_T
 UART initialization result. More...
 
typedef struct M2MB_PROFILE_UART_CB M2MB_PROFILE_UART_CB_T
 UART read and write callback data structure. More...
 
typedef struct M2MB_PROFILE_DBG_CFG_S M2MB_PROFILE_DBG_CFG_T
 Debug configuration structure. More...
 
typedef struct M2MB_PROFILE_XFP_CFG_S M2MB_PROFILE_XFP_CFG_T
 XFP configuration structure. More...
 
typedef struct M2MB_HTTPC_CGF_S M2MB_HTTPC_CFG_ARRAY_T
 HTTP client cfg structure. More...
 
typedef struct M2MB_HTTPD_PROFILE_CFG_S M2MB_HTTPD_PROFILE_CFG_T
 HTTP Server cfg structure. More...
 
typedef struct M2MB_HTTPD_PROFILE_URI_INFO_S M2MB_HTTPD_PROFILE_URI_INFO_T
 HTTP Server URI info structure. More...
 
typedef struct M2MB_HTTPD_PROFILE_URI_CFG_ARRAY_S M2MB_HTTPD_PROFILE_URI_CFG_ARRAY_T
 HTTP Server URI config structure. More...
 
typedef struct M2MB_HTTPD_PROFILE_S M2MB_HTTPD_PROFILE_T
 HTTP Server Profile cfg structure. More...
 
typedef struct M2MB_SNTP_CFG_S M2MB_SNTP_CFG_T
 SNTP client cfg structure. More...
 
typedef struct M2MB_RETRY_CFG_S M2MB_RETRY_CFG_T
 
typedef struct M2MB_PROFILE_GPIO_CFG_S M2MB_PROFILE_GPIO_CFG_T
 
typedef struct M2MB_PROFILE_GPIO_CFG_ARRAY_S M2MB_PROFILE_GPIO_CFG_ARRAY_T
 GPIO cfg structure for the system. More...
 
typedef struct M2MB_SYSTEM_CFG_S M2MB_SYSTEM_CFG_T
 System cfg structure. More...
 
UINT8m2mb_profile_event_str []
 
const M2MB_JSON_COMPLEX_OBJ_T system_schema
 
char * m2mb_get_profile_event_string (M2MB_PROFILE_EVENT_T event)
 
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. More...
 
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. More...
 
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. More...
 

Detailed Description

This file contains the public APIs and structures of m2m profile.

we866e4/epl/inc/modules/m2mb_profile.h

This file contains profile API.

Note
<Notes, dependencies mandatory> Dependencies:
"#include m2mb_types.h"
"#include m2mb_status.h"
Author
AV
Date
22/12/2017

Definition in file m2mb_profile.h.

Macro Definition Documentation

◆ M2M_PROFILE_DBG_PRINT

#define M2M_PROFILE_DBG_PRINT (   ...)

Definition at line 34 of file m2mb_profile.h.