Hcireadbuffersize() – Teledyne LeCroy Merlins Wand - Users Manual User Manual

Page 197

Advertising
background image

181

CATC M

ERLIN

S

W

AND

2.00

C

HAPTER

C

User’s Manual

Merlin’s Wand Scripting Commands

Return values

Returns a list with two values: status and address.

Status (element 0) is one of the following:

“Success”

“Failure”

Address (element 1) is the address of the local device.

Comments

This command is used to read the value for the BD_ADDR parameter. The
BD_ADDR is a 48-bit unique identifier for a Bluetooth device.

Example

LocalAddress = HCIReadBDADDR();

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

Trace("Local BDADDR:", LocalAddress[1], "\n");

HCIReadBufferSize()

HCIReadBufferSize()

Return values

Returns a list with five values: status, ACL packet length, SCO packet
length, ACL number of packets,
and SCO number of packets.

Status (element 0) is one of the following:

“Success”

“Failure”

ACL packet length (element 1) is the two-byte value of the maximum
length (in bytes) of the data portion of each HCI ACL data packet that the
Host Controller is able to accept.

SCO packet length (element 2) is the one-byte value of the maximum
length (in bytes) of the data portion of each HCI SCO data packet that the
Host Controller is able to accept.

ACL number of packets (element 3) is the total number of HCI ACL data
packets that can be stored in the data buffers of the Host Controller.

SCO number of packets (element 4) is the total number of HCI SCO data
packets that can be stored in the data buffers of the Host Controller.

Parameter

Meaning

Default Value

Comments

N/A

Advertising