Configure discoverability and connectivity of the device.
More...
Configure discoverability and connectivity of the device.
Variable for registerint the GAP Role Callbacks.
#define DEFAULT_DESIRED_CONN_TIMEOUT 1000 |
Supervision timeout value (units of 10ms) if automatic parameter update request is enabled
#define DEFAULT_DESIRED_MAX_CONN_INTERVAL 1600 |
Maximum connection interval (units of 1.25ms) if automatic parameter update request is enabled.
#define DEFAULT_DESIRED_MIN_CONN_INTERVAL 200 |
Minimum connection interval (units of 1.25ms) if automatic parameter update request is enabled.
#define DEFAULT_DESIRED_SLAVE_LATENCY 1 |
Slave latency to use if automatic parameter update request is enabled.
#define DEFAULT_ENABLE_UPDATE_REQUEST TRUE |
Whether to enable automatic parameter update request when a connection is formed.
#define DEFAULT_FAST_ADV_DURATION 30 |
Duration of fast advertising duration in sec.
#define DEFAULT_FAST_ADV_INTERVAL 32 |
Fast advertising interval in 625us units.
#define DEFAULT_SLOW_ADV_DURATION 30 |
Duration of slow advertising duration in sec.
#define DEFAULT_SLOW_ADV_INTERVAL 1600 |
Slow advertising interval in 625us units.
static void CGM_HandleConnStatusCB |
( |
uint16 |
connHandle, |
|
|
uint8 |
changeType |
|
) |
| |
|
static |
Simple Profile link status change handler function.
- Parameters
-
connHandle | - connection handle |
changeType | - type of change |
- Returns
- none
static void cgmGapStateCB |
( |
gaprole_States_t |
newState | ) |
|
|
static |
Notification from the profile of a state change.
- Parameters
-
- Returns
- none
Initial value:=
{
0x02,
GAP_ADTYPE_FLAGS,
GAP_ADTYPE_FLAGS_LIMITED | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED,
0x05,
GAP_ADTYPE_16BIT_MORE,
LO_UINT16(DEVINFO_SERV_UUID),
}
#define CGM_SERV_UUID
GM service.
Definition: cgmservice.h:79
Define the Advertizing data.
uint8 attDeviceName[GAP_DEVICE_NAME_LEN] = "CGM Simulator" |
|
static |
The device name variable.
bool cgmAdvCancelled = FALSE |
|
static |
Denote the advertising state.
Local variable storing the current bonding stage of the sensor.
uint8 cgmBondedAddr[B_ADDR_LEN] |
|
static |
Local variable storing the address of the bonded peer.
static uint16 gapConnHandle |
Local version of the GAP connection handle.
The handle for the current GAP connection.
gaprole_States_t gapProfileState = GAPROLE_INIT |
|
static |
The connection state of the GAP layer
Initial value:=
{
0x08,
0x09,
'C', 'G', 'M', ' ', 'S', 'i', 'm'
}
GAP Profile - Name attribute for SCAN RSP data.