beautypg.com

L2capsenddatafrompipe, L2capwaitforconnection, L2capsenddatafrompipe l2capwaitforconnection – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual

Page 279

background image

261

CATC BTT

RAINER

2.11

C

HAPTER

User’s Manual

L2CAPSendDataFromPipe

L2CAPSendDataFromPipe(ChannelID, PipeName)

Return value

“Success”

“Timed out”

“Not supported” (invalid data type)

“Not connected”

“Pipe not found”

Comments

An L2CAP connection must already be established with the device. The
pipe specified must already be set up in the Data Transfer Manager. The
pipe should not be open when L2CAPSendDataFromPipe is called.

Example

L2CAPSendDataFromPipe(0x0040, "Pipe1");

L2CAPWaitForConnection

L2CAPWaitForConnection(Timeout)

Return value

“Success”

“Timed out”

Parameter

Meaning

Default Value

Comments

ChannelID

L2CAP Chan-

nelID to send

data to

PipeName

Name of the

transmit data

pipe to get

data to send

This pipe must exist.

Parameter

Meaning

Default Value

Comments

Timeout

Time in ms to

wait for an

incoming

L2CAP con-

nection

0 (Infinite

wait)

Use 0 as the timeout value to wait infinitely.