Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
openapi_green_pwr_estimates.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-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_green_pwr_estimates.h
28 *
29 * @purpose Green mode power savings estimates API
30 *
31 * @component OpEN
32 *
33 * @create 05/31/2023
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_GREEN_PWR_ESTIMATES_H
39 #define OPENAPI_GREEN_PWR_ESTIMATES_H
40 
41 /*****************************************************************/
57  uint32_t intIfNum,
58  uint32_t *pwrConsumption);
59 
60 /*****************************************************************/
75  uint32_t *pwrConsumption);
76 
77 /*****************************************************************/
93  uint32_t intIfNum,
94  uint32_t *pwrSaving);
95 
96 /*****************************************************************/
111  uint32_t *pwrSaving);
112 
113 /*****************************************************************/
128  uint32_t *pwrSaving);
129 
130 /*****************************************************************/
145  uint32_t intIfNum);
146 #endif /* OPENAPI_GREEN_PWR_ESTIMATES_H */
147 
open_error_t openapiGreenPwrEstIntfCurPwrGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *pwrConsumption)
Get green mode current power consumption on given interface.
open_error_t openapiGreenEthrIntfStatisticsClear(openapiClientHandle_t *client_handle, uint32_t intIfNum)
Clear green mode statistics for the given interface.
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiGreenPwrEstIntfCumSavingGet(openapiClientHandle_t *client_handle, uint32_t intIfNum, uint32_t *pwrSaving)
Get green mode cumulative power saving on given interface.
open_error_t openapiGreenPwrEstGlobalCurPwrGet(openapiClientHandle_t *client_handle, uint32_t *pwrConsumption)
Get green mode current power consumption.
open_error_t openapiGreenPwrEstGlobalCumSavingGet(openapiClientHandle_t *client_handle, uint32_t *pwrSaving)
Get green mode current power saving.
open_error_t openapiGreenEthrPwrEstGlobalPwrSavingGet(openapiClientHandle_t *client_handle, uint32_t *pwrSaving)
Get green mode power saving.