beautypg.com

Hciwriteencryptionmode, Hciwritelinkpolicysettings, Hciwriteencryptionmode hciwritelinkpolicysettings – Teledyne LeCroy BTTracer_Trainer - BTTrainer Users Manual User Manual

Page 229

background image

211

CATC BTT

RAINER

2.11

C

HAPTER

User’s Manual

HCIWriteEncryptionMode

HCIWriteEncryptionMode(EncryptionMode)

Return value

“Success”

“Failure”

“Invalid parameter”

Comments

Controls whether the local device requires encryption to the remote device
at connection setup.

Example

result = HCIWriteEncryptionMode(0);

HCIWriteLinkPolicySettings

HCIWriteLinkPolicySettings(Address, LinkPolicySettings)

Parameter

Meaning

Default Value

Comments

Encryption

Mode

Encryption

mode:

0 = Encryp-

tion disabled;

1 = Encryp-

tion enabled

for

point-to-point

packets only;

2 = Encryp-

tion enabled

for both

point-to-point
and broadcast

packets;

3-255=Reserv

ed

0

Parameter

Meaning

Default Value

Comments

Address

Bluetooth

address of

device in

question

LinkPolicy

Settings

Range is 0x0000-0x8000.