Morse Micro IoT SDK  2.9.7

Detailed Description

Modules

 ntp configuration variables
 

Data Structures

struct  mmagic_core_ntp_get_time_rsp_args
 Response arguments structure for ntp_get_time. More...
 

Functions

static enum mmagic_status mmagic_controller_ntp_sync (struct mmagic_controller *controller)
 Synchronizes internal time using the NTP server. More...
 
static enum mmagic_status mmagic_controller_ntp_get_time (struct mmagic_controller *controller, struct mmagic_core_ntp_get_time_rsp_args *rsp_args)
 Reads current internal time. More...
 

Function Documentation

◆ mmagic_controller_ntp_get_time()

static enum mmagic_status mmagic_controller_ntp_get_time ( struct mmagic_controller *  controller,
struct mmagic_core_ntp_get_time_rsp_args rsp_args 
)
inlinestatic

Reads current internal time.

Parameters
controllerReference to the controller handle.
[out]rsp_argsPointer to the data structure to be filled out with the result. If the If the return code is not MMAGIC_STATUS_OK then the contents of this structure will be undefined.
Returns
MMAGIC_STATUS_OK else an appropriate error code.

Definition at line 5442 of file mmagic_controller.h.

◆ mmagic_controller_ntp_sync()

static enum mmagic_status mmagic_controller_ntp_sync ( struct mmagic_controller *  controller)
inlinestatic

Synchronizes internal time using the NTP server.

Parameters
controllerReference to the controller handle.
Returns
MMAGIC_STATUS_OK else an appropriate error code.

Definition at line 5408 of file mmagic_controller.h.