TI BLE5-Stack API Documentation  1.01.12.00
Modules | Files | Functions
Gap Initiator

This module implements the Host Initiator. More...

Modules

 GapInit Constants
 
 GapInit Params
 
 GapInit Structures
 

Files

file  gap_initiator.h
 GAP Initiator layer interface.
 

Functions

status_t GapInit_cancelConnect (void)
 
status_t GapInit_connect (GAP_Peer_Addr_Types_t peerAddrType, uint8_t *pPeerAddress, uint8_t phys, uint16_t timeout)
 
status_t GapInit_connectWl (uint8_t phys, uint16_t timeout)
 
status_t GapInit_getPhyParam (uint8_t phy, GapInit_PhyParamId_t paramId, uint16_t *pValue)
 
status_t GapInit_setPhyParam (uint8_t phys, GapInit_PhyParamId_t paramId, uint16_t value)
 

Detailed Description

This module implements the Host Initiator.

Function Documentation

§ GapInit_cancelConnect()

status_t GapInit_cancelConnect ( void  )

Cancel the ongoing connection process.

Returns
SUCCESS
bleNotReady
bleIncorrectMode

§ GapInit_connect()

status_t GapInit_connect ( GAP_Peer_Addr_Types_t  peerAddrType,
uint8_t *  pPeerAddress,
uint8_t  phys,
uint16_t  timeout 
)

Initiate connection with the specified peer device

Parameters
peerAddrTypepeer device's address type.
pPeerAddresspeer device's address
physPHY to try making connection on: shall be one from GapInit_InitPhy_t.
timeoutIf there is no chance to initiate a connection within timeout ms, this connect request will be canceled automatically. if timeout is 0, the initiator will keep trying to get a chance to make a connection until GapInit_cancelConnect is called.
Returns
SUCCESS
bleNotReady
bleInvalidRange
bleMemAllocError
bleAlreadyInRequestedMode

§ GapInit_connectWl()

status_t GapInit_connectWl ( uint8_t  phys,
uint16_t  timeout 
)
Parameters
physPHY to try making connection on: shall be one from GapInit_InitPhy_t.
timeoutIf there is no chance to initiate a connection within timeout ms, this connect request will be canceled automatically. if timeout is 0, the initiator will keep trying to get a chance to make a connection until GapInit_cancelConnect is called.
Returns
SUCCESS
bleNotReady
bleInvalidRange
bleMemAllocError
bleAlreadyInRequestedMode

§ GapInit_getPhyParam()

status_t GapInit_getPhyParam ( uint8_t  phy,
GapInit_PhyParamId_t  paramId,
uint16_t *  pValue 
)

Get parameters of the specified PHY.

Note
Phy shall indicate only one PHY.
Parameters
phyconnection channel PHY: shall be one from GapInit_InitPhy_t.
paramIdparameter ID
pValuepointer to where the parameter value is to be stored
Returns
SUCCESS
INVALIDPARAMETER
bleInvalidRange

§ GapInit_setPhyParam()

status_t GapInit_setPhyParam ( uint8_t  phys,
GapInit_PhyParamId_t  paramId,
uint16_t  value 
)

Set parameters dependent on PHY.

Note
that if phys contains more than one PHY, the same parameter of those PHYs will be set with the same value.
Parameters
physconnection channel PHY(s): Individual PHY values of GapInit_InitPhy_t can be OR'ed.
paramIdparameter ID
valueparameter value
Returns
SUCCESS
bleInvalidRange
© Copyright 1995-2021, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale