|
20 | 20 | * See the License for the specific language governing permissions and
|
21 | 21 | * limitations under the License.
|
22 | 22 | */
|
| 23 | +#include "wfx_sl_ble_init.h" |
23 | 24 | #include <lib/support/logging/CHIPLogging.h>
|
24 | 25 | #include <platform/CHIPDeviceLayer.h>
|
25 | 26 | #include <platform/silabs/BLEManagerImpl.h>
|
26 |
| -#include "wfx_sl_ble_init.h" |
27 | 27 |
|
28 | 28 | using namespace chip::DeviceLayer::Internal;
|
29 | 29 |
|
@@ -108,7 +108,8 @@ void SilabsBleWrapper::rsi_ble_on_disconnect_event(rsi_ble_event_disconnect_t *
|
108 | 108 | * @return none
|
109 | 109 | * @section description
|
110 | 110 | */
|
111 |
| -void SilabsBleWrapper::rsi_ble_on_event_indication_confirmation(uint16_t resp_status, rsi_ble_set_att_resp_t * rsi_ble_event_set_att_rsp) |
| 111 | +void SilabsBleWrapper::rsi_ble_on_event_indication_confirmation(uint16_t resp_status, |
| 112 | + rsi_ble_set_att_resp_t * rsi_ble_event_set_att_rsp) |
112 | 113 | {
|
113 | 114 | bleEvent.eventType = BleEventType_e::RSI_BLE_GATT_INDICATION_CONFIRMATION;
|
114 | 115 | bleEvent.eventData->resp_status = resp_status;
|
@@ -147,8 +148,8 @@ void SilabsBleWrapper::rsi_ble_on_read_req_event(uint16_t event_id, rsi_ble_read
|
147 | 148 | * @section description
|
148 | 149 | * This function is used to store all attribute records
|
149 | 150 | */
|
150 |
| -void SilabsBleWrapper::rsi_gatt_add_attribute_to_list(rsi_ble_t * p_val, uint16_t handle, uint16_t data_len, uint8_t * data, uuid_t uuid, |
151 |
| - uint8_t char_prop) |
| 151 | +void SilabsBleWrapper::rsi_gatt_add_attribute_to_list(rsi_ble_t * p_val, uint16_t handle, uint16_t data_len, uint8_t * data, |
| 152 | + uuid_t uuid, uint8_t char_prop) |
152 | 153 | {
|
153 | 154 | if ((p_val->DATA_ix + data_len) >= BLE_ATT_REC_SIZE)
|
154 | 155 | { //! Check for max data length for the characteristic value
|
@@ -181,7 +182,8 @@ void SilabsBleWrapper::rsi_gatt_add_attribute_to_list(rsi_ble_t * p_val, uint16_
|
181 | 182 | * @section description
|
182 | 183 | * This function is used at application to add characteristic attribute
|
183 | 184 | */
|
184 |
| -void SilabsBleWrapper::rsi_ble_add_char_serv_att(void * serv_handler, uint16_t handle, uint8_t val_prop, uint16_t att_val_handle, uuid_t att_val_uuid) |
| 185 | +void SilabsBleWrapper::rsi_ble_add_char_serv_att(void * serv_handler, uint16_t handle, uint8_t val_prop, uint16_t att_val_handle, |
| 186 | + uuid_t att_val_uuid) |
185 | 187 | {
|
186 | 188 | rsi_ble_req_add_att_t new_att = { 0 };
|
187 | 189 |
|
@@ -229,8 +231,8 @@ void SilabsBleWrapper::rsi_ble_add_char_serv_att(void * serv_handler, uint16_t h
|
229 | 231 | * This function is used at application to create new service.
|
230 | 232 | */
|
231 | 233 |
|
232 |
| -void SilabsBleWrapper::rsi_ble_add_char_val_att(void * serv_handler, uint16_t handle, uuid_t att_type_uuid, uint8_t val_prop, uint8_t * data, |
233 |
| - uint8_t data_len, uint8_t auth_read) |
| 234 | +void SilabsBleWrapper::rsi_ble_add_char_val_att(void * serv_handler, uint16_t handle, uuid_t att_type_uuid, uint8_t val_prop, |
| 235 | + uint8_t * data, uint8_t data_len, uint8_t auth_read) |
234 | 236 | {
|
235 | 237 | rsi_ble_req_add_att_t new_att = { 0 };
|
236 | 238 | rsi_ble_t att_list;
|
|
0 commit comments