|
SmartSnippets DA1459x SDK
|
Battery Service Client header file. More...
Go to the source code of this file.
Data Structures | |
| struct | bas_client_callbacks_t |
Typedefs | |
| typedef void(* | bas_client_read_battery_level_completed_cb_t) (ble_client_t *bas_client, att_error_t status, uint8_t level) |
| Read battery level completed callback. More... | |
| typedef void(* | bas_client_set_event_state_completed_cb_t) (ble_client_t *bas_client, bas_client_event_t event, att_error_t status) |
| Set event state completed callback. More... | |
| typedef void(* | bas_client_get_event_state_completed_cb_t) (ble_client_t *bas_client, bas_client_event_t event, att_error_t status, bool enabled) |
| Get event state completed callback. More... | |
| typedef void(* | bas_client_battery_level_notif_cb_t) (ble_client_t *bas_client, uint8_t level) |
Enumerations | |
| enum | bas_client_event_t { BAS_CLIENT_EVENT_BATTERY_LEVEL_NOTIFY = 0x01 } |
| enum | bas_client_cap_t { BAS_CLIENT_CAP_BATTERY_LEVEL_NOTIFICATION = 0x01 } |
Functions | |
| ble_client_t * | bas_client_init (const bas_client_callbacks_t *cb, const ble_evt_gattc_browse_svc_t *evt) |
| Register BAS Client instance. More... | |
| bas_client_cap_t | bas_client_get_capabilities (ble_client_t *bas_client) |
| Get BAS Client capabilities. More... | |
| bool | bas_client_read_battery_level (ble_client_t *bas_client) |
| Read of battery level. More... | |
| bool | bas_client_set_event_state (ble_client_t *bas_client, bas_client_event_t event, bool enable) |
| Set event state. More... | |
| bool | bas_client_get_event_state (ble_client_t *bas_client, bas_client_event_t event) |
| Get event state. More... | |
Battery Service Client header file.
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