M1966_perf_rx_offset_calib – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual
Page 36
73M1866B/73M1966B Reference Driver User Guide
UG_1x66B_015
36
Rev. 2.7
6.1.18 M1966_PERF_RX_OFFSET_CALIB
This IOCTL allows an application program to perform receive DC offset calibration on demand while the
FXO line is in on-hook state,
Description
Performs receive offset calibration.
#define M1966_PERF_RX_OFFSET_CALIB _IOWR(0xA4, 0xF7, unsigned int)
Prototype
int ioctl (
int chan_fd,
int M1966_PERF_RX_OFFSET_CALIB,
unsigned long param );
Parameters
Data Type
Name
Description
int
chan_fd
Channel descriptor.
int
M1966_PERF_RX_OFFSET_CALIB
I/O control identifier for this operation.
unsigned long
param
N/A.
Return Values
Data Type
Description
int
0 – Successful.
-EFAULT– Failed to perform offset calibration.
Example
The following example code illustrates how this IOCTL is used.
Int ret;
ret = ioctl (fd, M1966_PERF_RX_OFFSET_CALIB, NULL);
if (ret < 0)
printf (“Failed to perform offset calibration, error code: %d”, ret);