47 #ifndef  M2MB_SNTP_API_H    48 #define  M2MB_SNTP_API_H    73 #define M2MB_SNTP_DEFAULT_SERVER        "pool.ntp.org"    76 #define M2MB_SNTP_SERVER_NAME_SIZE      68    79 #define M2MB_SNTP_SERVER_MAX            2    82 #define M2MB_IP_ADDR_STR_LEN     48    85 #define M2MB_SNTP_SYNC_DONE 0x0010 struct M2MB_SNTP_SERVER_ENTRY M2MB_SNTP_SERVER_ENTRY_T
SNTP server entry structure. 
M2MB_SNTP_SRV_ADD_INFO_T * srv_info
M2MB_SNTPC_EVENTS_ID_E
Events from SNTP module. 
#define M2MB_SNTP_SERVER_NAME_SIZE
void(* M2MB_SNTPC_APP_CB_T)(VOID *sntpc_ctx, UINT32 event, VOID *uData)
User callback to indicate SNTP event. 
M2MB_SNTP_SERVER_LIST_T * get_srv_list
M2MB_STATUS_T m2mb_sntp_init(HANDLE *handle, M2MB_SNTP_INIT_PARAMS_T *init_params)
m2mb_sntp_init is called to initialize the SNTP user callback and continuous interval. 
M2MB_STATUS_T m2mb_sntp_deinit(HANDLE handle)
m2mb_sntp_deinit is called to de-initialize SNTP module. 
M2MB_STATUS_T m2mb_sntp_update(HANDLE handle)
m2mb_sntp_update is called to update the system time from SNTP server. 
#define M2MB_SNTP_SERVER_MAX
M2MB_SNTP_SERVER_STATUS
Server status enumeration. 
SNTP server entry structure. 
UINT8 name[M2MB_SNTP_SERVER_NAME_SIZE]
Structure is used by SET/GET configuration paramters of CONF IDs mentioned in enum M2MB_SNTP_CONF_ID_...
UINT8 addr[M2MB_IP_ADDR_STR_LEN]
M2MB_SNTP_SERVER_ENTRY_T server[M2MB_SNTP_SERVER_MAX]
M2MB_STATUS_T m2mb_sntp_start(HANDLE handle)
m2mb_sntp_start is called to start to send the sntp client request to the sntp server. 
enum M2MB_SNTP_SERVER_ID M2MB_SNTP_SERVER_ID_E
Server ID enumeration. 
struct M2MB_SNTP_INIT_PARAMS M2MB_SNTP_INIT_PARAMS_T
SNTP initialization parameters. 
M2MB_STATUS_T m2mb_sntp_get_cfg(HANDLE handle, M2MB_SNTP_CONF_ID_E conf_id, M2MB_SNTP_CONF_PARAMS_T *conf_params)
GET the SNTP configuration parameters. 
struct M2MB_SNTP_SRV_ADD_INFO M2MB_SNTP_SRV_ADD_INFO_T
Structure is used by the Configuration ID M2MB_SNTP_CONF_SET_SRV_ADD to configure the given sntp serv...
M2MB_SNTP_SERVER_ID
Server ID enumeration. 
M2MB_SNTP_SERVER_ID_E serverID
struct M2MB_SNTP_TM M2MB_SNTP_TM_T
Time broken down. 
SNTP initialization parameters. 
struct M2MB_SNTP_SERVER_LIST M2MB_SNTP_SERVER_LIST_T
SNTP server list structure. 
SNTP server list structure. 
enum M2MB_SNTP_CONF_ID M2MB_SNTP_CONF_ID_E
SNTP GET/SET Configuration enumeration. 
M2MB_SNTP_SERVER_ID_E serverID
M2MB_SNTP_CONF_ID
SNTP GET/SET Configuration enumeration. 
enum M2MB_SNTP_SERVER_STATUS M2MB_SNTP_SERVER_STATUS_E
Server status enumeration. 
#define M2MB_IP_ADDR_STR_LEN
M2MB_STATUS_T m2mb_sntp_set_cfg(HANDLE handle, M2MB_SNTP_CONF_ID_E conf_id, M2MB_SNTP_CONF_PARAMS_T *conf_params)
SET the SNTP configuration parameters. 
Structure is used by the Configuration ID M2MB_SNTP_CONF_SET_SRV_ADD to configure the given sntp serv...
M2MB_SNTPC_APP_CB_T user_cb