test
Fork of nrf51-sdk by
ble_srv_common.h File Reference
Go to the source code of this file.
Data Structures | |
struct | ble_srv_report_ref_t |
Value of a Report Reference descriptor. More... | |
struct | ble_srv_utf8_str_t |
UTF-8 string data type. More... | |
struct | ble_srv_security_mode_t |
Security settings structure. More... | |
struct | ble_srv_cccd_security_mode_t |
Security settings structure. More... | |
struct | ble_add_char_user_desc_t |
Characteristic User Descriptor parameters. More... | |
struct | ble_add_char_params_t |
Add characteristic parameters structure. More... | |
struct | ble_add_descr_params_t |
Add descriptor parameters structure. More... | |
Typedefs | |
typedef void(* | ble_srv_error_handler_t )(uint32_t nrf_error) |
Type definition for error handler function that will be called in case of an error in a service or a service library module. | |
Enumerations | |
enum | security_req_t { SEC_NO_ACCESS = 0, SEC_OPEN = 1, SEC_JUST_WORKS = 2, SEC_MITM = 3, SEC_SIGNED = 4, SEC_SIGNED_MITM = 5 } |
Security Access enumeration. More... | |
Functions | |
static __INLINE bool | ble_srv_is_notification_enabled (uint8_t *p_encoded_data) |
Function for decoding a CCCD value, and then testing if notification is enabled. | |
static __INLINE bool | ble_srv_is_indication_enabled (uint8_t *p_encoded_data) |
Function for decoding a CCCD value, and then testing if indication is enabled. | |
uint8_t | ble_srv_report_ref_encode (uint8_t *p_encoded_buffer, const ble_srv_report_ref_t *p_report_ref) |
Function for encoding a Report Reference Descriptor. | |
void | ble_srv_ascii_to_utf8 (ble_srv_utf8_str_t *p_utf8, char *p_ascii) |
Function for making a UTF-8 structure refer to an ASCII string. | |
uint32_t | characteristic_add (uint16_t service_handle, ble_add_char_params_t *p_char_props, ble_gatts_char_handles_t *p_char_handle) |
Function for adding a characteristic to a given service. | |
uint32_t | descriptor_add (uint16_t char_handle, ble_add_descr_params_t *p_descr_props, uint16_t *p_descr_handle) |
Function for adding a characteristic's descriptor to a given characteristic. |
Detailed Description
Definition in file ble_srv_common.h.
Generated on Tue Jul 12 2022 15:51:30 by 1.7.2