User's Guide

II-VI Incorporated
375 Saxonburg Boulevard
Saxonburg, PA 16056
T. 724.352.4455 | F. 724.352.5284 | www.ii-vi.com
If there is issue with Device
on XMFH, OFF to ON
transition will indicate status
sequence as:
SFP_DEVICE_OFF >
SFP_DEVICE_POWERING_UP
> Post 3-4 Sec timeout >
SFP_DEVICE_OFF
6.1.4 OCC Library Usage
1. User needs to include the header file of the library into the application. For OCC, It will be
<occ_interface.h> file.
2. After including the header file user needs to initialize the library by calling the OCCInterfaceInit()
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 OCC Interface Table to perform operation on OCC I2C
interface. This functions expects different arguments. occ_interface.h describes all OCC
functions operations, input & output parameters.
API returns 0 on success, -1 if OCCInterfaceInit not performed / failed and relevant error code
on other failures.
4. De-initialize the library by calling the OCCInterfaceDeInit(). API returns 0 on success and error
code on failure.
5. Link the library while compiling the application by -li2cinterface.
OCC Interface Table:
Sr
No.
Command
API
Remarks
1
Init - Custom API
int OCCInterfaceInit(void)
2
DeInit - Custom
API
int OCCInterfaceDeInit(void)