Previous PageTable Of Contents../index.htmlIndexNext Page

ATFX_SPEED( )

Description | Example | Errors

Name:

long ATFX_SPEED(dev)

Inputs:

int dev

fax channel device handle

Returns:

final transfer speed if successful

AT_FAILURE if error

Includes:

srllib.h

dxxxlib.h

faxlib.h

Category:

extended attribute

Mode:

synchronous

 

Top Of PageDescription

The ATFX_SPEED( ) function returns the fax transfer speed (in baud) of the last transmitted page. This information is available after Phase B is completed. For transfers that do not renegotiate Phase B, issuing ATFX_SPEED( ) at the completion of a fax session returns the transfer baud rate for the entire session.

Parameter

Description

dev

Specifies the channel device handle for the fax channel obtained when the channel was opened.

The data provided by this function is updated each time the fax transfer completes Phase B of the T.30 protocol. After a fax session terminates, the value from the last fax transfer is available until the start of a new fax session.

For example, ATFX_SPEED( ) returns the equate DF_14400BAUD to indicate 14.4 Kbps transfer speed.

NOTE:
Between multiple Phase B negotiations during the same fax session, ATFX_SPEED( ) returns the Phase B transfer rate information from the previously completed Phase B negotiation.

To monitor the transfer speed for each completed Phase B negotiation, you must enable Phase B events (DF_PHASEB in the fx_rcvfax( ), fx_rcvfax2( ) or fx_sendfax( ) function) and issue ATFX_SPEED( ) when the Phase B event (TFX_PHASEB) occurs.

If the application has enabled the generation of Phase B events, you can determine the baud rate set for the transmission by calling the ATFX_SPEED( ) function in the handler routine for the Phase B event.

Top Of PageExample

Top Of PageErrors

If one of the following conditions is present, this function fails and returns AT_FAILURE:


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Intel Corporation
All rights reserved
This page generated February, 2002