|
SmartSnippets DA1459x SDK
|
User Data Service sample implementation API. More...
Go to the source code of this file.
Data Structures | |
| struct | uds_callbacks_t |
Typedefs | |
| typedef void(* | uds_ccc_changed_cb_t) (ble_service_t *svc, uint16_t conn_idx, uint16_t value) |
| CCC for Database Change Increment written callback. More... | |
| typedef bool(* | uds_db_increment_changed_cb_t) (ble_service_t *svc, uint16_t conn_idx, uint32_t increment) |
| Database Change Increment written callback. More... | |
| typedef void(* | uds_cp_register_new_user_cb_t) (ble_service_t *svc, uint16_t conn_idx, uint16_t consent) |
| Register New User control point written callback. More... | |
| typedef void(* | uds_cp_consent_cb_t) (ble_service_t *svc, uint16_t conn_idx, uint8_t user_id, uint16_t consent) |
| Consent control point written callback. More... | |
| typedef void(* | uds_cp_delete_user_data_cb_t) (ble_service_t *svc, uint16_t conn_idx) |
| Delete user data control point written callback. More... | |
| typedef void(* | uds_db_read_cb_t) (ble_service_t *svc, uint16_t conn_idx, uint32_t field) |
| Client attempt to read database value callback. More... | |
| typedef void(* | uds_db_write_cb_t) (ble_service_t *svc, uint16_t conn_idx, uint32_t field, uint16_t offset, uint16_t length, const void *value) |
| Client attempt to write database value callback. More... | |
Functions | |
| ble_service_t * | uds_init (const ble_service_config_t *config, uds_db_field_t db_fields, const uds_callbacks_t *cb) |
| Register User Data Service instance. More... | |
| void | uds_cp_register_new_user_cfm (ble_service_t *svc, uint16_t conn_idx, uds_cp_response_t status, uint8_t user_id) |
| Control Point register new user confirm. More... | |
| void | uds_set_db_increment (ble_service_t *svc, uint16_t conn_idx, uint32_t increment, bool notify) |
| Set database increment. More... | |
| void | uds_cp_consent_cfm (ble_service_t *svc, uint16_t conn_idx, uds_cp_response_t status) |
| Control Point consent confirmation. More... | |
| void | uds_cp_delete_user_cfm (ble_service_t *svc, uint16_t conn_idx, uds_cp_response_t status) |
| Control Point delete user confirmation. More... | |
| void | uds_db_read_cfm (ble_service_t *svc, uint16_t conn_idx, uint32_t field, att_error_t status, uint16_t length, const void *value) |
| Database read confirmation. More... | |
| void | uds_db_write_cfm (ble_service_t *svc, uint16_t conn_idx, uint32_t field, att_error_t status) |
| Database write confirmation. More... | |
| void | uds_set_user_id (ble_service_t *svc, uint16_t conn_idx, uint8_t user_id) |
| Set user ID. More... | |
| uint8_t | uds_get_user_id (ble_service_t *svc, uint16_t conn_idx) |
| Get user ID. More... | |
User Data Service sample implementation API.
Copyright (C) 2015-2018 Renesas Electronics Corporation and/or its affiliates. All rights reserved. Confidential Information.
This software ("Software") is supplied by Renesas Electronics Corporation and/or its affiliates ("Renesas"). Renesas grants you a personal, non-exclusive, non-transferable, revocable, non-sub-licensable right and license to use the Software, solely if used in or together with Renesas products. You may make copies of this Software, provided this copyright notice and disclaimer ("Notice") is included in all such copies. Renesas reserves the right to change or discontinue the Software at any time without notice.
THE SOFTWARE IS PROVIDED "AS IS". RENESAS DISCLAIMS ALL WARRANTIES OF ANY KIND, WHETHER EXPRESS, IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. TO THE MAXIMUM EXTENT PERMITTED UNDER LAW, IN NO EVENT SHALL RENESAS BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE, EVEN IF RENESAS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. USE OF THIS SOFTWARE MAY BE SUBJECT TO TERMS AND CONDITIONS CONTAINED IN AN ADDITIONAL AGREEMENT BETWEEN YOU AND RENESAS. IN CASE OF CONFLICT BETWEEN THE TERMS OF THIS NOTICE AND ANY SUCH ADDITIONAL LICENSE AGREEMENT, THE TERMS OF THE AGREEMENT SHALL TAKE PRECEDENCE. BY CONTINUING TO USE THIS SOFTWARE, YOU AGREE TO THE TERMS OF THIS NOTICE.IF YOU DO NOT AGREE TO THESE TERMS, YOU ARE NOT PERMITTED TO USE THIS SOFTWARE.
1.8.16