beautypg.com

9 miscellaneous, Miscellaneous, M1966_threshold_override – Maxim Integrated 73M1866B/73M1966B Reference Driver User Manual

Page 67

background image

UG_1x66B_015

73M1866B/73M1966B Reference Driver User Guide

Rev. 2.7

67

6.9 Miscellaneous

6.9.1 M1966_THRESHOLD_OVERRIDE

Description

Various FXO channel parameters are conveniently grouped and predefined in the country parameter
setting as specified in Section 7.2. These parameters are programmed during channel initialization ioctl
(M1966_CH_INIT). However, these parameters can be overridden at runtime to fine tune to the desired
threshold for the specific installation using this M1966_THRESHOLD_OVERRIDE IOCTL.

Note: This IOCTL must be invoked after M1966_CH_INIT to prevent the parameter from over written by
M1966_CH_INIT

.


#define M1966_THRESHOLD_OVERRIDE _IOWR(0xA4,0xB3,unsigned int)

Prototype

int ioctl (

int chan_fd,

int M1966_THRESHOLD_OVERRIDE,

unsigned long param );


Parameters

Data Type

Name

Description

int

chan_fd

Channel descriptor.

int

M1966_THRESHOLD_OVERRIDE I/O control identifier for this operation.

unsigned long

param

Pointer to structure
M1966_THRESH_OVERRIDE_t

.


Return Values

Data Type

Description

int

-EFAULT – Failed to perform threshold override.
0 – Successful.