Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
Enumerations | Functions
This Code Implements The OpEN Flow Control API [OPENAPI_FLOW_CONTROL]

Enumerations

enum  OPEN_FLOWCONTROL_OPER_t { OPEN_FLOWCTRL_INACTIVE = 0, OPEN_FLOWCTRL_ACTIVE }
 
enum  OPEN_FLOWCONTROL_t { OPEN_FLOWCTRL_OFF = 0, OPEN_FLOWCTRL_SYMM, OPEN_FLOWCTRL_ASYMM }
 

Functions

open_error_t openapiFlowControlIfModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_FLOWCONTROL_t *mode)
 Get the Flow Control mode of the interafce. More...
 
open_error_t openapiFlowControlIfModeSet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_FLOWCONTROL_t mode)
 Set the Flow Control mode of the interafce. More...
 
open_error_t openapiFlowControlIfOperModeGet (openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_FLOWCONTROL_OPER_t *mode)
 Get the Flow Control operational mode of the interafce. More...
 
open_error_t openapiFlowControlIfPauseFramesRxGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *rxCount)
 Get the pause frames receive count of the interafce. More...
 
open_error_t openapiFlowControlIfPauseFramesTxGet (openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *txCount)
 Get the pause frames transmit count of the interafce. More...
 
open_error_t openapiFlowControlModeGet (openapiClientHandle_t *client_handle, OPEN_FLOWCONTROL_t *mode)
 Get the Flow Control mode of the system. More...
 
open_error_t openapiFlowControlModeSet (openapiClientHandle_t *client_handle, OPEN_FLOWCONTROL_t mode)
 Set the Flow Control mode of the system. More...
 

Detailed Description

Enumeration Type Documentation

Enumerator
OPEN_FLOWCTRL_INACTIVE 

Inactive.

OPEN_FLOWCTRL_ACTIVE 

Active.

Definition at line 50 of file openapi_flow_control.h.

Enumerator
OPEN_FLOWCTRL_OFF 

Disable.

OPEN_FLOWCTRL_SYMM 

Symmetric.

OPEN_FLOWCTRL_ASYMM 

Asymmetric.

Definition at line 43 of file openapi_flow_control.h.

Function Documentation

open_error_t openapiFlowControlIfModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_FLOWCONTROL_t mode 
)

Get the Flow Control mode of the interafce.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]modeFlow control mode
Return values
OPEN_E_UNAVAILParameter/feature is not supported.
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
flow_control_example.c.
open_error_t openapiFlowControlIfModeSet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_FLOWCONTROL_t  mode 
)

Set the Flow Control mode of the interafce.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[in]modeFlow control mode
Return values
OPEN_E_UNAVAILParameter/feature is not supported.
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
flow_control_example.c.
open_error_t openapiFlowControlIfOperModeGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
OPEN_FLOWCONTROL_OPER_t mode 
)

Get the Flow Control operational mode of the interafce.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]modeFlow control operational mode
Return values
OPEN_E_UNAVAILParameter/feature is not supported.
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
flow_control_example.c.
open_error_t openapiFlowControlIfPauseFramesRxGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  rxCount 
)

Get the pause frames receive count of the interafce.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]rxCountPause frames receive count
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
flow_control_example.c.
open_error_t openapiFlowControlIfPauseFramesTxGet ( openapiClientHandle_t client_handle,
uint32_t  ifNum,
uint32_t *  txCount 
)

Get the pause frames transmit count of the interafce.

Parameters
[in]client_handleclient handle from registration API
[in]ifNuminterface
[out]txCountPause frames transmit count
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
flow_control_example.c.
open_error_t openapiFlowControlModeGet ( openapiClientHandle_t client_handle,
OPEN_FLOWCONTROL_t mode 
)

Get the Flow Control mode of the system.

Parameters
[in]client_handleclient handle from registration API
[out]modeFlow control mode
Return values
OPEN_E_UNAVAILParameter/feature is not supported.
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.

OpEN API Version: 1.26

Examples:
flow_control_example.c.
open_error_t openapiFlowControlModeSet ( openapiClientHandle_t client_handle,
OPEN_FLOWCONTROL_t  mode 
)

Set the Flow Control mode of the system.

Parameters
[in]client_handleclient handle from registration API
[in]modeFlow control mode
Return values
OPEN_E_UNAVAILParameter/feature is not supported.
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
Note
Calling this API will change the running configuration of the switch

OpEN API Version: 1.26

Examples:
flow_control_example.c.