The TN_DUR structure is declared as follows:
typedef struct {
short int tn_on; /* Cadence on-time (10msec) */
short int tn_ondev; /* on-time deviation (10msec) */
short int tn_off; /* Cadence off-time (10msec) */
short int tn_offdev; /* off-time deviation (10msec) */
} TN_DUR;
The TN_DUR structure specifies cadence information for a tone and is a member of the TN_DESC structure.
The TN_DESC structure is used in two different parameters of the lm_LearnTone( ) function, and serves the following purposes:
Use the lm_clrdesc( ) function to clear the fields of a TN_DESC structure, including the fields in the TN_FREQ and TN_DUR structures.
Table 4. TN_DUR Structure
Field |
Description |
tn_on |
Length: 2 (short int) Tone-On Time. Specifies the tone-on duration in 10 ms units for the tone cadence. |
tn_ondev |
Length: 2 (short int) Tone-On Time Deviation. Specifies the deviation of the tone-on duration in 10 ms units for the tone cadence. This deviation is subtracted from and added to tn_on to define the minimum and maximum on-time for the cadence. |
tn_off |
Length: 2 (short int) Tone-Off Time. Specifies the tone-off duration in 10 ms units for the tone cadence. |
tn_offdev |
Length: 2 (short int) Tone-Off Time Deviation. Specifies the deviation of the tone-off duration in 10 ms units for the tone cadence. This deviation is subtracted from and added to tn_off to define the minimum and maximum off-time for the cadence. |
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation