Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.4.4.5
Enumerations | Functions
openapi_sntp.h File Reference
#include "openapi_common.h"

Go to the source code of this file.

Enumerations

enum  OPEN_SNTP_ADDRESS_TYPE_t { OPEN_SNTP_ADDRESS_UNKNOWN = 0, OPEN_SNTP_ADDRESS_IPV4 = 1, OPEN_SNTP_ADDRESS_IPV6 = 2, OPEN_SNTP_ADDRESS_DNS = 3 }
 OpEN uses this enumeration to define SNTP address types. More...
 
enum  OPEN_SNTP_CLIENT_MODE_t { OPEN_SNTP_CLIENT_DISABLED = 0, OPEN_SNTP_CLIENT_UNICAST = 1, OPEN_SNTP_CLIENT_BROADCAST = 2 }
 OpEN uses this enumeration to define SNTP client modes. More...
 
enum  OPEN_SNTP_SERVER_MODE_t {
  OPEN_SNTP_SERVER_MODE_RESERVED = 0, OPEN_SNTP_SERVER_MODE_SYMMETRIC_ACTIVE = 1, OPEN_SNTP_SERVER_MODE_SYMMETRIC_PASSIVE = 2, OPEN_SNTP_SERVER_MODE_CLIENT = 3,
  OPEN_SNTP_SERVER_MODE_SERVER = 4, OPEN_SNTP_SERVER_MODE_BROADCAST = 5, OPEN_SNTP_SERVER_MODE_RESERVED_CONTROL = 6, OPEN_SNTP_SERVER_MODE_RESERVED_PRIVATE = 7
}
 OpEN uses this enumeration to define SNTP server modes. More...
 
enum  OPEN_SNTP_SUPPORTED_MODE_t { OPEN_SNTP_SUPPORTED_DISABLED = 0, OPEN_SNTP_SUPPORTED_UNICAST = 1, OPEN_SNTP_SUPPORTED_BROADCAST = 2, OPEN_SNTP_SUPPORTED_UNICAST_AND_BROADCAST = 3 }
 OpEN uses this enumeration to define SNTP supported client modes. More...
 

Functions

open_error_t openapiActiveSntpServerAddressTypeGet (openapiClientHandle_t *client_handle, OPEN_SNTP_ADDRESS_TYPE_t *type)
 Get the active SNTP server address type from which last packet is received.
 
open_error_t openapiActiveSntpServerIpAddressGet (openapiClientHandle_t *client_handle, open_buffdesc *sntpServer)
 Get the active SNTP server from which last packet is received.
 
open_error_t openapiActiveSntpServerModeGet (openapiClientHandle_t *client_handle, OPEN_SNTP_SERVER_MODE_t *serverMode)
 Get the mode of the SNTP server from which last packet is received.
 
open_error_t openapiActiveSntpServerReferenceIdGet (openapiClientHandle_t *client_handle, open_buffdesc *reference)
 Get the SNTP server reference identifier from which last packet is received.
 
open_error_t openapiActiveSntpServerStratumGet (openapiClientHandle_t *client_handle, uint32_t *stratum)
 Get the stratum of the SNTP server from which last packet is received.
 
open_error_t openapiSntpClientModeGet (openapiClientHandle_t *client_handle, OPEN_SNTP_CLIENT_MODE_t *sntpClientMode)
 Get the SNTP client mode.
 
open_error_t openapiSntpClientModeSet (openapiClientHandle_t *client_handle, OPEN_SNTP_CLIENT_MODE_t mode)
 Set the SNTP client mode.
 
open_error_t openapiSntpClientSupportedModeGet (openapiClientHandle_t *client_handle, OPEN_SNTP_SUPPORTED_MODE_t *sntpClientSupportedMode)
 Get the SNTP client supported mode.
 
open_error_t openapiSntpServerAdd (openapiClientHandle_t *client_handle, open_buffdesc *ipAddr)
 Add an SNTP server.
 
open_error_t openapiSntpServerAddressTypeGet (openapiClientHandle_t *client_handle, open_buffdesc *sntpServer, OPEN_SNTP_ADDRESS_TYPE_t *sntpServerAddrType)
 Get the SNTP server address type.
 
open_error_t openapiSntpServerCurrentEntriesGet (openapiClientHandle_t *client_handle, uint32_t *currEntries)
 Get number of SNTP servers configured.
 
open_error_t openapiSntpServerDelete (openapiClientHandle_t *client_handle, open_buffdesc *ipAddr)
 Delete an SNTP server.
 
open_error_t openapiSntpServerFirstGet (openapiClientHandle_t *client_handle, open_buffdesc *sntpServer)
 Get the first SNTP server.
 
open_error_t openapiSntpServerMaxAddrLenGet (openapiClientHandle_t *client_handle, uint32_t *sntpServerAddrLen)
 Get the maximum length of SNTP server address.
 
open_error_t openapiSntpServerNextGet (openapiClientHandle_t *client_handle, open_buffdesc *sntpServer, open_buffdesc *nextSntpServer)
 Get the next SNTP server.
 
open_error_t openapiSntpServerPortGet (openapiClientHandle_t *client_handle, open_buffdesc *sntpServer, uint16_t *serverPort)
 Get the SNTP server port.
 
open_error_t openapiSntpServerPortSet (openapiClientHandle_t *client_handle, open_buffdesc *ipAddr, uint16_t port)
 Set SNTP server port.
 
open_error_t openapiSntpServerPriorityGet (openapiClientHandle_t *client_handle, open_buffdesc *sntpServer, uint16_t *serverPriority)
 Get the SNTP server priority.
 
open_error_t openapiSntpServerPriorityMaxGet (openapiClientHandle_t *client_handle, uint32_t *priorityMax)
 Get the maximum SNTP priority.
 
open_error_t openapiSntpServerPrioritySet (openapiClientHandle_t *client_handle, open_buffdesc *ipAddr, uint16_t priority)
 Set priority to the SNTP server.
 
open_error_t openapiSntpServerReferenceStringLengthGet (openapiClientHandle_t *client_handle, uint32_t *refStrLen)
 Get the maximum length of the SNTP reference ID string.
 
open_error_t openapiSntpServersMaxSupportedGet (openapiClientHandle_t *client_handle, uint32_t *maxSntpServers)
 Get the maximum number of SNTP servers supported.
 
open_error_t openapiSntpServerVersionGet (openapiClientHandle_t *client_handle, open_buffdesc *sntpServer, uint16_t *serverVersion)
 Get the SNTP server version.
 
open_error_t openapiSntpServerVersionSet (openapiClientHandle_t *client_handle, open_buffdesc *ipAddr, uint16_t version)
 Set SNTP server version.