5.7.3
Device BLE configuration type interface
This section explains the functions available to the application developer to configure the device to be used in the
network.
Table 9.
Appli_BleStackInitCb
Function
Description
Prototype
MOBLE_RESULT Appli_BleStackInitCb()
Behaviour description
This function helps with hardware configuration; mainly the
initialization of the BLE Stack based on the structured
parameters defined in BlueNRG_Stack_Init_params.
The user can modify the Low level hardware configuration
data for the device defined in CONFIG_TABLE like
LOW_SPEED_SOURCE and HS_STARTUP_TIME, which
may depend on the user hardware design.
The Parameters initializes BlueNRG Stack
Input parameter
None
Output parameter
MOBLE_RESULT status of result
Table 10.
Appli_SetTxPowerCb
Function
Description
Prototype
MOBLE_RESULT Appli_BleSetTxPowerCb()
Behaviour description
This callback sets the transmission power of BLE radio. IN
turns this function call aci_hal_set_tx_power_level. By default,
the power level is set to -2 dbm
Input parameter
None
Output parameter
MOBLE_RESULT status of result
Table 11.
Appli_BleGattConnectionCompleteCb
Function
Description
Prototype
void Appli_BleGattConnectionCompleteCb(void)
Behaviour description
This function is called when GATT Connection is detected by
the node. The application can use this callback to indicate to
the user that node is connected to the smartphone
Input parameter
Void
Output parameter
Void
Table 12.
Appli_BleGattDisconnectionCompleteCb
Function
Description
Prototype
void Appli_BleGattDisconnectionCompleteCb(void)
Behaviour description
This function is called when GATTDisconnection is detected
by the node. The application can use this callback to indicate
to the user that node is no longer connected to the
smartphone
Input parameter
None
UM2295
Application functions and callbacks
UM2295
-
Rev 1
page 24/35