User's Guide
II-VI Incorporated
375 Saxonburg Boulevard
Saxonburg, PA 16056
T. 724.352.4455 | F. 724.352.5284 | www.ii-vi.com
22
CMPP1
int OcmSetCMPP1(float
minimumPeakPower)
23
CSIL1
int OcmSetCSIL1(float inserttionLoss)
24
CSPT1
int OcmSetCSPT1(float
peakDetectThreshold)
25
OCM Power
Operation
int OCMPower(E_POWERSWITCH
i_e_switch)
E_POWERSWITCH Structure
defined in ocm_interface.h
26
Get OCM Power
Status
int getOCMStatus(void)
Possible values:
OCM_DEVICE_ON,
OCM_DEVICE_OFF,
OCM_DEVICE_POWERING_UP,
OCM_DEVICE_POWERING_OFF
6.1.3 SFP Library Usage
1. User needs to include the header file of the library into the application. For SFP, It will be
<sfp_interface.h> file.
2. After including the header file user needs to initialize the library by calling the SFPInterfaceInit()
function. API returns 0 on success and error code on failure.
[Once Init is successful, multiple APIs can be called before deinit.]
3. Call the relevant API from following list in SFP Interface Table to perform operation on SFP I2C
interface. This functions expects different arguments. sfp_interface.h describes all SFP functions
operations, input & output parameters.
API returns 0 on success, -1 if SFPInterfaceInit not performed / failed and relevant error code on
other failures.
4. De-initialize the library by calling the SFPInterfaceDeInit(). API returns 0 on success and error
code on failure.
5. Link the library while compiling the application by “-li2cinterface”.
SFP Interface Table:
Sr
No.
Command
API
Remarks