beautypg.com

M1966_ch_init – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual

Page 24

background image

73M1866B/73M1966B Reference Driver User Guide

UG_1x66B_015

24

Rev. 2.7

6.1.1 M1966_CH_INIT

Description

Performs 73M1x66 channel initialization. This includes initialize all default registers and country specific
threshold parameters. This IOCTL requires the country code listed in M1966_COUNTRY_CODE as input.
The FXO channel will be initialized according to the default setting parameter of the input country code.
The default setting parameter can be found in the 73m1966_cntry_tbl.c file. See also
M1966_GET_COUNTRY_CONFIG

and M1966_SET_COUNTRY_CONFIG for run-time modification of country

default setting.

#define M1966_CH_INIT

_IOWR(0xA4,0xC8,unsigned int)


Prototype

int ioctl (

int chan_fd,

int M1966_CH_INIT,

unsigned long param );


Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

M1966_CH_INIT

I/O control identifier for this operation.

unsigned long

param

Country code as listed in M1966_COUNTRY_CODE.


Return Values

Data Type

Description

int

-1 – Failed to obtain PLL_LOCKED on device.
0 – Successful.