ble_prf_types.h
Go to the documentation of this file.
1
50 #ifndef __BLE_PRF_TYPES_H__
51 #define __BLE_PRF_TYPES_H__
52
53 #include "gr55xx_sys.h"
54 #include <stdint.h>
55
60 #define PRF_CHAR_PRES_FMT_SIZE (7)
61
62 #define PRF_INVALID_HANDLE (0x0000)
63
69 typedef enum
70 {
71 PRF_CLI_STOP_NTFIND = 0x0000,
72 PRF_CLI_START_NTF,
73 PRF_CLI_START_IND,
74 } prf_cli_conf_t;
82 typedef void (*prf_error_handler_t)(sdk_err_t err_code);
90 typedef struct
91 {
92 uint16_t unit;
93 uint16_t description;
94 uint8_t format;
95 uint8_t exponent;
96 uint8_t name_space;
97 } prf_char_pres_fmt_t;
98
100 typedef struct
101 {
102 uint16_t year;
103 uint8_t month;
104 uint8_t day;
105 uint8_t hour;
106 uint8_t min;
107 uint8_t sec;
108 } prf_date_time_t;
109
111 typedef struct
112 {
113 uint16_t con_intv_min;
114 uint16_t con_intv_max;
115 uint16_t slave_latency;
116 uint16_t conn_timeout;
117 } gap_slv_pref_t;
118
120 typedef struct
121 {
122 uint16_t handle;
123 uint16_t offset;
124 uint16_t length;
125 uint8_t status;
126 uint8_t *p_data;
127 } prf_att_info_t;
130 #endif /* _BLE_PRF_TYPES_H_ */
131
prf_date_time_t::month
uint8_t month
Definition: ble_prf_types.h:103
prf_char_pres_fmt_t::exponent
uint8_t exponent
Definition: ble_prf_types.h:95
PRF_CLI_START_IND
@ PRF_CLI_START_IND
Definition: ble_prf_types.h:73
prf_cli_conf_t
prf_cli_conf_t
The values for setting client configuration characteristics.
Definition: ble_prf_types.h:70
gap_slv_pref_t::slave_latency
uint16_t slave_latency
Definition: ble_prf_types.h:115
gr55xx_sys.h
GR55XX System API.
prf_att_info_t::status
uint8_t status
Definition: ble_prf_types.h:125
PRF_CLI_START_NTF
@ PRF_CLI_START_NTF
Definition: ble_prf_types.h:72
prf_char_pres_fmt_t
Characteristic Presentation Format Descriptor structure. The packed size is PRF_CHAR_PRES_FMT_SIZE.
Definition: ble_prf_types.h:91
prf_att_info_t::length
uint16_t length
Definition: ble_prf_types.h:124
prf_att_info_t
Attribute information.
Definition: ble_prf_types.h:121
PRF_CLI_STOP_NTFIND
@ PRF_CLI_STOP_NTFIND
Definition: ble_prf_types.h:71
prf_date_time_t::min
uint8_t min
Definition: ble_prf_types.h:106
sdk_err_t
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
prf_att_info_t::p_data
uint8_t * p_data
Definition: ble_prf_types.h:126
prf_date_time_t
The date and time structure. The packed size is 7 bytes.
Definition: ble_prf_types.h:101
prf_att_info_t::handle
uint16_t handle
Definition: ble_prf_types.h:122
gap_slv_pref_t::con_intv_max
uint16_t con_intv_max
Definition: ble_prf_types.h:114
prf_char_pres_fmt_t::description
uint16_t description
Definition: ble_prf_types.h:93
prf_char_pres_fmt_t::unit
uint16_t unit
Definition: ble_prf_types.h:92
prf_error_handler_t
void(* prf_error_handler_t)(sdk_err_t err_code)
Function for handling profile/service error.
Definition: ble_prf_types.h:82
gap_slv_pref_t::con_intv_min
uint16_t con_intv_min
Definition: ble_prf_types.h:113
prf_date_time_t::day
uint8_t day
Definition: ble_prf_types.h:104
prf_date_time_t::hour
uint8_t hour
Definition: ble_prf_types.h:105
gap_slv_pref_t
Slave preferred connection parameters.
Definition: ble_prf_types.h:112
prf_char_pres_fmt_t::format
uint8_t format
Definition: ble_prf_types.h:94
prf_date_time_t::year
uint16_t year
Definition: ble_prf_types.h:102
prf_date_time_t::sec
uint8_t sec
Definition: ble_prf_types.h:107
gap_slv_pref_t::conn_timeout
uint16_t conn_timeout
Definition: ble_prf_types.h:116
prf_char_pres_fmt_t::name_space
uint8_t name_space
Definition: ble_prf_types.h:96
prf_att_info_t::offset
uint16_t offset
Definition: ble_prf_types.h:123