WE310F5  39.00.000
m2mb_app_framework.h
Go to the documentation of this file.
1 /*===============================================================================================*/
2 /* >>> Copyright (C) Telit Communications S.p.A. Italy All Rights Reserved. <<< */
25 #ifndef __M2MB_APP_FRAMEWORK_H
26 #define __M2MB_APP_FRAMEWORK_H
27 
44 /*-----------------------------------------------------------------------------------------------*/
49 /* Global declarations ==========================================================================*/
50 
51 /* Global typedefs ==============================================================================*/
52 
53 #define M2MB_AF_MAX_USER_THREAD_SUPPORTED 10
54 #define TEST_START "\r\nEXAMPLE APPLICATION TEST START\r\n"
55 #define TEST_COMPLETE "\r\nEXAMPLE APPLICATION TEST COMPLETE\r\n"
56 #define TEST_COMPLETE_COUNT 5
57 
65 typedef enum M2MB_AF_NWK_EVENT
66 {
71 
79 typedef enum M2MB_AF_DRV_TYPE
80 {
84 
85 
96 typedef VOID (*M2MB_AF_INIT_CB_T)( VOID *user_ctx,
98  M2MB_STATUS_T status,
99  VOID* pData);
100 
112 typedef VOID (*M2MB_AF_DRV_RD_CB_T)( VOID *user_ctx,
113  M2MB_AF_DRV_TYPE_E module_type,
114  VOID* pData,
115  UINT32 len);
116 
124 typedef struct M2MB_AF_NWK_DATA_RECV
125 {
130 
140 typedef VOID (*M2MB_AF_NWK_EV_CB_T)( VOID *user_ctx,
141  UINT32 sd,
143  VOID* pData );
144 
154 typedef struct M2MB_AF_APP_THREAD_S
155 {
161 
169 typedef VOID (*M2MB_AF_THREAD_PROCESS_T)( VOID *user_ctx,
170  M2MB_AF_APP_THREAD_T *pTCtx,
171  VOID* pMsg );
172 
181 {
200 
209 {
213 
221 typedef struct M2MB_AF_USER_CFG_S
222 {
229 
230 /* Global functions ============================================================== */
231 /*-------------------------------------------------------------------------------- */
286 /* ------------------------------------------------------------------------------ */
288 
289 /* ------------------------------------------------------------------------------ */
317 /* ------------------------------------------------------------------------------- */
319 
320 /* ------------------------------------------------------------------------------- */
351 /* ------------------------------------------------------------------------------- */
353 
354 /* ------------------------------------------------------------------------------- */
407 /* ------------------------------------------------------------------------------- */
408 INT32 m2mb_af_start( M2MB_AF_USER_CFG_T *pApp_cfg, const M2MB_SYSTEM_CFG_T *pSystem_cfg );
409 
413 /* ------------------------------------------------------------------------------- */
414 #endif /* __M2MB_APP_FRAMEWORK_H */
M2MB_SOCKET_BSD_SOCKADDR_IN_T * from
M2MB_AF_DRV_RD_CB_T drv_rd
unsigned char UINT8
Definition: m2mb_types.h:86
M2MB_OS_Q_HANDLE pQHandle
System cfg structure.
Definition: m2mb_profile.h:846
VOID(* M2MB_AF_THREAD_PROCESS_T)(VOID *user_ctx, M2MB_AF_APP_THREAD_T *pTCtx, VOID *pMsg)
Application framework thread message processing function prototype.
struct M2MB_OS_Q_HANDLE_TAG * M2MB_OS_Q_HANDLE
Definition: m2mb_os_q.h:108
HANDLE M2MB_OS_TASK_HANDLE
Definition: m2mb_os.h:96
INT32 M2MB_STATUS_T
Definition: m2mb_status.h:97
struct M2MB_AF_APP_THREAD_S M2MB_AF_APP_THREAD_T
APP thread information.
M2MB_OS_TASK_HANDLE thrHandle
VOID(* M2MB_AF_INIT_CB_T)(VOID *user_ctx, M2MB_PROFILE_EVENT_T event, M2MB_STATUS_T status, VOID *pData)
Application framework user init callback function prototype.
VOID m2mb_af_dbg_print(M2MB_SYSTEM_CFG_T *pSystemCfg)
m2mb_af_dbg_print is called to print the Access point SSID and channel information based on WLAN runn...
INT32 m2mb_af_udp_soc_init(M2MB_UDP_CFG_T *udp_cfg)
m2mb_af_udp_soc_init is called to initialize UDP socket creation.
M2MB_AF_NWK_EVENT
Application framework network event.
VOID(* M2MB_AF_DRV_RD_CB_T)(VOID *user_ctx, M2MB_AF_DRV_TYPE_E module_type, VOID *pData, UINT32 len)
Application framework Driver read callback function prototype.
VOID(* M2MB_AF_NWK_EV_CB_T)(VOID *user_ctx, UINT32 sd, M2MB_AF_NWK_EVENT_E ev, VOID *pData)
Application framework Network event callback function prototype.
Application framework thread details structure.
void VOID
Definition: m2mb_types.h:74
M2MB_AF_THREAD_PROCESS_T process_api
enum M2MB_AF_DRV_TYPE M2MB_AF_DRV_TYPE_E
Application framework driver type.
M2MB_AF_NWK_EV_CB_T nwk_cb
TCP cfg structure.
Definition: m2mb_profile.h:604
struct M2M_AF_USER_THREAD_DETAILS_S M2M_AF_USER_THREAD_DETAILS_T
Application framework thread details structure.
UDP cfg structure.
Definition: m2mb_profile.h:553
M2M_AF_USER_THREAD_DETAILS_T cfg[1]
unsigned long int UINT32
Definition: m2mb_types.h:88
signed int INT32
Definition: m2mb_types.h:82
INT32 m2mb_af_tcp_soc_init(M2MB_T_CFG_T *tcp_cfg)
m2mb_af_tcp_soc_init is called to initialize TCP socket creation.
enum M2MB_PROFILE_EVENT M2MB_PROFILE_EVENT_T
Profile event enumeration.
INT32 m2mb_af_start(M2MB_AF_USER_CFG_T *pApp_cfg, const M2MB_SYSTEM_CFG_T *pSystem_cfg)
m2mb_af_start is called to start the application framework.
struct M2MB_AF_NWK_DATA_RECV M2MB_AF_NWK_DATA_RECV_T
Application framework Network data receive structure.
Application framework User configuration detail structure.
struct M2M_AF_USER_THREAD_CFG_S M2M_AF_USER_THREAD_CFG_T
Application framework user thread system configuration.
M2MB_AF_DRV_TYPE
Application framework driver type.
APP thread information.
enum M2MB_AF_NWK_EVENT M2MB_AF_NWK_EVENT_E
Application framework network event.
M2MB_AF_INIT_CB_T init
struct M2MB_AF_USER_CFG_S M2MB_AF_USER_CFG_T
Application framework User configuration detail structure.
Application framework user thread system configuration.
M2M_AF_USER_THREAD_CFG_T thread
Application framework Network data receive structure.