Users Manual Instruction Manual

79
CATC BTTRAINER 2.20 APPENDIX A
User’s Manual
A.2.9 Switch_Role
Switches the current role (master/slave) of the calling device with the role of the device
specified.
A.2.10 Write_Link_Policy_Settings
Writes link policy settings for the specified ACL link.
A.3 HCI Host Controller & Baseband Commands
A.3.1 Change_Local_Name
Change_Local_Name allows the user-friendly name to be modified for the BTTrainer.
Command Parameters Examples Comments
BD_ADDR 0x010203040506
Return Events
Role_Change_Complete
Role_Change_Error
Command Parameters Examples Comments
HCI_Handle 0x0001
Link_Policy_Settings 0xF 0x0000: Disable all LM modes
0x0001: Enable master/slave
switch
0x0002: Enable Hold Mode
0x0004: Enable Sniff Mode
0x0008: Enable Park Mode
0xF: Enable all (Default)
Return Events
Write_Link_Policy_Settings_Complete
Write_Link_Policy_Settings_Error
Command Parameters Examples Comments
Name BTTrainer Maximum string length =32
characters
Return Events
Change_Local_Name_Complete
Change_Local_Name_Error