Types#
This section provides a reference to the SNTP API data types.
Modules#
Typedefs#
Callback type for handling SNTP client responses.
Callback type for handling SNTP time synchronization notifications.
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)
Callback type for handling SNTP client responses.
Type | Direction | Argument Name | Description |
---|---|---|---|
[in] | response | Pointer to the SNTP client response of type sl_sntp_client_response_t. | |
[in] | user_data | Pointer to user data passed in the APIs sl_sntp_client_get_time(), sl_sntp_client_get_time_date(), and sl_sntp_client_get_server_info(). | |
[in] | user_data_length | Length of the user data passed in the APIs sl_sntp_client_get_time(), sl_sntp_client_get_time_date(), and sl_sntp_client_get_server_info(). |
This callback is invoked to handle responses from the SNTP client. It provides the response data, user data, and the length of the user data.
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)
Callback type for handling SNTP time synchronization notifications.
Type | Direction | Argument Name | Description |
---|---|---|---|
[in] | cmd_type | Command type indicating the type of SNTP operation. | |
[in] | status | Status of the SNTP operation. See https://docs.silabs.com/gecko-platform/latest/platform-common/status for details. | |
[in] | buffer | Pointer to the data buffer containing additional information related to the SNTP operation. |
This callback is invoked to handle notifications related to SNTP time synchronization. It provides the command type, status of the operation, and a data buffer.
Note
This feature is currently not supported in Si917 chipsets.