Dialogic 05-0867-005 Table Top Game User Manual


 
sends a frame to the data link layer cc_SndFrame( )
257
Name:
int cc_SndFrame(linedev, sndfrmptr)
Inputs:
LINEDEV linedev
line device handle for the D
channel
L2_BLK *sndfrmptr
pointer to the transmit frame
buffer
Returns:
0 on success
< 0 on failure
Includes:
cclib.h
Category:
Data link layer handling
Mode:
synchronous
Technology:
BRI/SC; PRI (excluding Q.SIG)
!
! !
!
Description
The cc_SndFrame( ) function sends a frame to the data link layer. When the data
link layer is successfully established, the application will receive a
CCEV_D_CHAN_STATUS event. If the data link layer is not established before
the function is called, the function will be returned with a value < 0 indicating
function failure.
NOTE:
To enable Layer 2 access, set parameter number 24 to 01 in the firmware
parameter file. When Layer 2 access is enabled, only the
cc_GetFrame( ) and cc_SndFrame( ) functions can be used (no calls
can be made).
Parameter Description
linedev:
The line device handle for the D channel board.
sndfrmptr:
Pointer to the buffer containing the requested transmit frame.
The transmit frame is stored in the L2_BLK data structure. For
a description of the structure, see Section 6.7. L2_BLK. See the
Example code for details.
!
! !
!
Cautions
The data link layer must be successfully established before the
cc_SndFrame( ) function is called.
This function is not supported for the BRI/2 board.