beautypg.com

Hcireadpagescanperiodmode – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual

Page 212

background image

194

CATC BTT

RAINER

2.11

C

HAPTER

User’s Manual

Return values

Returns a list with two values: status and page scan mode.

Status (element 0) is one of the following:

“Success”

“Failure”

Page scan mode (element 1) is the one-byte page scan mode value.
(0=Mandatory page scan mode; 1=Optional page scan mode I; 2=Optional
page scan mode II; 3=Optional page scan mode III.)

Comments

Reads the page scan mode value. This value indicates the mode used for
default page scan.

Example

result = HCIReadPageScanMode();

Trace("HCIReadPageScanMode returned: ", result[0], "\n");

if (result[0] == "Success")

{

Trace("Page scan mode is: 0x", result[1], "\n");

}

HCIReadPageScanPeriodMode

HCIReadPageScanPeriodMode()

Return values

Returns a list with two values: status and page scan period mode.

Status (element 0) is one of the following:

“Success”

“Failure”

Page scan period mode (element 1) is the one-byte page scan period mode
value. (0=P0; 1=P1; 2=P2.)

Comments

Reads the page scan period mode value. Each time an inquiry response
message is sent, the Bluetooth device will start a timer, the value of which
depends on the page scan period mode.

Parameter

Meaning

Default Value

Comments

N/A