Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
openapi_flow_control.h
Go to the documentation of this file.
1 
9 /**********************************************************************
10 *
11 * Copyright 2023 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 ***********************************************************************
26 *
27 * @filename openapi_flow_control.h
28 *
29 * @purpose This code implements the OpEN Flow Control API
30 *
31 * @component OPEN
32 *
33 * @create 06/08/2023
34 *
35 * @end
36 *
37 *********************************************************************/
38 #ifndef OPENAPI_FLOWCONTROL_H_INCLUDED
39 #define OPENAPI_FLOWCONTROL_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 typedef enum
44 {
49 
50 typedef enum
51 {
55 
56 /*************************************************************************/
72  OPEN_FLOWCONTROL_t *mode);
73 
74 /*************************************************************************/
91  OPEN_FLOWCONTROL_t mode);
92 
93 /*************************************************************************/
110  uint32_t ifNum, OPEN_FLOWCONTROL_t *mode);
111 
112 /*************************************************************************/
130  uint32_t ifNum, OPEN_FLOWCONTROL_t mode);
131 
132 /*************************************************************************/
149  uint32_t ifNum,
151 
152 /*************************************************************************/
168  uint32_t ifNum, uint32_t *rxCount);
169 
170 /*************************************************************************/
186  uint32_t ifNum, uint32_t *txCount);
187 
188 
189 #endif /* OPENAPI_FLOWCONTROL_H_INCLUDED */
190 
191 
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.
OPEN_FLOWCONTROL_OPER_t
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiFlowControlIfModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_FLOWCONTROL_t mode)
Set the Flow Control mode of the interafce.
open_error_t openapiFlowControlModeGet(openapiClientHandle_t *client_handle, OPEN_FLOWCONTROL_t *mode)
Get the Flow Control mode of the system.
open_error_t openapiFlowControlIfModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_FLOWCONTROL_t *mode)
Get the Flow Control mode of the interafce.
open_error_t openapiFlowControlIfPauseFramesRxGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *rxCount)
Get the pause frames receive count of the interafce.
OPEN_FLOWCONTROL_t
open_error_t openapiFlowControlModeSet(openapiClientHandle_t *client_handle, OPEN_FLOWCONTROL_t mode)
Set the Flow Control mode of the system.
open_error_t openapiFlowControlIfPauseFramesTxGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *txCount)
Get the pause frames transmit count of the interafce.