Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.12.0.1
Data Structures | Functions
Green Mode Power Savings History API [OPENAPI_GREEN_PWR_SAV_HISTORY]

Data Structures

struct  openGreenPwrHistoryIntfEntry_t
 

Functions

open_error_t openapiGreenEthrEeeLpiHistoryIntfMaxSamplesGet (openapiClientHandle_t *client_handle, uint32_t *maxSamples)
 Get green mode power saving history max samples to keep. More...
 
open_error_t openapiGreenEthrEeeLpiHistoryIntfMaxSamplesSet (openapiClientHandle_t *client_handle, uint32_t maxSamples)
 Set green mode power saving history max samples to keep. More...
 
open_error_t openapiGreenEthrEeeLpiHistoryIntfSampleIntervalGet (openapiClientHandle_t *client_handle, uint32_t *sampleInterval)
 Get green mode power saving history sampling interval. More...
 
open_error_t openapiGreenEthrEeeLpiHistoryIntfSampleIntervalSet (openapiClientHandle_t *client_handle, uint32_t sampleInterval)
 Set green mode power saving history sampling interval. More...
 
open_error_t openapiGreenEthrPwrSavHistoryIntfStatisticsClear (openapiClientHandle_t *client_handle, uint32_t intIfNum)
 Clear green mode power saving history statistics for the given interface. More...
 
open_error_t openapix2GreenEthrPwrSavHistoryIntfFirstEntryGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, openGreenPwrHistoryIntfEntry_t *entry)
 Get first valid entry of green mode power savings history on given interface - latest sample first. More...
 
open_error_t openapix2GreenEthrPwrSavHistoryIntfNextEntryGet (openapiClientHandle_t *client_handle, openGreenPwrHistoryIntfEntry_t *entry)
 Get next valid entry of green mode power savings history on given interface. More...
 
open_error_t openapix2GreenEthrPwrSavHistoryIntfNextSampleGet (openapiClientHandle_t *client_handle, uint32_t intIfNum, uint16_t curSample, openGreenPwrHistoryIntfEntry_t *entry)
 Get next entry of green mode power savings history on given interface with current sample number as input - get entries in reverse order. More...
 

Detailed Description

Function Documentation

open_error_t openapiGreenEthrEeeLpiHistoryIntfMaxSamplesGet ( openapiClientHandle_t client_handle,
uint32_t *  maxSamples 
)

Get green mode power saving history max samples to keep.

Parameters
[in]client_handleclient handle from registration API
[out]maxSamplesmax samples
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.
OPEN_E_UNAVAILNot available.

OpEN API Version: 1.26

Examples:
green_pwr_sav_history_example.c.
open_error_t openapiGreenEthrEeeLpiHistoryIntfMaxSamplesSet ( openapiClientHandle_t client_handle,
uint32_t  maxSamples 
)

Set green mode power saving history max samples to keep.

Parameters
[in]client_handleclient handle from registration API
[in]maxSamplesmax samples
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.
OPEN_E_UNAVAILNot available.

OpEN API Version: 1.26

Examples:
green_pwr_sav_history_example.c.
open_error_t openapiGreenEthrEeeLpiHistoryIntfSampleIntervalGet ( openapiClientHandle_t client_handle,
uint32_t *  sampleInterval 
)

Get green mode power saving history sampling interval.

Parameters
[in]client_handleclient handle from registration API
[out]sampleIntervalsampling interval
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.
OPEN_E_UNAVAILNot available.

OpEN API Version: 1.26

Examples:
green_pwr_sav_history_example.c.
open_error_t openapiGreenEthrEeeLpiHistoryIntfSampleIntervalSet ( openapiClientHandle_t client_handle,
uint32_t  sampleInterval 
)

Set green mode power saving history sampling interval.

Parameters
[in]client_handleclient handle from registration API
[in]sampleIntervalsampling interval
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.
OPEN_E_UNAVAILNot available.

OpEN API Version: 1.26

Examples:
green_pwr_sav_history_example.c.
open_error_t openapiGreenEthrPwrSavHistoryIntfStatisticsClear ( openapiClientHandle_t client_handle,
uint32_t  intIfNum 
)

Clear green mode power saving history statistics for the given interface.

Parameters
[in]client_handleclient handle from registration API
[in]intIfNuminternal interface number
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.

OpEN API Version: 1.26

Examples:
green_pwr_sav_history_example.c.
open_error_t openapix2GreenEthrPwrSavHistoryIntfFirstEntryGet ( openapiClientHandle_t client_handle,
uint32_t  intIfNum,
openGreenPwrHistoryIntfEntry_t entry 
)

Get first valid entry of green mode power savings history on given interface - latest sample first.

Parameters
[in]client_handleclient handle from registration API
[in]intIfNuminternal interface number
[out]entryfirst valid history entry on the interface
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.
OPEN_E_UNAVAILNot available.
Note
To get the time since the sample was recorded, subtract the entry->sampleTime from the system up time

OpEN API Version: 1.26

Examples:
green_pwr_sav_history_example.c.
open_error_t openapix2GreenEthrPwrSavHistoryIntfNextEntryGet ( openapiClientHandle_t client_handle,
openGreenPwrHistoryIntfEntry_t entry 
)

Get next valid entry of green mode power savings history on given interface.

Parameters
[in]client_handleclient handle from registration API
[in,out]entrycurrent entry on the interface
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.
OPEN_E_UNAVAILNot available.
Note
To get the time since the sample was recorded, subtract the entry->sampleTime from the system up time

OpEN API Version: 1.26

Examples:
green_pwr_sav_history_example.c.
open_error_t openapix2GreenEthrPwrSavHistoryIntfNextSampleGet ( openapiClientHandle_t client_handle,
uint32_t  intIfNum,
uint16_t  curSample,
openGreenPwrHistoryIntfEntry_t entry 
)

Get next entry of green mode power savings history on given interface with current sample number as input - get entries in reverse order.

Parameters
[in]client_handleclient handle from registration API
[in]intIfNuminternal interface number
[in]curSamplecurrent Sample Number on the interface
[out]entrynext entry
Return values
OPEN_E_NONEOn success.
OPEN_E_FAILOn failure.
OPEN_E_PARAMInvalid argument.
OPEN_E_INTERNALInternal error.
OPEN_E_UNAVAILNot available.

OpEN API Version: 1.26