Location:
bt_sock.h
Supported from 6.1
Identifiers for HCI commands.
Such commands allow the ACL link to be manipulated. They can be issued by ioctl (RSocket::Ioctl()
) calls to a L2CAP or RFCOMM socket. They have a level parameter (aLevel
in RSocket::Ioctl()
) of KSolBtHCI
.
For more information on HCI commands, see BS1.
static const TUint KHCIAddSCOConnIoctl
Add_SCO_Connection command.
The ioctl takes a THCIAddSCOConnectionIoctl
parameter in a THCIAddSCOConnectionBuf
buffer.
static const TUint KHCIRemoveSCOConnIoctl
Disconnect command.
The ioctl takes a THCIConnHandle
parameter in a TPckgBuf<THCIConnHandle>
buffer.
static const TUint KHCIAuthRequestIoctl
Authentication_Requested command.
No ioctl parameters are required.
static const TUint KHCIEncryptIoctl
Set_Connection_Encryption command.
The ioctl takes a THCISetEncryptionIoctl
parameter in a THCISetEncryptionBuf
buffer.
static const TUint KHCIReadPageTimeoutIoctl
Read_Page_Timeout command.
The ioctl takes a TUint16
parameter in a TPckgBuf<TUint16>
buffer.
static const TUint KHCIWritePageTimeoutIoctl
Write_Page_Timeout command.
The ioctl takes a TUint16
parameter in a TPckgBuf<TUint16>
buffer.
static const TUint KHCIReadScanEnableIoctl
Read_Scan_Enable command.
The ioctl takes a TUint16
parameter in a TPckgBuf<TUint16>
buffer.
static const TUint KHCIWriteScanEnableIoctl
Write_Scan_Enable command.
The ioctl takes a THCIScanEnableIoctl
parameter in a TPckgBuf<THCIScanEnableIoctl>
buffer.
static const TUint KHCIReadDeviceClassIoctl
Read_Class_of_Device command.
The ioctl takes a THCIDeviceClassIoctl
parameter in a THCIDeviceClassBuf
buffer.
static const TUint KHCIWriteDeviceClassIoctl
Write_Class_of_Device command.
This ioctl takes a THCIDeviceClassIoctl
, packaged in a THCIDeviceClassBuf
.
static const TUint KHCIReadVoiceSettingIoctl
Read_Voice_Setting command.
This ioctl takes a TUint16
parameter packaged in a TPckgBuf<TUint16>
.
static const TUint KHCIWriteVoiceSettingIoctl
Write_Voice_Setting command.
This ioctl takes a TUint16
, packaged in a TPckgBuf<TUint16>
.
static const TUint KHCIReadHoldModeActivityIoctl
Read_Hold_Mode_Activity command: unsupported.
static const TUint KHCIWriteHoldModeActivityIoctl
Write_Hold_Mode_Activity command: unsupported.
static const TUint KHCILocalVersionIoctl
Read_Local_Version_Information command.
This ioctl takes a THCILocalVersionIoctl
, packaged in a THCILocalVersionBuf
.
static const TUint KHCILocalFeaturesIoctl
Read_Local_Supported_Features command.
This ioctl takes a TUint
parameter packaged in a TPckgBuf<TUint>
.
static const TUint KHCICountryCodeIoctl
Read_Country_Code command.
This ioctl takes a TUint8
parameter packaged in a TPckgBuf<TUint8>
.
static const TUint KHCILocalAddressIoctl
Read_BD_ADDR command.
This ioctl takes a TBTDevAddr
parameter packaged in a TPckgBuf<TBTDevAddr>
.
static const TUint KHCIWriteDiscoverabilityIoctl
Write_Current_IAC_LAP command.
This ioctl takes a TUint32
parameter packaged in a TPckgBuf <TUint32>
.
static const TUint KHCIReadDiscoverabilityIoctl
Read_Current_IAC_LAP command.
This ioctl takes no parameters.
static const TUint KHCIWriteVendorSpecificFrameIoctl
Vendor-specific raw frame write, with response event.
This should be used only when the command encapsulated in the frame generates a response event (a vendor-specific debug event) that is returned as a raw frame on the ioctl's completion.
The raw frame should be a properly formatted HCI frame and not be concerned with HCTL framing, which the HCI will provide. It should include the following fields:
Opcode: 16 bits
Parameter total length : 8 bits
Packed parameters: remaining bytes
Package the frame as a TDes8*
.
static const TUint KHCIWriteVendorSpecificFrameNoEventExpectedIoctl
Vendor specific raw frame write, with no response event.
This should be used when the command generates only a command complete event with no further information or events.
Package the frame as a TDes8*
. For information on frame formatting, see the KHCIWriteVendorSpecificFrameIoctl
.