bluetooth/btstack/linkmgr/physicallinks.h
branchRCL_3
changeset 22 786b94c6f0a4
parent 17 32ba20339036
child 25 99439b07e980
equal deleted inserted replaced
21:14e240312f6f 22:786b94c6f0a4
   111 	TLowPowModeCmdController(CPhysicalLink& aLink, MHCICommandQueue& aCmdController);
   111 	TLowPowModeCmdController(CPhysicalLink& aLink, MHCICommandQueue& aCmdController);
   112 	void Abort();
   112 	void Abort();
   113 	
   113 	
   114 	TInt ExitMode(TBTLinkMode aMode, THCIConnHandle aHandle);
   114 	TInt ExitMode(TBTLinkMode aMode, THCIConnHandle aHandle);
   115 	TInt ChangeMode(TBTLinkMode aMode, THCIConnHandle aHandle);
   115 	TInt ChangeMode(TBTLinkMode aMode, THCIConnHandle aHandle);
       
   116 	
       
   117 	TInt ExecuteModeChange(TBTLinkMode aTargetMode);
   116 
   118 
   117 private:	// events from MHCICommandQueueClient
   119 private:	// events from MHCICommandQueueClient
   118 	virtual void MhcqcCommandEventReceived(const THCIEventBase& aEvent, const CHCICommandBase* aRelatedCommand);
   120 	virtual void MhcqcCommandEventReceived(const THCIEventBase& aEvent, const CHCICommandBase* aRelatedCommand);
   119 	virtual void MhcqcCommandErrored(TInt aErrorCode, const CHCICommandBase* aCommand);
   121 	virtual void MhcqcCommandErrored(TInt aErrorCode, const CHCICommandBase* aCommand);
   120 	
   122 	
   125 	void SniffL(THCIConnHandle aHandleToRemote);
   127 	void SniffL(THCIConnHandle aHandleToRemote);
   126 	void ExitSniffL(THCIConnHandle aHandleToRemote);
   128 	void ExitSniffL(THCIConnHandle aHandleToRemote);
   127 	void HoldL(THCIConnHandle aHandle);
   129 	void HoldL(THCIConnHandle aHandle);
   128 	void ParkL(THCIConnHandle aHandleToRemote);
   130 	void ParkL(THCIConnHandle aHandleToRemote);
   129 	void ExitParkL(THCIConnHandle aHandleToRemote);
   131 	void ExitParkL(THCIConnHandle aHandleToRemote);
   130 
   132 	
   131 private:
   133 private:
   132 	CPhysicalLink&		iParent;
   134 	CPhysicalLink&		iParent;
   133 	MHCICommandQueue&	iCmdController;
   135 	MHCICommandQueue&	iCmdController;
   134 	TBool				iOutstandingCmd;
   136 	TBool				iOutstandingCmd;
       
   137 	TBTLinkMode			iTargetMode;
   135 	};
   138 	};
   136 
   139 
   137 /**
   140 /**
   138 	The following class controls disconnect commands and related events. 
   141 	The following class controls disconnect commands and related events. 
   139 	It bypasses HCI_Facade to keep deep control of all events including errors. 
   142 	It bypasses HCI_Facade to keep deep control of all events including errors. 
   330 	TInt Authenticate(TBool aRequireAuthenticatedLinkKey);
   333 	TInt Authenticate(TBool aRequireAuthenticatedLinkKey);
   331 	TInt ChangeLinkKey();
   334 	TInt ChangeLinkKey();
   332 
   335 
   333 	TInt ChangeConnectionPacketType(TUint16 aType);
   336 	TInt ChangeConnectionPacketType(TUint16 aType);
   334 
   337 
   335 	TInt ExitMode(TBTLinkMode aMode);
       
   336 	TInt RequestHold();
   338 	TInt RequestHold();
   337 	TInt RequestSniff();
       
   338 	TInt RequestPark();
       
   339 	TInt RequestActive();
       
   340 	TInt RequestChangeRole(TBTBasebandRole aRole);
   339 	TInt RequestChangeRole(TBTBasebandRole aRole);
   341 
   340 
   342 	void ReadNewPhysicalLinkMetricValue(TUint aIoctlName, CBTProxySAP& aSAP, TInt aCurrentValue);
   341 	void ReadNewPhysicalLinkMetricValue(TUint aIoctlName, CBTProxySAP& aSAP, TInt aCurrentValue);
   343 
   342 
   344 	TInt OverridePark();
   343 	TInt OverridePark();
   488 
   487 
   489 	void QueueLPMOverrideTimer(TInt aTimeout);
   488 	void QueueLPMOverrideTimer(TInt aTimeout);
   490 	void NotifyStateChange(TBTBasebandEventNotification & aEvent);
   489 	void NotifyStateChange(TBTBasebandEventNotification & aEvent);
   491 
   490 
   492 	TBool IsPhysicalLinkIdle() const;
   491 	TBool IsPhysicalLinkIdle() const;
   493 	TInt RequestMode(TBTLinkMode aMode);
       
   494 	TBasebandTime CalculatePageTimeout(TBasebandPageTimePolicy aPolicy, TUint8 aRepMode, TBool aValidClockOffset);
   492 	TBasebandTime CalculatePageTimeout(TBasebandPageTimePolicy aPolicy, TUint8 aRepMode, TBool aValidClockOffset);
   495 	TBool IsPasskeyMinLengthOK();
   493 	TBool IsPasskeyMinLengthOK();
   496 	TBool PeerSupportsLinkKeyRegeneration() const;
   494 	TBool PeerSupportsLinkKeyRegeneration() const;
   497 
   495 
   498 	void DeleteRoleSwitcher();
   496 	void DeleteRoleSwitcher();