User Manual

UG_1x22_053 73M1822/73M1922 Control Module User Guide
Rev. 1.0 27
6.1.6 M1X22_SET_SAMPLING_FREQ
Description
Select modem sample rate. The 73M1x22 device can operate at many different sample rates ranging
from 7.2 kHz to 16 kHz. The device defaults to 7.2 kHz operation with a 24.576 MHz crystal upon startup
and can be changed using this ioctl.
Notes: Changing of the sample rate will affect the following:
1. Barrier interface operation a momentarily lost of synchronization on the barrier interface is
expected. However, the driver will automatically attempt to recover barrier synchronization. The
SYNC lost event is sent and should be followed by SYNC restored event when the barrier is synced
up again.
#define M1X22_SET_SAMPLING_FREQ _IOWR(0xA4, 0xA8, unsigned int)
Prototype
int ioctl (
int chan_fd,
int M1X22_SET_SAMPLING_FREQ,
unsigned long param );
Parameters
Data Type Name Description
int
chan_fd
Channel descriptor.
int
M1X22_SET_SAMPLING_FREQ
I/O control identifier for this operation.
unsigned long param
Sample rate selection as defined in
M1X22_SAMPLE_RATE_SELECTION
.
Return Values
Data Type Description
int
0 – Successful.
-EFAULT Failed to set sample rate.