Events generated by the Network - SNTP Client functions. More...
Functions | |
__STATIC_INLINE void | EvrNetSNTP_InitClient (uint8_t mode) |
Event on SNTP client initialize (Op) | |
__STATIC_INLINE void | EvrNetSNTP_GetSocketFailed (void) |
Event on SNTP failed to allocate UDP socket (Error) | |
__STATIC_INLINE void | EvrNetSNTP_GetTime (uint8_t mode) |
Event on netSNTPc_GetTime (API) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimeInvalidParameter (void) |
Event on netSNTPc_GetTime invalid parameter (Error) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimeWrongState (uint8_t state) |
Event on netSNTPc_GetTime wrong client state (Error) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimeOpen (const uint8_t *ip4_addr) |
Event on netSNTPc_GetTime open broadcast receive (Op) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimeClose (void) |
Event on netSNTPc_GetTime close broadcast receive (Op) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimeServerUnknown (const uint8_t *ip4_addr) |
Event on netSNTPc_GetTime unknown server for unicast mode (Error) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimexInvalidParameter (void) |
Event on netSNTPc_GetTimeX invalid parameter (Error) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimexClientBusy (void) |
Event on netSNTPc_GetTimeX client busy (Error) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimexServerNotValid (void) |
Event on netSNTPc_GetTimeX server name not valid (Error) | |
__STATIC_INLINE void | EvrNetSNTP_GetTimexDnsError (void) |
Event on netSNTPc_GetTimeX host name resolver error (Error) | |
__STATIC_INLINE void | EvrNetSNTP_SetMode (uint8_t mode) |
Event on netSNTPc_SetMode (API) | |
__STATIC_INLINE void | EvrNetSNTP_SetModeInvalidParameter (void) |
Event on netSNTPc_SetMode invalid parameter (Error) | |
__STATIC_INLINE void | EvrNetSNTP_SetModeWrongState (uint8_t state) |
Event on netSNTPc_SetMode wrong client state (Error) | |
__STATIC_INLINE void | EvrNetSNTP_SendMessage (const uint8_t *ip4_addr) |
Event on SNTP send message to NTP server (Op) | |
__STATIC_INLINE void | EvrNetSNTP_ServerNotResponding (const uint8_t *ip4_addr) |
Event on SNTP send message timeout (Op) | |
__STATIC_INLINE void | EvrNetSNTP_ReceiveFrame (const uint8_t *ip4_addr, uint32_t length) |
Event on SNTP receive frame (Op) | |
__STATIC_INLINE void | EvrNetSNTP_WrongServerPort (uint16_t udp_port) |
Event on SNTP wrong server port (Error) | |
__STATIC_INLINE void | EvrNetSNTP_FrameTooShort (uint32_t length, uint32_t min_length) |
Event on SNTP receive frame is too short (Error) | |
__STATIC_INLINE void | EvrNetSNTP_WrongServerAddress (const uint8_t *ip4_addr) |
Event on SNTP wrong NTP server address (Error) | |
__STATIC_INLINE void | EvrNetSNTP_ModeNotServer (uint8_t mode) |
Event on SNTP message mode not server (Error) | |
__STATIC_INLINE void | EvrNetSNTP_ModeNotBroadcast (uint8_t mode) |
Event on SNTP message mode not broadcast (Error) | |
__STATIC_INLINE void | EvrNetSNTP_AnswerInWrongState (uint8_t state) |
Event on SNTP answer received in wrong state (Error) | |
__STATIC_INLINE void | EvrNetSNTP_ShowTimeStamp (uint32_t ref_time, uint32_t utc_time) |
Event on SNTP display time stamp in seconds (Op) | |
__STATIC_INLINE void | EvrNetSNTP_TimeStampInvalid (uint32_t ref_time) |
Event on SNTP invalid time stamp (Op) | |
__STATIC_INLINE void | EvrNetSNTP_UninitClient (void) |
Event on SNTP client de-initialize (Op) | |
Events generated by the Network - SNTP Client functions.
The SNTP Client functions generate events that make it easier to troubleshoot errors, and allow the user to understand how the SNTP client works.
__STATIC_INLINE void EvrNetSNTP_AnswerInWrongState | ( | uint8_t | state | ) |
Event on SNTP answer received in wrong state (Error)
state | client state
|
The event AnswerInWrongState is created when the network library receives an NTP response in an incompatible SNTP client state. The frame is discarded.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_FrameTooShort | ( | uint32_t | length, |
uint32_t | min_length | ||
) |
Event on SNTP receive frame is too short (Error)
length | frame length in bytes |
min_length | minimum length of the frame |
The event FrameTooShort is created when the network library receives the NTP frame that is too short. The frame is discarded.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetSocketFailed | ( | void | ) |
Event on SNTP failed to allocate UDP socket (Error)
The event GetSocketFailed is created when the SNTP client is initialized, that is, when the function netInitialize is executed, and the service could not assign the UDP socket. To resolve this error, you must increase the number of available UDP sockets in the UDP socket configuration.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTime | ( | uint8_t | mode | ) |
Event on netSNTPc_GetTime (API)
mode | operation mode of the client
|
The event GetTime is created when the SNTP client starts the time retrieval process. This happens when the netSNTPc_GetTime or netSNTPc_GetTimeX function is executed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimeClose | ( | void | ) |
Event on netSNTPc_GetTime close broadcast receive (Op)
The event GetTimeClose is created when the SNTP client stops the time retrieving process in broadcast mode.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimeInvalidParameter | ( | void | ) |
Event on netSNTPc_GetTime invalid parameter (Error)
The event GetTimeInvalidParameter is created when the SNTP client can not start the time retrieval process because the netSNTPc_GetTime function is called with an invalid input parameter.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimeOpen | ( | const uint8_t * | ip4_addr | ) |
Event on netSNTPc_GetTime open broadcast receive (Op)
ip4_addr | pointer to IPv4 address of NTP server |
The event GetTimeOpen is created when the SNTP client starts the process of retrieving time in broadcast mode. If the IPv4 address of the server is not specified, the client receives time messages from any NTP server.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimeServerUnknown | ( | const uint8_t * | ip4_addr | ) |
Event on netSNTPc_GetTime unknown server for unicast mode (Error)
ip4_addr | pointer to IPv4 address of NTP server |
The event GetTimeServerUnknown is created when the SNTP client can not start the time retrieval process in unicast mode because the NTP server address is not specified.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimeWrongState | ( | uint8_t | state | ) |
Event on netSNTPc_GetTime wrong client state (Error)
state | client state
|
The event GetTimeWrongState is created when the SNTP client can not start the time retrieval process because the client is busy retrieving a previous request that has not yet completed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimexClientBusy | ( | void | ) |
Event on netSNTPc_GetTimeX client busy (Error)
The event GetTimexClientBusy is created when the SNTP client can not retrieve the time because the SNTP client is busy retrieving a previous request that has not yet completed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimexDnsError | ( | void | ) |
Event on netSNTPc_GetTimeX host name resolver error (Error)
The event GetTimexDnsError is created when the SNTP client can not retrieve the time because the NTP server can not be resolved due to an error in the DNS resolution process. If the error was caused by a DNS server unresponsiveness or a network error, then calling the function netSNTPc_GetTimeX again will correct the error.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimexInvalidParameter | ( | void | ) |
Event on netSNTPc_GetTimeX invalid parameter (Error)
The event GetTimexInvalidParameter is created when the SNTP client can not retrieve the time because the netSNTPc_GetTimeX function is called with an invalid input parameter.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_GetTimexServerNotValid | ( | void | ) |
Event on netSNTPc_GetTimeX server name not valid (Error)
The event GetTimexServerNotValid is created when the SNTP client can not retrieve the time because the NTP server name is not valid and the server IP address can not be resolved.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_InitClient | ( | uint8_t | mode | ) |
Event on SNTP client initialize (Op)
mode | operation mode of the client
|
The event InitClient is created when the SNTP client is initialized, that is, when the function netInitialize is executed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_ModeNotBroadcast | ( | uint8_t | mode | ) |
Event on SNTP message mode not broadcast (Error)
mode | message mode
|
The event ModeNotBroadcast is created when the network library receives the NTP frame and the mode label in the message is not set to broadcast mode. The frame is discarded.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_ModeNotServer | ( | uint8_t | mode | ) |
Event on SNTP message mode not server (Error)
mode | message mode
|
The event ModeNotServer is created when the network library receives the NTP frame and the mode label in the message is not set to server mode. The frame is discarded.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_ReceiveFrame | ( | const uint8_t * | ip4_addr, |
uint32_t | length | ||
) |
Event on SNTP receive frame (Op)
ip4_addr | pointer to IPv4 address of the server |
length | frame length in bytes |
The event ReceiveFrame is created when the network library receives the NTP frame.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_SendMessage | ( | const uint8_t * | ip4_addr | ) |
Event on SNTP send message to NTP server (Op)
ip4_addr | pointer to IPv4 address of NTP server |
The event SendMessage is created when the SNTP client sends a time request message to the NTP server.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_ServerNotResponding | ( | const uint8_t * | ip4_addr | ) |
Event on SNTP send message timeout (Op)
ip4_addr | pointer to IPv4 address of NTP server |
The event ServerNotResponding is created when the SNTP client does not receive a response from the NTP server after retrying the time request.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_SetMode | ( | uint8_t | mode | ) |
Event on netSNTPc_SetMode (API)
mode | operation mode of the client
|
The event SetMode is created when the SNTP client sets the operation mode of the client. This happens when the netSNTPc_SetMode function is executed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_SetModeInvalidParameter | ( | void | ) |
Event on netSNTPc_SetMode invalid parameter (Error)
The event SetModeInvalidParameter is created when the SNTP client can not set the operation mode because the netSNTPc_SetMode function is called with an invalid input parameter.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_SetModeWrongState | ( | uint8_t | state | ) |
Event on netSNTPc_SetMode wrong client state (Error)
state | client state
|
The event SetModeWrongState is created when the SNTP client can not set the operation mode because the client is busy retrieving a previous request that has not yet completed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_ShowTimeStamp | ( | uint32_t | ref_time, |
uint32_t | utc_time | ||
) |
Event on SNTP display time stamp in seconds (Op)
ref_time | reference time (since Jan 1, 1900) |
utc_time | utc time (since Jan 1, 1970) |
The event ShowTimeStamp is created when the network library wants to display the received NTP time.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_TimeStampInvalid | ( | uint32_t | ref_time | ) |
Event on SNTP invalid time stamp (Op)
ref_time | reference time (since Jan 1, 1900) |
The event TimeStampInvalid is created when the network library receives an NTP response with a time that is not valid (before Jan 1, 1970).
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_UninitClient | ( | void | ) |
Event on SNTP client de-initialize (Op)
The event UninitClient is created when the function netUninitialize is executed.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_WrongServerAddress | ( | const uint8_t * | ip4_addr | ) |
Event on SNTP wrong NTP server address (Error)
ip4_addr | pointer to IPv4 address of NTP server |
The event WrongServerAddress is created when the network library receives the NTP frame from an invalid NTP server. The frame is discarded.
Value in the Event Recorder shows:
__STATIC_INLINE void EvrNetSNTP_WrongServerPort | ( | uint16_t | udp_port | ) |
Event on SNTP wrong server port (Error)
udp_port | wrong UDP port number |
The event WrongServerPort is created when the network library receives the NTP frame from invalid UDP server source port. The frame is discarded.
Value in the Event Recorder shows: