| _LIT | ( | KRFCOMMDesC | , |
| "RFCOMM" | |||
| ) | |||
Descriptor name for RFCOMM
| _LIT | ( | KL2CAPDesC | , |
| "L2CAP" | |||
| ) | |||
Descriptor name for L2CAP
| const TUint16 | KMinUserPSM | [static] |
This is the minimum user PSM. Smaller PSM values are possible but are reserved for use by the Bluetooth stack only.
| const TUint16 | KMinPSM | [static] |
This constant has been deprecated since its name is misleading becasue it doesn't represent the absolute minimum PSM but the minimum user PSM instead. Use KMinUserPSM instead of this constant. Deprecated
BT options.
| Enumerator | Value | Description |
|---|---|---|
| KBTSetNoSecurityRequired | 0x997 |
Set No security required for Security Mode 4 |
| KBTRegisterCodService | 0x998 |
Set a CoD Service bit(s) |
| KBTSecurityDeviceOverride | 0x999 |
Override device security |
| typedef TPckgBuf< TBTServiceSecurityPerDevice > | TBTServiceSecurityPerDeviceBuf |
Package definition for securty settings
| const TInt | KErrInsufficientBasebandResources | [static] |
Insufficient baseband resources error value
| const TInt | KErrProxyWriteNotAvailable | [static] |
Proxy write not available error value
| const TInt | KErrReflexiveBluetoothLink | [static] |
Reflexive BT link error value
| const TInt | KErrPendingPhysicalLink | [static] |
Physical link connection already pending when trying to connect the physical link
| const TInt | KErrRemoteDeviceIndicatedNoBonding | [static] |
Dedicated bonding attempt failure when the remote device responds with No-Bonding
| const TInt | KErrSAPUnexpectedEvent | [static] |
L2CAP unexpected SAP event error code
| const TInt | KErrHCILinkDisconnection | [static] |
L2CAP HCI link disconnection error code
| const TInt | KErrConfigBadParams | [static] |
L2CAP bad configuration parameters error code
| const TInt | KErrConfigUnknownOptions | [static] |
L2CAP unknown configuration options error code
| const TInt | KErrL2CAPAccessRequestDenied | [static] |
L2CAP access request denied error code
| const TInt | KErrL2PeerRejectedCommand | [static] |
L2CAP peer rejected command error code
| const TInt | KErrHostResNameTooLong | [static] |
L2CAP host resolver name too long error code
| const TInt | KErrL2CAPMaxTransmitExceeded | [static] |
L2CAP in reliable mode: the maximum L2Cap retransmissions have been made and channel will disconnect error code
| const TInt | KErrL2CAPDataControllerDetached | [static] |
L2CAP problems (e.g. no memory) whilst sending data error code
| const TInt | KErrL2CAPConfigPending | [static] |
L2CAP configuration is in progress error code
| const TInt | KErrL2CAPConfigAlreadyInProgress | [static] |
L2CAP attempt to alter config whilst configuration is in progress error code
| const TInt | KErrL2CAPNoFreeCID | [static] |
L2CAP no more channel IDs available error code
| const TInt | KErrL2CAPPeerDoesNotSupportRequestedChannelMode | [static] |
L2CAP peer doesn't support channel modes satisfying requested channel configuration.
| const TInt | KErrL2CAPInvalidPacketSequenceNumber | [static] |
L2CAP packet with an invalid sequence number was received
| const TInt | KErrL2CAPInvalidAcknowledgementNumber | [static] |
L2CAP invalid acknowledgment number was received
| const TInt | KErrL2CAPIllegalRemoteBehavior | [static] |
L2CAP remote broke the L2CAP specification
| const TInt | KErrL2CAPNegotiatedDifferentModesForEachDirection | [static] |
L2CAP different channel modes were negotiated for incoming and outgoing direction
| const TInt | KErrL2CAPIncomingSduSegmentationError | [static] |
L2CAP received I-Frame does not match the sequence of start, continuation, end of SDU
| const TInt | KErrL2CAPIncomingSduTooBig | [static] |
L2CAP received SDU size is larger than the negotiated MTU
| const TInt | KErrL2CAPIncomingIFrameTooSmall | [static] |
L2CAP Incoming I-Frame size is too small
| const TInt | KErrL2CAPIncomingIFrameTooBig | [static] |
L2CAP Incoming I-Frame information payload is larger than the negotiated MPS
| const TInt | KErrL2CAPInvalidIncomingSFrameSize | [static] |
L2CAP Incoming S-Frame size is incorrect
| const TInt | KErrL2CAPAttemptToSetMinMtuGreaterThanMtu | [static] |
L2CAP An attempt to configure minimal acceptable MTU that's larger than the preferred MTU was made
| const TInt | KErrL2CAPAttemptToSetMinMruGreaterThanMru | [static] |
L2CAP An attempt to configure minimal acceptable MRU that's larger than the preferred MRU was made
| const TInt | KErrHostResNoMoreResults | [static] |
Host resolver has no more results error code
| const TUint | KHostResName | [static] |
Host resolver name option. This is mutually exclusive with KHostResEir
| const TUint | KHostResEir | [static] |
Host resolver Eir option. This is mutually exclusive with KHostResName
| const TInt | KL2CAPUpdateChannelConfigIoctl | [static] |
Change configuration parameters Ioctl name
| const TInt | KL2CAPPretendIncomingSduQFull | [static] |
Pretend incoming SDU Queue is full - internal testing only
| typedef TPckgBuf< TLMDisconnectACLIoctl > | TLMDisconnectACLBuf |
Package for TLMDisconnectACLIoctl structure
| _LIT8 | ( | KDisconnectOnePhysicalLink | , |
| "1" | |||
| ) | |||
Specifes one physical link should be disconnected
| _LIT8 | ( | KDisconnectAllPhysicalLinks | , |
| "A" | |||
| ) | |||
Specifes all physical links should be disconnected
| _LIT8 | ( | KDisconnectAllPhysicalLinksForPowerOff | , |
| "P" | |||
| ) | |||
Specifes all physical links should be disconnected for power off
| const TUint | KHCIRemoveSCOConnIoctl | [static] |
Remove SCO connection Ioctl Deprecated
| const TUint | KHCIChangePacketTypeIoctl | [static] |
Change packet types allowed Ioctl Deprecated
| const TUint | KHCIReadPageTimeoutIoctl | [static] |
Read page timeout Ioctl Deprecated
| const TUint | KHCIWritePageTimeoutIoctl | [static] |
Write page timeout Ioctl Deprecated
| const TUint | KHCIReadScanEnableIoctl | [static] |
Read scan enable Ioctl Deprecated
See also: bt_subscribe.h
| const TUint | KHCIWriteScanEnableIoctl | [static] |
Write scan enable Ioctl Deprecated
See also: bt_subscribe.h
| const TUint | KHCIReadDeviceClassIoctl | [static] |
Read device class Ioctl Deprecated
See also: bt_subscribe.h
| const TUint | KHCIWriteDeviceClassIoctl | [static] |
Write device class Ioctl Deprecated
See also: bt_subscribe.h
| const TUint | KHCIReadVoiceSettingIoctl | [static] |
Read voice settings Ioctl Deprecated
| const TUint | KHCIWriteVoiceSettingIoctl | [static] |
Write voice settings Ioctl Deprecated
| const TUint | KHCIReadHoldModeActivityIoctl | [static] |
Read hold mode activity Ioctl Deprecated
| const TUint | KHCIWriteHoldModeActivityIoctl | [static] |
Write hold mode activity Ioctl Deprecated
| const TUint | KHCILocalAddressIoctl | [static] |
Local address Ioctl Deprecated
See also: bt_subscribe.h
| const TUint | KHCIWriteDiscoverabilityIoctl | [static] |
Write discoverability Ioctl Deprecated
See also: bt_subscribe.h
| const TUint | KHCIReadDiscoverabilityIoctl | [static] |
Read discoverability Ioctl Deprecated
See also: bt_subscribe.h
| const TUint | KHCIReadAuthenticationEnableIoctl | [static] |
Read authentification enabled Ioctl Deprecated
| const TUint | KHCIWriteAuthenticationEnableIoctl | [static] |
Write authentification enabled Ioctl Deprecated
Enumerations for the four possible scan enable modes. Use Inquiry scan for discoverability and Page scan for connectability.
Use with KHCIReadScanEnableIoctl and KHCIWriteScanEnableIoctl. Deprecated
See also: bt_subscribe.h
| Enumerator | Value | Description |
|---|---|---|
| EHCINoScansEnabled | 0x00 |
No scans enabled. |
| EHCIInquiryScanOnly |
Inquiry scan only. | |
| EHCIPageScanOnly |
Page scan only. | |
| EHCIInquiryAndPageScan |
Both inquiry and page scan enabled. |
| typedef TPckgBuf< THCIScanEnableIoctl > | THCIScanEnableBuf |
Package for THCIScanEnableIoctl structure Deprecated
| typedef TPckgBuf< TLMAddSCOConnectionIoctl > | TLMAddSCOConnectionBuf |
Package for DeprecatedTLMAddSCOConnectionIoctl structure
| typedef TPckgBuf< THCISetEncryptionIoctl > | THCISetEncryptionBuf |
Package for DeprecatedTHCISetEncryptionIoctl structure
| typedef TPckgBuf< THCIDeviceClassIoctl > | THCIDeviceClassBuf |
Package for DeprecatedTHCIDeviceClassIoctl structure
| typedef TPckgBuf< THCILocalVersionIoctl > | THCILocalVersionBuf |
Package for DeprecatedTHCILocalVersionIoctl structure
L2CAP Get / Set Options.
| Enumerator | Value | Description |
|---|---|---|
| KL2CAPOutboundMTUForBestPerformance |
Get the outbound MTU size taking into account both the negotiated MTU size and best use of underlying packet sizes. For example: If the default outgoing MTU of 672 has been negotiated for a L2CAP channel that is in Retransmission or Flow control mode then this GetOpt will return an outgoing MTU of 668 bytes. This allows a maximally sized SDU (which due to this adjustment will be 668 bytes) to be sent in two DH5 packets. KL2CAPOutboundMTUForBestPerformance may also be used to set the current negotiated (or to be negotiated) outbound MTU size. Note that the outbound MTU size returned when using KL2CAPOutboundMTUForBestPerformance with a GetOpt may not be the same as the outbound MTU size previously set when using KL2CAPOutboundMTUForBestPerformance with a SetOpt. | |
| KL2CAPGetOutboundMTU | KL2CAPOutboundMTUForBestPerformance |
This is the legacy value for setting getting \ setting the outbound MTU size and behaves in the same way as KL2CAPOutboundMTUForBestPerformance. See also: KL2CAPOutboundMTUForBestPerformance |
| KL2CAPGetDebug1 |
Debug Command | |
| KL2CAPInboundMTU |
Get / Set the current inbound MTU size | |
| KL2CAPRTXTimer |
Change the extended L2CAP command retransmission timeout | |
| KL2CAPERTXTimer |
Change the L2CAP command retransmission timeout | |
| KL2CAPGetMaxOutboundMTU |
Get the max outbound MTU supported by the stack | |
| KL2CAPGetMaxInboundMTU |
Get the max inbound MTU supported by the stack | |
| KL2CAPUpdateChannelConfig |
Get and Set the current configuration parameters | |
| KL2CAPNegotiatedOutboundMTU |
Get / Set the current negotiated (or to be negotiated) outbound MTU size | |
| KL2CAPTestConfigure | ||
| KL2CAPDebugFlush | ||
| KL2CAPVersion1_2 | ||
| KL2CAPHeapAlloc | ||
| KL2CAPDataPlaneConfig | ||
| KL2CAPOutboundMTUForBestPerformanceWithRestriction |
This is similar to KL2CAPOutboundMTUForBestPerformance except that the caller can specify a restriction that the returned MTU shall not exceed. This is useful for layers above L2CAP that still want an optimal MTU but have their own restrictions on packet size. | |
| KL2CAPLocalPSM |
Return local PSM of the socket (only works before the socket is accepted, stack internal use only) | |
| KL2CAPNegotiatedChannelMode |
Get the negotiated L2CAP channel mode |
| const TL2CAPPort | KL2CAPPassiveAutoBind | [static] |
PSM out of the valid range used for passive auto bind operation
| NONSHARABLE_CLASS | ( | TL2CAPSockAddr | ) |
L2CAP Socket Address.
Use this class to specify a local or remote L2CAP connection end-point, that is Device Address and PSM/CID. When unconnected, the Port() specifies the PSM, once connected it refers to the CID.
See also: TBTSockAddr
| NONSHARABLE_CLASS | ( | TInquirySockAddr | ) |
Socket address class used for inquiries.
Used to specify the inquiry request, and then filled with information about remote devices discovered through the inquiry process.
Use the BTAddr() method to extract the device address to connect to.
Note: Usage of RHostResolver class for Bluetooth protocol.
The RHostResolver class is a generic interface to host name resolution services, such as DNS, that may be provided by particular protocol modules.
The points to remember when using RHostResolver::GetByAddress(), RHostResolver::GetByName(), or RHostResolver::Next() with Bluetooth protocol are:
1) If you operate on one instance of RHostResolver you can perform only one request by calling either RHostResolver::GetByAddress() or RHostResolver::GetByName(). If these functions are called again and if there is more than one possible response for a given host name then that will be returned (The host resolving process will not start from the beginning). It is exactly as if the RHostResolve::Next() method was called.
2) In order to start resolving new hosts from the beginning using the same instance of RHostResolver, the instance must be closed and reopened again.
3) In order to perform several RHostResolver requests they should be issued on separate instances of RHostResolver (many RHostResolver instances might exist and perform requests at the same time).
4) The KHostResIgnoreCache flag is only valid when issuing RHostResolver::GetByAddress() or RHostResolver::GetByName() request for the first time.
5) As an RHostResolver is only intended to be used once, it is recommended that it be closed as soon as it is finished with as the semantics of Cancel merely indicates that one client server request should be cancelled.
| const TInt | KErrRfcommSAPUnexpectedEvent | [static] |
RFCOMM unexpected event error code.
| const TInt | KErrRfcommAlreadyBound | [static] |
RFCOMM SAP already bound error code.
| const TInt | KErrRfcommFrameResponseTimeout | [static] |
RFCOMM frame response timeout error code.
| const TInt | KErrRfcommMuxRemoteDisconnect | [static] |
RFCOMM remote end disconnected error code.
| const TInt | KErrRfcommParameterNegotiationFailure | [static] |
RFCOMM parameter negotiation failure error code.
| const TInt | KErrRfcommNoMoreServerChannels | [static] |
RFCOMM no more server channels available error code.
| const TInt | KErrRfcommMuxChannelErrored | [static] |
RFCOMM Mux channel errored
| const TInt | KRFCOMMRemoteLineStatusCmdIoctl | [static] |
RFCOMM remote line status command Ioctl
| const TInt | KRFCOMMRemotePortNegCmdIoctl | [static] |
RFCOMM remote port negotiation command Ioctl
| const TInt | KRFCOMMRemotePortNegRequestIoctl | [static] |
RFCOMM remote port negotiation request Ioctl
| const TInt | KRFCOMMConfigChangeIndicationIoctl | [static] |
RFCOMM MSC activity Ioctl
| const TInt | KRFCOMMLocalPortParameter | [static] |
RFCOMM local port parameter option (Get + Set)
| const TInt | KRFCOMMGetAvailableServerChannel | [static] |
RFCOMM Get Available server channel option (Get only) Deprecated
| const TInt | KRFCOMMMaximumSupportedMTU | [static] |
RFCOMM maximum supported option (Get + Set)
| const TInt | KRFCOMMGetRemoteModemStatus | [static] |
RFCOMM remote modem status option (Get + Set)
| const TInt | KRFCOMMGetTransmitCredit | [static] |
RFCOMM get transmit credits option
| const TInt | KRFCOMMGetReUsedCount | [static] |
RFCOMM get number of remote used credits option
| const TInt | KRFCOMMFlowTypeCBFC | [static] |
RFCOMM Credit based flow control option (Get + Set)
| const TInt | KRFCOMMErrOnMSC | [static] |
RFCOMM set the value of MSC signals that will cause a disconnect error to be generated
| const TUint | KRFCOMMLocalModemStatus | [static] |
RFCOMM local modem status option (Get + Set)
| const TUint | KRFCOMMForgiveCBFCOverflow | [static] |
RFCOMM only when credit-based flow control is used. When unset (default), the remote overflowing us will cause us to disconnect. When set, we keep the connection up and process as much of the data as we can (i.e. RFCOMM becomes unreliable). (Set only)
Remote port negotiation parameter masks
| Enumerator | Value | Description |
|---|---|---|
| EPMBitRate | 0x0001 |
Remote port negotiation parameter masks for bit rate |
| EPMDataBits | 0x0002 |
Remote port negotiation parameter masks for data bits |
| EPMStopBit | 0x0004 |
Remote port negotiation parameter masks for stop bit |
| EPMParity | 0x0008 |
Remote port negotiation parameter masks for parity |
| EPMParityType | 0x0010 |
Remote port negotiation parameter masks for parity type |
| EPMXOnChar | 0x0020 |
Remote port negotiation parameter masks for on character |
| EPMXOffChar | 0x0040 |
Remote port negotiation parameter masks for off character |
| EPMXOnOffInput | 0x0100 |
Remote port negotiation parameter masks for XOn/Off input |
| EPMXOnOffOutput | 0x0200 |
Remote port negotiation parameter masks for XOn/Off output |
| EPMRTRInput | 0x0400 |
Remote port negotiation parameter masks for read to receive input |
| EPMRTROutput | 0x0800 |
Remote port negotiation parameter masks for read to receive output |
| EPMRTCInput | 0x1000 |
Remote port negotiation parameter masks for RTC input |
| EPMRTCOutput | 0x2000 |
Remote port negotiation parameter masks for RTC output |
Remote port negotiation flow control masks
| Enumerator | Value | Description |
|---|---|---|
| EFCXOnOffInput | 0x01 |
Remote port negotiation flow control masks for XOn/Off input |
| EFCXOnOffOutput | 0x02 |
Remote port negotiation flow control masks for XOn/Off output |
| EFCRTRInput | 0x04 |
Remote port negotiation flow control masks for ready to receive input |
| EFCRTROutput | 0x08 |
Remote port negotiation flow control masks for ready to receive output |
| EFCRTCInput | 0x10 |
Remote port negotiation flow control masks for RTC input |
| EFCRTCOutput | 0x20 |
Remote port negotiation flow control masks for RTC output |
Remote port negotiation validity masks
| Enumerator | Value | Description |
|---|---|---|
| EVMBitRate | 0x01 |
Remote port negotiation validity masks for bit rate |
| EVMDataBits | 0x02 |
Remote port negotiation validity masks for data bits |
| EVMStopBit | 0x04 |
Remote port negotiation validity masks for stop bit |
| EVMParity | 0x08 |
Remote port negotiation validity masks for parity |
| EVMFlowCtrl | 0x10 |
Remote port negotiation validity masks for flow control |
| EVMXOnChar | 0x20 |
Remote port negotiation validity masks for XOn charater |
| EVMXOffChar | 0x40 |
Remote port negotiation validity masks for XOff charater |
| NONSHARABLE_CLASS | ( | TRfcommRemotePortParams | ) |
RF COMM remote port parameters.
| NONSHARABLE_CLASS | ( | TRfcommRPNTransaction | ) |
RF COMM IO control structs.
| const TRfcommChannel | KMinRfcommServerChannel | [static] |
Minimum RFCOMM server channel value
| const TRfcommChannel | KMaxRfcommServerChannel | [static] |
Maximum RFCOMM server channel value
| const TRfcommChannel | KRfcommPassiveAutoBind | [static] |
Channel value out of the valid range used for passive auto bind.
| NONSHARABLE_CLASS | ( | TRfcommSockAddr | ) |
Defines the format of an Rfcomm address.
This class uses the TSockAddr data area to hold the address so that it can be passed through the ESOCK boundary. Assumes that the remote RFCOMM instance is always bound to PSM 3 on L2CAP, so there is no way of specifying another remote PSM.
See also: TBTSockAddr
| NONSHARABLE_CLASS | ( | RBTPhysicalLinkAdapter | ) |
Class to enable modification of a physical link:
Modifications may be requested or prevented (blocked). Whilst a modification is being prevented, any request to perform that modification by this or any other RBTPhysicalLinkAdapter client will be ignored. If a low power mode is being used on the physical link, a call to prevent that low power mode will, if possible, cause the physical link to exit that low power mode. An arbitration between all RBTPhysicalLinkAdapter clients will then occur to decide whether the physical link should remain active or enter another low power mode. (If all low power modes are prevented then that arbitration will result in the physical link remaining active.)
Methods to prevent modifications begin 'Prevent...'
Methods to cancel the prevention of modification begin 'Allow...'
Requests for low power mode modifications, and notification of modifications take the form of continuously repeated requests which can be switched on or switched off.
Only one low power mode requester may active on a single RBTPhysicalLinkAdapter client at a time. If several RBTPhysicalLinkAdapter clients have differing low power mode requests active at a given moment then the priority will be: Hold Sniff Park
Methods to perform these requests start 'Activate...'
Methods to cancel these requests start 'Cancel...'
| NONSHARABLE_CLASS | ( | CBluetoothPhysicalLinkMetrics | ) |
Class to subscribe to physical link metrics
| NONSHARABLE_CLASS | ( | CBluetoothSocket | ) |
This allows Bluetooth ACL socket-based services to be run.
It allows all user-plane data flow to occur, plus control-plane Bluetooth baseband modification capabilities.
For a more detailed description of RBTBaseband functionality see the class and function documentation for RBTPhysicalLinkAdapter.
This class doesn't provide the functionality to directly activate Active mode (this is implementated in class RBTPhysicalLinkAdapter.)
See also: RBTPhysicalLinkAdapter::ActivateActiveRequester() Explicit Active mode requests are made automatically when using the Automatic Sniff Requester utility provided by this class. CBluetoothSocket::SetAutomaticSniffModeRBTPhysicalLinkAdapter