|
SmartSnippets DA1459x SDK
|
Services handling routines API. More...
Go to the source code of this file.
Data Structures | |
| struct | ble_service |
| struct | ble_service_config_t |
Typedefs | |
| typedef struct ble_service | ble_service_t |
| typedef void(* | connected_evt_t) (ble_service_t *svc, const ble_evt_gap_connected_t *evt) |
| Connected event callback. More... | |
| typedef void(* | disconnected_evt_t) (ble_service_t *svc, const ble_evt_gap_disconnected_t *evt) |
| Dis event callback. More... | |
| typedef void(* | read_req_t) (ble_service_t *svc, const ble_evt_gatts_read_req_t *evt) |
| Read request callback. More... | |
| typedef void(* | write_req_t) (ble_service_t *svc, const ble_evt_gatts_write_req_t *evt) |
| Write request callback. More... | |
| typedef void(* | prepare_write_req_t) (ble_service_t *svc, const ble_evt_gatts_prepare_write_req_t *evt) |
| Prepare write request callback. More... | |
| typedef void(* | event_sent_t) (ble_service_t *svc, const ble_evt_gatts_event_sent_t *evt) |
| Event sent callback. More... | |
| typedef void(* | cleanup_t) (ble_service_t *svc) |
| Cleanup callback. More... | |
Functions | |
| void | ble_service_add (ble_service_t *svc) |
| Add service. More... | |
| void | ble_service_remove (const ble_service_t *svc) |
| Remove service. More... | |
| void | ble_service_cleanup (ble_service_t *svc) |
| Cleanup service. More... | |
| void | ble_services_cleanup (void) |
| Cleanup all services. More... | |
| bool | ble_service_handle_event (const ble_evt_hdr_t *evt) |
| Handle BLE event. More... | |
| att_perm_t | ble_service_config_elevate_perm (att_perm_t perm, const ble_service_config_t *config) |
| Elevate permissions. More... | |
| __STATIC_INLINE uint8_t | ble_service_get_num_attr (const ble_service_config_t *config, uint16_t chars, uint16_t descs) |
| Get number of attributes. More... | |
| void | ble_service_config_add_includes (const ble_service_config_t *config) |
| Add included services. More... | |
Services handling routines API.
Copyright (C) 2015-2023 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