Functions
ble_prf_utils.h File Reference

Profile/Service Utilities API. More...

`#include "ble_prf_types.h"`
`#include <stdbool.h>`

Go to the source code of this file.

## Functions
void | prf_pack_char_pres_fmt (uint8_t *p_packed_val, const prf_char_pres_fmt_t *p_char_pres_fmt)
| Pack Characteristic Presentation Format descriptor value to a buffer. More...
void | prf_unpack_char_pres_fmt (const uint8_t *p_packed_val, prf_char_pres_fmt_t *p_char_pres_fmt)
| Unpack the data in a buffer to the structure of Characteristic Presentation Format descriptor value. More...
uint8_t | prf_pack_date_time (uint8_t *p_packed_val, const prf_date_time_t *p_date_time)
| Pack the value in date-time structure to a buffer. More...
uint8_t | prf_unpack_date_time (const uint8_t *p_packed_val, prf_date_time_t *p_date_time)
| Unpack the data in buffer to the date-time structure. More...
uint8_t | prf_find_idx_by_handle (uint16_t handle, uint16_t start_hdl, uint8_t char_nb, uint8_t *p_char_mask)
| Find the attribute index by handle. More...
uint16_t | prf_find_handle_by_idx (uint8_t idx, uint16_t start_hdl, uint8_t *p_char_mask)
| Find the attribute handle by index. More...
bool | prf_is_cccd_value_valid (uint16_t cccd_value)
| Check if a CCCD value is valid. More...
bool | prf_is_notification_enabled (uint16_t cccd_value)
| Check if a CCCD value is notification enabled. More...
bool | prf_is_indication_enabled (uint16_t cccd_value)
| Check if a CCCD value is indication enabled. More...

## Detailed Description

Profile/Service Utilities API.

Attention

  ##### Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.