MCoreHci Class Reference

class MCoreHci

All non-static Bluetooth APIs needed by the HCI components are funnelled through this class to be handed out as the Core HCI sees fit.

Member Functions Documentation

MchCancelIoctl(TUint, TUint, TAny *)

voidMchCancelIoctl(TUintaLevel,
TUintaName,
TAny *aStackSAP
)[pure virtual]

Cancel HCI level Ioctl

Parameters

TUint aLevelThe Ioctl level
TUint aNameThe Ioctl function number
TAny * aStackSAPA pointer to the SAP, used to track Ioctls

MchGetOption(TUint, TDes8 &)

TInt MchGetOption(TUintaName,
TDes8 &aData
)[pure virtual]

Gets option.

Parameters

TUint aNameoption to set
TDes8 & aDatadescriptor to be filled with option data

MchHctlPluginInterface(const TUid)

TAny *MchHctlPluginInterface(const TUidaUid)[pure virtual]

HCI uses this function to return a pointer to an Interface provided by the HCTL plugin.

Parameters

const TUid aUidUID of the API to be retrieved from the HCTL.

MchIoctl(TUint, TUint, TDes8 *, TAny *)

voidMchIoctl(TUintaLevel,
TUintaName,
TDes8 *aOption,
TAny *aStackSAP
)[pure virtual]

HCI level Ioctl

Parameters

TUint aLevelThe Ioctl level
TUint aNameThe Ioctl function number
TDes8 * aOptionData associated with this Ioctl
TAny * aStackSAPA pointer to the SAP, used to track Ioctls

MchSetChannelObserver(MHCTLChannelObserver &)

voidMchSetChannelObserver(MHCTLChannelObserver &aHCIChannelObserver)[pure virtual]

HCI uses this function to be given a reference to MHCTLChannelObserver which is interested in the transport sub-channels.

Parameters

MHCTLChannelObserver & aHCIChannelObserverprovides interface to the observer

MchSetCommandEventObserver(MHCICommandEventObserver &)

voidMchSetCommandEventObserver(MHCICommandEventObserver &aHCICommandEventObserver)[pure virtual]

HCI uses this function to be given a reference to MHCICommandEventObserver which is interested in command related events.

Parameters

MHCICommandEventObserver & aHCICommandEventObserverprovides interface to the observer

MchSetControllerStateObserver(MControllerStateObserver &)

voidMchSetControllerStateObserver(MControllerStateObserver &aHCIPowerStateObserver)[pure virtual]

HCI uses this function to be given a reference to MControllerStateObserver which is interested in the state of the power to the Bluetooth chip.

Parameters

MControllerStateObserver & aHCIPowerStateObserverprovides interface to the observer

MchSetDataEventObserver(MHCIDataEventObserver &)

voidMchSetDataEventObserver(MHCIDataEventObserver &aHCIDataEventObserver)[pure virtual]

HCI uses this function to be given a reference to MHCIDataEventObserver which is interested in data related events.

Parameters

MHCIDataEventObserver & aHCIDataEventObserverprovides interface to the observer

MchSetDataObserver(MHCIDataObserver &)

voidMchSetDataObserver(MHCIDataObserver &aHCIDataObserver)[pure virtual]

HCI uses this function to be given a reference to MHCIDataObserver which is interested in incoming data.

Parameters

MHCIDataObserver & aHCIDataObserverprovides interface to the observer

MchSetHCICommandQueue(MHCICommandQueue &)

voidMchSetHCICommandQueue(MHCICommandQueue &aHCICommandQueue)[pure virtual]

HCI uses this function to be given a reference to MHCICommandQueue which allows it to manipulate the command queue when necessary.

Parameters

MHCICommandQueue & aHCICommandQueueprovides interface to command queue

MchSetHardResetInitiator(MHardResetInitiator &)

voidMchSetHardResetInitiator(MHardResetInitiator &aHardResetInitiator)[pure virtual]

HCI uses this function to be given a reference to MHardResetInitiator which allows it to initiate a hard reset of the controller.

Parameters

MHardResetInitiator & aHardResetInitiatorprovides interface to initiate a hard reset

MchSetOption(TUint, const TDesC8 &)

TInt MchSetOption(TUintaName,
const TDesC8 &aData
)[pure virtual]

Sets option.

Parameters

TUint aNameoption to set
const TDesC8 & aDataoption value

MchSetPhysicalLinksState(MPhysicalLinksState &)

voidMchSetPhysicalLinksState(MPhysicalLinksState &aPhysicalLinksState)[pure virtual]

HCI uses this function to be given a reference to MPhysicalLinksState

Parameters

MPhysicalLinksState & aPhysicalLinksStateprovides information about physical link