Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.9.0.2
Functions
PTP TC Configuration And Status [OPENAPI_PTP_TC]
API Definitions

Functions

open_error_t openapiPtpTcAdminModeGet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t *mode)
 Gets PTP TC global administrative mode.
 
open_error_t openapiPtpTcAdminModeSet (openapiClientHandle_t *client_handle, OPEN_CONTROL_t mode)
 Sets PTP TC global administrative mode.
 
open_error_t openapiPtpTcIntfAdminModeGet (openapiClientHandle_t *client_handle, uint32_t intfNum, OPEN_CONTROL_t *adminMode)
 Get PTP TC mode on the specified interface.
 
open_error_t openapiPtpTcIntfAdminModeSet (openapiClientHandle_t *client_handle, uint32_t intfNum, OPEN_CONTROL_t adminMode)
 Set PTP TC mode on the specified interface.
 
open_error_t openapiPtpTcIntfHwConfigAllowedGet (openapiClientHandle_t *client_handle, uint32_t intfNum, OPEN_BOOL_t *isAllowed)
 Determine if interface configuration can be applied in hardware.
 
open_error_t openapiPtpTcIntfOperAdminModeGet (openapiClientHandle_t *client_handle, uint32_t intfNum, OPEN_CONTROL_t *mode)
 Gets PTP TC operational mode on the specified interface.
 
open_error_t openapiPtpTcIsSupportedGet (openapiClientHandle_t *client_handle, OPEN_BOOL_t *isSupported)
 Check if the PTP TC is supported.
 
open_error_t openapiPtpTcIsValidIntfGet (openapiClientHandle_t *client_handle, uint32_t intfNum, OPEN_BOOL_t *isValid)
 Check if the interface is valid for PTP TC.
 
open_error_t openapiPtpTcIsValidUnitGet (openapiClientHandle_t *client_handle, uint32_t unit, OPEN_BOOL_t *isValid)
 Check if the unit is valid for PTP TC.
 

Detailed Description

Function Documentation

open_error_t openapiPtpTcAdminModeGet ( openapiClientHandle_t client_handle,
OPEN_CONTROL_t mode 
)

Gets PTP TC global administrative mode.

Parameters
[in]client_handleclient handle from registration API
[out]modeadministrative mode
Return values
OPEN_E_NONEAdministrative mode get successful.
OPEN_E_FAILAdministrative mode get failed.
OPEN_E_PARAMError in parameter passed.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcAdminModeSet ( openapiClientHandle_t client_handle,
OPEN_CONTROL_t  mode 
)

Sets PTP TC global administrative mode.

Parameters
[in]client_handleclient handle from registration API
[in]modeadministrative mode
Return values
OPEN_E_NONEAdministrative mode set successful.
OPEN_E_FAILAdministrative mode set failed.
OPEN_E_PARAMError in parameter passed.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcIntfAdminModeGet ( openapiClientHandle_t client_handle,
uint32_t  intfNum,
OPEN_CONTROL_t adminMode 
)

Get PTP TC mode on the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]intfNumInterface number.
[out]adminModeInterface PTP TC admin mode.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcIntfAdminModeSet ( openapiClientHandle_t client_handle,
uint32_t  intfNum,
OPEN_CONTROL_t  adminMode 
)

Set PTP TC mode on the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]intfNumInterface number.
[in]adminModeInterface PTP TC admin mode.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcIntfHwConfigAllowedGet ( openapiClientHandle_t client_handle,
uint32_t  intfNum,
OPEN_BOOL_t isAllowed 
)

Determine if interface configuration can be applied in hardware.

Parameters
[in]client_handleclient handle from registration API
[in]intfNumInterface number.
[out]isAllowedFlag to tell if Hardware configuration allowed.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcIntfOperAdminModeGet ( openapiClientHandle_t client_handle,
uint32_t  intfNum,
OPEN_CONTROL_t mode 
)

Gets PTP TC operational mode on the specified interface.

Parameters
[in]client_handleclient handle from registration API
[in]intfNumInterface number.
[out]modePTP TC operational mode.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcIsSupportedGet ( openapiClientHandle_t client_handle,
OPEN_BOOL_t isSupported 
)

Check if the PTP TC is supported.

Parameters
[in]client_handleclient handle from registration API
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcIsValidIntfGet ( openapiClientHandle_t client_handle,
uint32_t  intfNum,
OPEN_BOOL_t isValid 
)

Check if the interface is valid for PTP TC.

Parameters
[in]client_handleclient handle from registration API
[in]intfNumInterface number.
[out]isValidFlag to tell if the interface is valid for PTP TC.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.
open_error_t openapiPtpTcIsValidUnitGet ( openapiClientHandle_t client_handle,
uint32_t  unit,
OPEN_BOOL_t isValid 
)

Check if the unit is valid for PTP TC.

Parameters
[in]client_handleclient handle from registration API
[in]unitUnit number.
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.20

Examples:
ptp_tc_example.c.