English
Language : 

AN92584 Datasheet, PDF (32/42 Pages) Ramtron International Corporation – Designing for Low Power and Estimating Battery Life for BLE Applications
Designing for Low Power and Estimating Battery Life for BLE Applications
Figure 19. Changing the RF Transmit Power Level
4.6.2
Connection Parameter Update
The PSoC 4/PRoC BLE device supports the connection parameter update feature of the BLE specification. The
feature allows a Peripheral to negotiate the connection parameters, connection interval, and slave latency with the
Central device as required by the application.
To update either the connection interval or the slave latency parameters, the application on the Peripheral device
must call the CyBle_L2capLeConnectionParamUpdateRequest() function with the new connection interval and
slave latency parameters. The function is called when the CYBLE_EVT_GAP_DEVICE_CONNECTED event is received
upon device connection.
void AppCallBack(uint32 event, void* eventParam)
{
static CYBLE_GAP_CONN_UPDATE_PARAM_T hrmConnectionParam =
{
1000,
/* Minimum connection interval required */
1000,
/* Maximum connection interval required */
0,
/* Slave latency */
500
/* Supervision timeout */
};
switch(event)
{
/* Handle Stack events */
case CYBLE_EVT_GAP_DEVICE_CONNECTED:
/* Send Connection Parameter Update request to the Central */
CyBle_L2capLeConnectionParamUpdateRequest \
(cyBle_connHandle.bdHandle, &hrmConnectionParam);
}
}
www.cypress.com
Document No. 001-92584 Rev. *A
32