Types#
This section provides a reference to the SNTP API data types.
Modules#
Typedefs#
typedef void(*
sl_sntp_client_event_handler_t)(sl_sntp_client_response_t *response, uint8_t *user_data, uint16_t user_data_length)
SNTP response handler.
typedef void(*
sl_sntp_set_time_sync_notification_handler_t)(const uint8_t cmd_type, sl_status_t status, const uint8_t *buffer)
SNTP time sync notification handler.
Typedef Documentation#
sl_sntp_client_event_handler_t#
sl_sntp_client_event_handler_t )(sl_sntp_client_response_t *response, uint8_t *user_data, uint16_t user_data_length)
SNTP response handler.
Parameters
[in] | response | SNTP response of type sl_sntp_client_response_t |
[in] | user_data | User data passed in sl_sntp_client_get_time(), sl_sntp_client_get_time_date(), sl_sntp_client_get_server_info() APIs. |
[in] | user_data_length | User data length in sl_sntp_client_get_time(), sl_sntp_client_get_time_date(), sl_sntp_client_get_server_info() APIs |
Definition at line
105
of file components/service/sntp/inc/sl_sntp.h
sl_sntp_set_time_sync_notification_handler_t#
sl_sntp_set_time_sync_notification_handler_t )(const uint8_t cmd_type, sl_status_t status, const uint8_t *buffer)
SNTP time sync notification handler.
Parameters
[in] | cmd_type | command type |
[in] | status | sl_status_t.See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details. |
[in] | buffer | Data buffer |
Note
This features is not supported currently in Si917 chipsets
Definition at line
117
of file components/service/sntp/inc/sl_sntp.h