Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.6.0.3
|
This document provides a brief description of the BCM SDK access OpEN APIs. The BCM SDK access OpEN APIs allows processes outside of the ICOS main process (switchdrvr) access to BCM SDK registers. It provides the following services:
In the main function, the sample application initializes the OpEN API RPC service by calling openapiClientRegister() and waits for the RPC service in switchdrvr to start. A Client Handle is returned by openapiClientRegister() which is used while invoking the OpEN APIs. The application then exercises the associated OpEN APIs and logs informational and/or error messages on the console. The example application runs to its completion and exits.
sdkregbyname.c is a sample application that demonstrates the use of the BCM SDK global register access OpEN APIs. sdkregbyname is started from the command line as sdkregbyname <regname>. It then exercises the associated OpEN API openapiSdkRegReadByName() with appropriate arguments to query the BCM SDK global register in the ICOS main process (switchdrvr).
sdkportregbyname.c is a sample application that demonstrates the use of the BCM SDK port register access OpEN APIs. sdkportregbyname is started from the command line as sdkportregbyname <port> <regname> It then exercises the associated OpEN API openapiSdkPortRegReadByName() with appropriate arguments to query the BCM SDK port register in the ICOS main process (switchdrvr).