drivers/nble: Update RPC to the Nordic BLE chip
Update RPC headers to sync with NBLE firmware. Change-Id: I3231fe16372f2a6a38868edfa543689f631d8b98 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
9e58ac9840
commit
99a4cac6a9
4 changed files with 6 additions and 11 deletions
|
@ -449,8 +449,8 @@ void on_ble_gatts_write_evt(const struct ble_gatt_wr_evt *evt,
|
||||||
reply_data.offset = evt->offset;
|
reply_data.offset = evt->offset;
|
||||||
reply_data.write_reply = 1;
|
reply_data.write_reply = 1;
|
||||||
|
|
||||||
nble_gatts_rw_authorize_reply_req(&reply_data, NULL,
|
nble_gatts_authorize_reply_req(&reply_data, NULL,
|
||||||
reply_data.status);
|
reply_data.status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -503,5 +503,5 @@ void on_ble_gatts_read_evt(const struct nble_gatt_rd_evt *evt)
|
||||||
reply_data.offset = evt->offset;
|
reply_data.offset = evt->offset;
|
||||||
reply_data.write_reply = 0;
|
reply_data.write_reply = 0;
|
||||||
|
|
||||||
nble_gatts_rw_authorize_reply_req(&reply_data, data, reply_data.status);
|
nble_gatts_authorize_reply_req(&reply_data, data, reply_data.status);
|
||||||
}
|
}
|
||||||
|
|
|
@ -329,8 +329,8 @@ void ble_gatt_register_req(const struct ble_gatt_register_req *par,
|
||||||
* @param buf read value of the attribute
|
* @param buf read value of the attribute
|
||||||
* @param buflen length of buf
|
* @param buflen length of buf
|
||||||
*/
|
*/
|
||||||
void nble_gatts_rw_authorize_reply_req(const struct ble_gatts_rw_reply_params *params,
|
void nble_gatts_authorize_reply_req(const struct ble_gatts_rw_reply_params *params,
|
||||||
uint8_t *buf, uint16_t buflen);
|
uint8_t *buf, uint16_t buflen);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Conversion table entry ble_core to host attr index
|
* Conversion table entry ble_core to host attr index
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
FN_SIG_S_B(ble_gatt_send_ind_req, \
|
FN_SIG_S_B(ble_gatt_send_ind_req, \
|
||||||
const struct ble_gatt_send_notif_ind_params *, \
|
const struct ble_gatt_send_notif_ind_params *, \
|
||||||
uint8_t *, uint8_t) \
|
uint8_t *, uint8_t) \
|
||||||
FN_SIG_S_B(nble_gatts_rw_authorize_reply_req, \
|
FN_SIG_S_B(nble_gatts_authorize_reply_req, \
|
||||||
const struct ble_gatts_rw_reply_params *, \
|
const struct ble_gatts_rw_reply_params *, \
|
||||||
uint8_t *, uint16_t)
|
uint8_t *, uint16_t)
|
||||||
|
|
||||||
|
@ -91,9 +91,6 @@
|
||||||
void *)
|
void *)
|
||||||
|
|
||||||
#define LIST_FN_SIG_S_B_P \
|
#define LIST_FN_SIG_S_B_P \
|
||||||
FN_SIG_S_B_P(ble_gatts_set_attribute_value_req, \
|
|
||||||
const struct ble_gatts_set_attribute_params *, \
|
|
||||||
uint8_t *, uint8_t, void *) \
|
|
||||||
FN_SIG_S_B_P(ble_gattc_write_req, \
|
FN_SIG_S_B_P(ble_gattc_write_req, \
|
||||||
const struct ble_gattc_write_params *, \
|
const struct ble_gattc_write_params *, \
|
||||||
const uint8_t *, uint8_t, void *)
|
const uint8_t *, uint8_t, void *)
|
||||||
|
|
|
@ -67,8 +67,6 @@
|
||||||
const struct debug_response *) \
|
const struct debug_response *) \
|
||||||
FN_SIG_S(on_ble_gatts_send_svc_changed_rsp, \
|
FN_SIG_S(on_ble_gatts_send_svc_changed_rsp, \
|
||||||
const struct ble_core_response *) \
|
const struct ble_core_response *) \
|
||||||
FN_SIG_S(on_ble_gatts_set_attribute_value_rsp, \
|
|
||||||
const struct ble_gatts_attribute_response *) \
|
|
||||||
FN_SIG_S(on_ble_gatts_send_notif_ind_rsp, \
|
FN_SIG_S(on_ble_gatts_send_notif_ind_rsp, \
|
||||||
const struct ble_gatt_notif_ind_rsp *) \
|
const struct ble_gatt_notif_ind_rsp *) \
|
||||||
FN_SIG_S(on_ble_get_bonded_device_list_rsp, \
|
FN_SIG_S(on_ble_get_bonded_device_list_rsp, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue