@@ -40,7 +40,7 @@ MaximGap &MaximGap::getInstance() {
40
40
return m_instance;
41
41
}
42
42
43
- ble_error_t MaximGap::setAdvertisingData (const GapAdvertisingData &advData, const GapAdvertisingData &scanResponse)
43
+ ble_error_t MaximGap::setAdvertisingData_ (const GapAdvertisingData &advData, const GapAdvertisingData &scanResponse)
44
44
{
45
45
/* Make sure we don't exceed the advertising payload length */
46
46
if (advData.getPayloadLen () > GAP_ADVERTISING_DATA_MAX_PAYLOAD) {
@@ -61,7 +61,7 @@ ble_error_t MaximGap::setAdvertisingData(const GapAdvertisingData &advData, cons
61
61
return BLE_ERROR_NONE;
62
62
}
63
63
64
- ble_error_t MaximGap::startAdvertising (const GapAdvertisingParams ¶ms)
64
+ ble_error_t MaximGap::startAdvertising_ (const GapAdvertisingParams ¶ms)
65
65
{
66
66
/* Make sure we support the advertising type */
67
67
if (params.getAdvertisingType () == GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED) {
@@ -108,7 +108,7 @@ ble_error_t MaximGap::startAdvertising(const GapAdvertisingParams ¶ms)
108
108
return BLE_ERROR_NONE;
109
109
}
110
110
111
- ble_error_t MaximGap::stopAdvertising (void )
111
+ ble_error_t MaximGap::stopAdvertising_ (void )
112
112
{
113
113
DmAdvStop ();
114
114
@@ -123,11 +123,11 @@ void MaximGap::advertisingStopped(void)
123
123
* be '0.' Otherwise, advertising must have stopped due to a timeout
124
124
*/
125
125
if (state.advertising ) {
126
- processTimeoutEvent (Gap:: TIMEOUT_SRC_ADVERTISING);
126
+ processTimeoutEvent (TIMEOUT_SRC_ADVERTISING);
127
127
}
128
128
}
129
129
130
- ble_error_t MaximGap::disconnect (DisconnectionReason_t reason)
130
+ ble_error_t MaximGap::disconnect_ (DisconnectionReason_t reason)
131
131
{
132
132
DmConnClose (DM_CLIENT_ID_APP, m_connectionHandle, reason);
133
133
@@ -137,7 +137,7 @@ ble_error_t MaximGap::disconnect(DisconnectionReason_t reason)
137
137
return BLE_ERROR_NONE;
138
138
}
139
139
140
- ble_error_t MaximGap::disconnect (Handle_t connectionHandle, DisconnectionReason_t reason)
140
+ ble_error_t MaximGap::disconnect_ (Handle_t connectionHandle, DisconnectionReason_t reason)
141
141
{
142
142
DmConnClose (DM_CLIENT_ID_APP, connectionHandle, reason);
143
143
@@ -147,17 +147,17 @@ ble_error_t MaximGap::disconnect(Handle_t connectionHandle, DisconnectionReason_
147
147
return BLE_ERROR_NONE;
148
148
}
149
149
150
- ble_error_t MaximGap::getPreferredConnectionParams (ConnectionParams_t *params)
150
+ ble_error_t MaximGap::getPreferredConnectionParams_ (ConnectionParams_t *params)
151
151
{
152
152
return BLE_ERROR_NOT_IMPLEMENTED;
153
153
}
154
154
155
- ble_error_t MaximGap::setPreferredConnectionParams (const ConnectionParams_t *params)
155
+ ble_error_t MaximGap::setPreferredConnectionParams_ (const ConnectionParams_t *params)
156
156
{
157
157
return BLE_ERROR_NOT_IMPLEMENTED;
158
158
}
159
159
160
- ble_error_t MaximGap::updateConnectionParams (Handle_t handle, const ConnectionParams_t *newParams)
160
+ ble_error_t MaximGap::updateConnectionParams_ (Handle_t handle, const ConnectionParams_t *newParams)
161
161
{
162
162
if (DmConnCheckIdle (handle) != 0 ) {
163
163
return BLE_STACK_BUSY;
@@ -173,7 +173,7 @@ ble_error_t MaximGap::updateConnectionParams(Handle_t handle, const ConnectionPa
173
173
return BLE_ERROR_NONE;
174
174
}
175
175
176
- ble_error_t MaximGap::startRadioScan (const GapScanningParams &scanningParams)
176
+ ble_error_t MaximGap::startRadioScan_ (const GapScanningParams &scanningParams)
177
177
{
178
178
DmScanSetInterval (scanningParams.getInterval (), scanningParams.getWindow ());
179
179
@@ -189,7 +189,7 @@ ble_error_t MaximGap::startRadioScan(const GapScanningParams &scanningParams)
189
189
return BLE_ERROR_NONE;
190
190
}
191
191
192
- ble_error_t MaximGap::stopScan (void )
192
+ ble_error_t MaximGap::stopScan_ (void )
193
193
{
194
194
DmScanStop ();
195
195
return BLE_ERROR_NONE;
@@ -205,7 +205,7 @@ uint16_t MaximGap::getConnectionHandle(void)
205
205
return m_connectionHandle;
206
206
}
207
207
208
- ble_error_t MaximGap::setAddress (AddressType_t type, const Address_t address)
208
+ ble_error_t MaximGap::setAddress_ (AddressType_t type, const Address_t address)
209
209
{
210
210
if ((type != BLEProtocol::AddressType::PUBLIC) && (type != BLEProtocol::AddressType::RANDOM_STATIC)) {
211
211
return BLE_ERROR_PARAM_OUT_OF_RANGE;
@@ -217,40 +217,40 @@ ble_error_t MaximGap::setAddress(AddressType_t type, const Address_t address)
217
217
return BLE_ERROR_NONE;
218
218
}
219
219
220
- ble_error_t MaximGap::getAddress (AddressType_t *typeP, Address_t address)
220
+ ble_error_t MaximGap::getAddress_ (AddressType_t *typeP, Address_t address)
221
221
{
222
222
*typeP = m_type;
223
223
BdaCpy (address, HciGetBdAddr ());
224
224
return BLE_ERROR_NONE;
225
225
}
226
226
227
- ble_error_t MaximGap::setDeviceName (const uint8_t *deviceName)
227
+ ble_error_t MaximGap::setDeviceName_ (const uint8_t *deviceName)
228
228
{
229
229
return BLE_ERROR_NOT_IMPLEMENTED;
230
230
}
231
231
232
- ble_error_t MaximGap::getDeviceName (uint8_t *deviceName, unsigned *lengthP)
232
+ ble_error_t MaximGap::getDeviceName_ (uint8_t *deviceName, unsigned *lengthP)
233
233
{
234
234
return BLE_ERROR_NOT_IMPLEMENTED;
235
235
}
236
236
237
- ble_error_t MaximGap::setAppearance (GapAdvertisingData::Appearance appearance)
237
+ ble_error_t MaximGap::setAppearance_ (GapAdvertisingData::Appearance appearance)
238
238
{
239
239
return BLE_ERROR_NOT_IMPLEMENTED;
240
240
}
241
241
242
- ble_error_t MaximGap::getAppearance (GapAdvertisingData::Appearance *appearanceP)
242
+ ble_error_t MaximGap::getAppearance_ (GapAdvertisingData::Appearance *appearanceP)
243
243
{
244
244
return BLE_ERROR_NOT_IMPLEMENTED;
245
245
}
246
246
247
- ble_error_t MaximGap::setTxPower (int8_t txPower)
247
+ ble_error_t MaximGap::setTxPower_ (int8_t txPower)
248
248
{
249
249
HciVsSetTxPower (txPower);
250
250
return BLE_ERROR_NONE;
251
251
}
252
252
253
- void MaximGap::getPermittedTxPowerValues (const int8_t **valueArrayPP, size_t *countP)
253
+ void MaximGap::getPermittedTxPowerValues_ (const int8_t **valueArrayPP, size_t *countP)
254
254
{
255
255
static const int8_t permittedTxValues[] = {
256
256
-18 , -15 , -12 , -9 , -6 , -3 , 0 , 3
0 commit comments