User's Guide
II-VI Incorporated
375 Saxonburg Boulevard
Saxonburg, PA 16056
T. 724.352.4455 | F. 724.352.5284 | www.ii-vi.com
3. Link the library while compiling the application by “-li2cinterface”.
Common Interface Table:
Sr
No.
Command
API
Remarks
1
Get
Diagnostics
Data
int
GetDiagnosticsData
(T_DIAG *diag)
typedef struct _diag
{ uint8_t conf_reg; // Configuration Register
uint8_t mfg_id; // Manufacturing ID
uint8_t rev_id; // Revision ID
uint8_t conv_rate; // Conversion Rate
uint8_t ch_disable_reg; // Channel Disable
uint8_t status_reg; // Status Register
float temp; // Temperature
float channel[7]; // channels
} T_DIAG;
/* Diagnostics Parameters */
/* Channel array contains values as mentioned below:
Channel[0]: TIA OUT
Channel[1]: Ref Voltage
Channel[2]: Current_PL
Channel[3]: +3v3
Channel[4]: VAdaptor
Channel[5]: Pack_Load
Channel[6]: +5VUSB
*/
6.2 LOGGING
Log files are generated at location “/var/log”. Instrument specific files are generated ex. OTDR.log,
OCM.log.
These log files maintain entries for Interface Library API calls and additional logged error points, useful
processed data from Instruments.
Roll over mechanism keeps latest 2 log files for each instrument with maximum 5 MB size for each file.