BlueNRG-MS pack for STM32CubeMX: includes/bluenrg_gatt_aci.h Source File

STM32CubeMX BlueNRG-MS

BlueNRG-MS pack for STM32CubeMX  V4.4.0
The BlueNRG-MS pack is an additional software for STM32CubeMX.
bluenrg_gatt_aci.h
Go to the documentation of this file.
1 /******************** (C) COPYRIGHT 2014 STMicroelectronics ********************
2 * File Name : bluenrg_gatt_aci.h
3 * Author : AMS - AAS
4 * Version : V1.0.0
5 * Date : 26-Jun-2014
6 * Description : Header file with GATT commands for BlueNRG FW6.3.
7 ********************************************************************************
8 * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
9 * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME.
10 * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT,
11 * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE
12 * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING
13 * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
14 *******************************************************************************/
15 
16 #ifndef __BLUENRG_GATT_ACI_H__
17 #define __BLUENRG_GATT_ACI_H__
18 
19 #include "bluenrg_gatt_server.h"
20 
47 
68 tBleStatus aci_gatt_add_serv(uint8_t service_uuid_type,
69  const uint8_t* service_uuid,
70  uint8_t service_type,
71  uint8_t max_attr_records,
72  uint16_t *serviceHandle);
73 
86 tBleStatus aci_gatt_include_service(uint16_t service_handle, uint16_t included_start_handle,
87  uint16_t included_end_handle, uint8_t included_uuid_type,
88  const uint8_t* included_uuid, uint16_t *included_handle);
89 
122 tBleStatus aci_gatt_add_char(uint16_t serviceHandle,
123  uint8_t charUuidType,
124  const uint8_t* charUuid,
125  uint8_t charValueLen,
126  uint8_t charProperties,
127  uint8_t secPermissions,
128  uint8_t gattEvtMask,
129  uint8_t encryKeySize,
130  uint8_t isVariable,
131  uint16_t* charHandle);
132 
167 tBleStatus aci_gatt_add_char_desc(uint16_t serviceHandle,
168  uint16_t charHandle,
169  uint8_t descUuidType,
170  const uint8_t* uuid,
171  uint8_t descValueMaxLen,
172  uint8_t descValueLen,
173  const void* descValue,
174  uint8_t secPermissions,
175  uint8_t accPermissions,
176  uint8_t gattEvtMask,
177  uint8_t encryKeySize,
178  uint8_t isVariable,
179  uint16_t* descHandle);
180 
234 tBleStatus aci_gatt_update_char_value(uint16_t servHandle,
235  uint16_t charHandle,
236  uint8_t charValOffset,
237  uint8_t charValueLen,
238  const void *charValue);
245 tBleStatus aci_gatt_del_char(uint16_t servHandle, uint16_t charHandle);
246 
252 tBleStatus aci_gatt_del_service(uint16_t servHandle);
253 
260 tBleStatus aci_gatt_del_include_service(uint16_t servHandle, uint16_t includeServHandle);
261 
270 tBleStatus aci_gatt_exchange_configuration(uint16_t conn_handle);
271 
283 tBleStatus aci_att_find_information_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle);
284 
299 tBleStatus aci_att_find_by_type_value_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle,
300  uint8_t* uuid, uint8_t attr_val_len, uint8_t* attr_val);
301 
316 tBleStatus aci_att_read_by_type_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle,
317  uint8_t uuid_type, uint8_t* uuid);
318 
334 tBleStatus aci_att_read_by_group_type_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle,
335  uint8_t uuid_type, uint8_t* uuid);
336 
349 tBleStatus aci_att_prepare_write_req(uint16_t conn_handle, uint16_t attr_handle, uint16_t value_offset,
350  uint8_t attr_val_len, uint8_t* attr_val);
351 
363 tBleStatus aci_att_execute_write_req(uint16_t conn_handle, uint8_t execute);
364 
372 tBleStatus aci_gatt_disc_all_prim_services(uint16_t conn_handle);
373 
384 tBleStatus aci_gatt_disc_prim_service_by_uuid(uint16_t conn_handle, uint8_t uuid_type, uint8_t* uuid);
385 
395 tBleStatus aci_gatt_find_included_services(uint16_t conn_handle, uint16_t start_handle,
396  uint16_t end_handle);
397 
407 tBleStatus aci_gatt_disc_all_charac_of_serv(uint16_t conn_handle, uint16_t start_attr_handle,
408  uint16_t end_attr_handle);
409 
423 tBleStatus aci_gatt_disc_charac_by_uuid(uint16_t conn_handle, uint16_t start_handle,
424  uint16_t end_handle, uint8_t uuid_type, const uint8_t* uuid);
425 
435 tBleStatus aci_gatt_disc_all_charac_descriptors(uint16_t conn_handle, uint16_t char_val_handle,
436  uint16_t char_end_handle);
437 
452 tBleStatus aci_gatt_read_charac_val(uint16_t conn_handle, uint16_t attr_handle);
453 
467 tBleStatus aci_gatt_read_using_charac_uuid(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle,
468  uint8_t uuid_type, uint8_t* uuid);
469 
485 tBleStatus aci_gatt_read_long_charac_val(uint16_t conn_handle, uint16_t attr_handle,
486  uint16_t val_offset);
487 
500 tBleStatus aci_gatt_read_multiple_charac_val(uint16_t conn_handle, uint8_t num_handles,
501  uint8_t* set_of_handles);
502 
518 tBleStatus aci_gatt_write_charac_value(uint16_t conn_handle, uint16_t attr_handle,
519  uint8_t value_len, uint8_t *attr_value);
520 
533 tBleStatus aci_gatt_write_long_charac_val(uint16_t conn_handle, uint16_t attr_handle,
534  uint16_t val_offset, uint8_t val_len, const uint8_t* attr_val);
535 
548 tBleStatus aci_gatt_write_charac_reliable(uint16_t conn_handle, uint16_t attr_handle,
549  uint16_t val_offset, uint8_t val_len, uint8_t* attr_val);
550 
563 tBleStatus aci_gatt_write_long_charac_desc(uint16_t conn_handle, uint16_t attr_handle,
564  uint16_t val_offset, uint8_t val_len, uint8_t* attr_val);
565 
576 tBleStatus aci_gatt_read_long_charac_desc(uint16_t conn_handle, uint16_t attr_handle,
577  uint16_t val_offset);
578 
594 tBleStatus aci_gatt_write_charac_descriptor(uint16_t conn_handle, uint16_t attr_handle,
595  uint8_t value_len, uint8_t *attr_value);
596 
605 tBleStatus aci_gatt_read_charac_desc(uint16_t conn_handle, uint16_t attr_handle);
606 
622 tBleStatus aci_gatt_write_without_response(uint16_t conn_handle, uint16_t attr_handle,
623  uint8_t val_len, const uint8_t* attr_val);
624 
635 tBleStatus aci_gatt_signed_write_without_resp(uint16_t conn_handle, uint16_t attr_handle,
636  uint8_t val_len, uint8_t* attr_val);
637 
644 tBleStatus aci_gatt_confirm_indication(uint16_t conn_handle);
645 
661 tBleStatus aci_gatt_write_response(uint16_t conn_handle,
662  uint16_t attr_handle,
663  uint8_t write_status,
664  uint8_t err_code,
665  uint8_t att_val_len,
666  uint8_t *att_val);
667 
679 tBleStatus aci_gatt_allow_read(uint16_t conn_handle);
680 
697 tBleStatus aci_gatt_set_security_permission(uint16_t service_handle, uint16_t attr_handle,
698  uint8_t security_permission);
699 
710 tBleStatus aci_gatt_set_desc_value(uint16_t servHandle,
711  uint16_t charHandle,
712  uint16_t charDescHandle,
713  uint16_t charDescValOffset,
714  uint8_t charDescValueLen,
715  const void *charDescValue);
716 
728 tBleStatus aci_gatt_read_handle_value(uint16_t attr_handle, uint16_t data_len, uint16_t *data_len_out_p, uint8_t *data);
729 
742 tBleStatus aci_gatt_read_handle_value_offset_IDB05A1(uint16_t attr_handle, uint8_t offset, uint16_t data_len, uint16_t *data_len_out_p, uint8_t *data);
743 
762 tBleStatus aci_gatt_update_char_value_ext_IDB05A1(uint16_t service_handle, uint16_t char_handle,
763  uint8_t update_type, uint16_t char_length,
764  uint16_t value_offset, uint8_t value_length,
765  const uint8_t* value);
766 
767 tBleStatus aci_gatt_set_event_mask(uint32_t event_mask);
768 
791 #define EVT_BLUE_GATT_ATTRIBUTE_MODIFIED (0x0C01)
792 
793 typedef __packed struct _evt_gatt_attr_modified_IDB05A1{
794  uint16_t conn_handle;
795  uint16_t attr_handle;
796  uint8_t data_length;
797  uint16_t offset;
800 
801 typedef __packed struct _evt_gatt_attr_modified_IDB04A1{
802  uint16_t conn_handle;
803  uint16_t attr_handle;
804  uint8_t data_length;
807 
812 #define EVT_BLUE_GATT_PROCEDURE_TIMEOUT (0x0C02)
813 typedef __packed struct _evt_gatt_procedure_timeout{
814  uint16_t conn_handle;
816 
821 #define EVT_BLUE_ATT_EXCHANGE_MTU_RESP (0x0C03)
822 typedef __packed struct _evt_att_exchange_mtu_resp{
823  uint16_t conn_handle;
825  uint16_t server_rx_mtu;
827 
832 #define EVT_BLUE_ATT_FIND_INFORMATION_RESP (0x0C04)
833 typedef __packed struct _evt_att_find_information_resp{
834  uint16_t conn_handle;
836  uint8_t format;
844  uint8_t handle_uuid_pair[VARIABLE_SIZE];
846 
851 #define EVT_BLUE_ATT_FIND_BY_TYPE_VAL_RESP (0x0C05)
852 typedef __packed struct _evt_att_find_by_type_val_resp{
853  uint16_t conn_handle;
859  uint8_t handles_info_list[VARIABLE_SIZE];
861 
867 #define EVT_BLUE_ATT_READ_BY_TYPE_RESP (0x0C06)
868 typedef __packed struct _evt_att_read_by_type_resp{
869  uint16_t conn_handle;
876  uint8_t handle_value_pair[VARIABLE_SIZE];
878 
883 #define EVT_BLUE_ATT_READ_RESP (0x0C07)
884 typedef __packed struct _evt_att_read_resp{
885  uint16_t conn_handle;
887  uint8_t attribute_value[VARIABLE_SIZE];
889 
894 #define EVT_BLUE_ATT_READ_BLOB_RESP (0x0C08)
895 typedef __packed struct _evt_att_read_blob_resp{
896  uint16_t conn_handle;
898  uint8_t part_attribute_value[VARIABLE_SIZE];
900 
905 #define EVT_BLUE_ATT_READ_MULTIPLE_RESP (0x0C09)
906 typedef __packed struct _evt_att_read_mult_resp{
907  uint16_t conn_handle;
909  uint8_t set_of_values[VARIABLE_SIZE];
911 
916 #define EVT_BLUE_ATT_READ_BY_GROUP_TYPE_RESP (0x0C0A)
917 typedef __packed struct _evt_att_read_by_group_resp{
918  uint16_t conn_handle;
927  uint8_t attribute_data_list[VARIABLE_SIZE];
929 
934 #define EVT_BLUE_ATT_PREPARE_WRITE_RESP (0x0C0C)
935 typedef __packed struct _evt_att_prepare_write_resp{
936  uint16_t conn_handle;
938  uint16_t attribute_handle;
939  uint16_t offset;
940  uint8_t part_attr_value[VARIABLE_SIZE];
942 
947 #define EVT_BLUE_ATT_EXEC_WRITE_RESP (0x0C0D)
948 typedef __packed struct _evt_att_exec_write_resp{
949  uint16_t conn_handle;
952 
957 #define EVT_BLUE_GATT_INDICATION (0x0C0E)
958 typedef __packed struct _evt_gatt_indication{
959  uint16_t conn_handle;
961  uint16_t attr_handle;
962  uint8_t attr_value[VARIABLE_SIZE];
964 
969 #define EVT_BLUE_GATT_NOTIFICATION (0x0C0F)
970 typedef __packed struct _evt_gatt_notification{
971  uint16_t conn_handle;
973  uint16_t attr_handle;
974  uint8_t attr_value[VARIABLE_SIZE];
976 
981 #define EVT_BLUE_GATT_PROCEDURE_COMPLETE (0x0C10)
982 typedef __packed struct _evt_gatt_procedure_complete{
983  uint16_t conn_handle;
984  uint8_t data_length;
988  uint8_t error_code;
990 
996 #define EVT_BLUE_GATT_ERROR_RESP (0x0C11)
997 typedef __packed struct _evt_gatt_error_resp{
998  uint16_t conn_handle;
1000  uint8_t req_opcode;
1001  uint16_t attr_handle;
1002  uint8_t error_code;
1004 
1012 #define EVT_BLUE_GATT_DISC_READ_CHAR_BY_UUID_RESP (0x0C12)
1014  uint16_t conn_handle;
1016  uint16_t attr_handle;
1022  uint8_t attr_value[VARIABLE_SIZE];
1024 
1036 #define EVT_BLUE_GATT_WRITE_PERMIT_REQ (0x0C13)
1037 typedef __packed struct _evt_gatt_write_permit_req{
1038  uint16_t conn_handle;
1039  uint16_t attr_handle;
1040  uint8_t data_length;
1041  uint8_t data[VARIABLE_SIZE];
1043 
1053 #define EVT_BLUE_GATT_READ_PERMIT_REQ (0x0C14)
1054 typedef __packed struct _evt_gatt_read_permit_req{
1055  uint16_t conn_handle;
1056  uint16_t attr_handle;
1057  uint8_t data_length;
1058  uint16_t offset;
1060 
1070 #define EVT_BLUE_GATT_READ_MULTI_PERMIT_REQ (0x0C15)
1071 typedef __packed struct _evt_gatt_read_multi_permit_req{
1072  uint16_t conn_handle;
1073  uint8_t data_length;
1074  uint8_t data[VARIABLE_SIZE];
1076 
1084 #define EVT_BLUE_GATT_TX_POOL_AVAILABLE (0x0C16)
1085 typedef __packed struct _evt_gatt_tx_pool_available{
1086  uint16_t conn_handle;
1089 
1093 #define EVT_BLUE_GATT_SERVER_CONFIRMATION_EVENT (0x0C17)
1094 typedef __packed struct _evt_gatt_server_confirmation{
1095  uint16_t conn_handle;
1097 
1098 
1110 #define EVT_BLUE_GATT_PREPARE_WRITE_PERMIT_REQ (0x0C18)
1111 typedef __packed struct _evt_gatt_prepare_write_permit_req{
1112  uint16_t conn_handle;
1113  uint16_t attr_handle;
1114  uint16_t offset;
1115  uint8_t data_length;
1116  uint8_t data[VARIABLE_SIZE];
1118 
1131 #endif /* __BLUENRG_GATT_ACI_H__ */
__packed struct _evt_gatt_procedure_timeout evt_gatt_procedure_timeout
tBleStatus aci_gatt_read_charac_val(uint16_t conn_handle, uint16_t attr_handle)
Start the procedure to read the attribute value.
Definition: bluenrg_gatt_aci.c:837
Definition: bluenrg_gatt_aci.h:1111
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:971
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:1072
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:950
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:1113
tBleStatus aci_gatt_write_charac_descriptor(uint16_t conn_handle, uint16_t attr_handle, uint8_t value_len, uint8_t *attr_value)
Start the procedure to write a characteristic descriptor.
Definition: bluenrg_gatt_aci.c:1112
__packed struct _evt_att_exchange_mtu_resp evt_att_exchange_mtu_resp
__packed struct _evt_att_prepare_write_resp evt_att_prepare_write_resp
Definition: bluenrg_gatt_aci.h:868
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:960
tBleStatus aci_gatt_read_long_charac_val(uint16_t conn_handle, uint16_t attr_handle, uint16_t val_offset)
Start the procedure to read a long characteristic value.
Definition: bluenrg_gatt_aci.c:896
tBleStatus aci_gatt_write_long_charac_desc(uint16_t conn_handle, uint16_t attr_handle, uint16_t val_offset, uint8_t val_len, uint8_t *attr_val)
Start the procedure to write a long characteristic descriptor.
Definition: bluenrg_gatt_aci.c:1055
tBleStatus aci_gatt_exchange_configuration(uint16_t conn_handle)
Perform an ATT MTU exchange procedure.
Definition: bluenrg_gatt_aci.c:452
tBleStatus aci_gatt_disc_all_prim_services(uint16_t conn_handle)
This command will start the GATT client procedure to discover all primary services on the server...
Definition: bluenrg_gatt_aci.c:653
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:937
uint16_t offset
Definition: bluenrg_gatt_aci.h:939
__packed struct _evt_gatt_notification evt_gatt_attr_notification
tBleStatus aci_gatt_confirm_indication(uint16_t conn_handle)
Confirm an indication.
Definition: bluenrg_gatt_aci.c:1234
tBleStatus aci_att_read_by_group_type_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle, uint8_t uuid_type, uint8_t *uuid)
Send a Read By Group Type Request.
Definition: bluenrg_gatt_aci.c:565
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:885
tBleStatus aci_gatt_disc_all_charac_of_serv(uint16_t conn_handle, uint16_t start_attr_handle, uint16_t end_attr_handle)
Start the procedure to discover all the characteristics of a given service.
Definition: bluenrg_gatt_aci.c:735
uint8_t data_length
Definition: bluenrg_gatt_aci.h:1073
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:834
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:1055
__packed struct _evt_att_read_mult_resp evt_att_read_mult_resp
tBleStatus aci_gatt_read_handle_value(uint16_t attr_handle, uint16_t data_len, uint16_t *data_len_out_p, uint8_t *data)
Reads the value of the attribute handle specified from the local GATT database.
Definition: bluenrg_gatt_aci.c:1406
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:896
#define VARIABLE_SIZE
Definition: bluenrg_types.h:31
uint8_t error_code
Definition: bluenrg_gatt_aci.h:1002
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:1039
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:908
tBleStatus aci_gatt_update_char_value_ext_IDB05A1(uint16_t service_handle, uint16_t char_handle, uint8_t update_type, uint16_t char_length, uint16_t value_offset, uint8_t value_length, const uint8_t *value)
Update the value of a characteristic and sends notifications or indications.
Definition: bluenrg_gatt_aci.c:1471
uint8_t error_code
Definition: bluenrg_gatt_aci.h:988
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:919
tBleStatus aci_gatt_write_without_response(uint16_t conn_handle, uint16_t attr_handle, uint8_t val_len, const uint8_t *attr_val)
Start the procedure to write a characteristic value without waiting for any response from the server...
Definition: bluenrg_gatt_aci.c:1176
uint16_t offset
Definition: bluenrg_gatt_aci.h:797
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:1038
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:1056
Definition: bluenrg_gatt_aci.h:793
uint8_t handle_value_pair_length
Definition: bluenrg_gatt_aci.h:871
__packed struct _evt_att_exec_write_resp evt_att_exec_write_resp
Definition: bluenrg_gatt_aci.h:997
Definition: bluenrg_gatt_aci.h:801
tBleStatus aci_gatt_read_using_charac_uuid(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle, uint8_t uuid_type, uint8_t *uuid)
Start the procedure to read all the characteristics specified by the UUID.
Definition: bluenrg_gatt_aci.c:861
Definition: bluenrg_gatt_aci.h:1071
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:983
uint8_t data_length
Definition: bluenrg_gatt_aci.h:804
__packed struct _evt_gatt_disc_read_char_by_uuid_resp evt_gatt_disc_read_char_by_uuid_resp
tBleStatus aci_gatt_del_include_service(uint16_t servHandle, uint16_t includeServHandle)
Delete the Include definition from the service.
Definition: bluenrg_gatt_aci.c:407
Definition: bluenrg_gatt_aci.h:813
tBleStatus aci_gatt_read_handle_value_offset_IDB05A1(uint16_t attr_handle, uint8_t offset, uint16_t data_len, uint16_t *data_len_out_p, uint8_t *data)
Reads the value of the attribute handle specified from the local GATT database, starting from a given...
Definition: bluenrg_gatt_aci.c:1438
tBleStatus aci_gatt_set_desc_value(uint16_t servHandle, uint16_t charHandle, uint16_t charDescHandle, uint16_t charDescValOffset, uint8_t charDescValueLen, const void *charDescValue)
This command sets the value of the descriptor specified by charDescHandle.
Definition: bluenrg_gatt_aci.c:1356
tBleStatus aci_gatt_disc_prim_service_by_uuid(uint16_t conn_handle, uint8_t uuid_type, uint8_t *uuid)
Start the procedure to discover the primary services of the specified UUID on the server...
Definition: bluenrg_gatt_aci.c:676
__packed struct _evt_gatt_attr_modified_IDB05A1 evt_gatt_attr_modified_IDB05A1
Definition: bluenrg_gatt_aci.h:958
uint8_t tBleStatus
Definition: bluenrg_def.h:37
tBleStatus aci_gatt_init(void)
Initialize the GATT layer for server and client roles.
Definition: bluenrg_gatt_aci.c:28
tBleStatus aci_gatt_disc_all_charac_descriptors(uint16_t conn_handle, uint16_t char_val_handle, uint16_t char_end_handle)
Start the procedure to discover all characteristic descriptors on the server.
Definition: bluenrg_gatt_aci.c:811
uint16_t offset
Definition: bluenrg_gatt_aci.h:1058
Definition: bluenrg_gatt_aci.h:1094
__packed struct _evt_gatt_attr_modified_IDB04A1 evt_gatt_attr_modified_IDB04A1
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:803
Definition: bluenrg_gatt_aci.h:895
tBleStatus aci_att_prepare_write_req(uint16_t conn_handle, uint16_t attr_handle, uint16_t value_offset, uint8_t attr_val_len, uint8_t *attr_val)
Send a Prepare Write Request.
Definition: bluenrg_gatt_aci.c:600
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:802
__packed struct _evt_gatt_read_multi_permit_req evt_gatt_read_multi_permit_req
tBleStatus aci_gatt_write_charac_reliable(uint16_t conn_handle, uint16_t attr_handle, uint16_t val_offset, uint8_t val_len, uint8_t *attr_val)
Start the procedure to write a characteristic reliably.
Definition: bluenrg_gatt_aci.c:1024
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:918
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:973
Definition: bluenrg_gatt_aci.h:948
__packed struct _evt_gatt_procedure_complete evt_gatt_procedure_complete
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:1015
Definition: bluenrg_gatt_aci.h:822
Definition: bluenrg_gatt_aci.h:906
Definition: bluenrg_gatt_aci.h:1037
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:886
__packed struct _evt_att_find_information_resp evt_att_find_information_resp
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:907
uint16_t attribute_handle
Definition: bluenrg_gatt_aci.h:938
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:1016
tBleStatus aci_gatt_disc_charac_by_uuid(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle, uint8_t uuid_type, const uint8_t *uuid)
Start the procedure to discover all the characteristics specified by a UUID.
Definition: bluenrg_gatt_aci.c:761
Definition: bluenrg_gatt_aci.h:884
Definition: bluenrg_gatt_aci.h:1013
tBleStatus aci_gatt_read_long_charac_desc(uint16_t conn_handle, uint16_t attr_handle, uint16_t val_offset)
Start the procedure to read a long characteristic value.
Definition: bluenrg_gatt_aci.c:1086
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:936
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:1001
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:949
tBleStatus aci_gatt_write_charac_value(uint16_t conn_handle, uint16_t attr_handle, uint8_t value_len, uint8_t *attr_value)
Start the procedure to write a characteristic value.
Definition: bluenrg_gatt_aci.c:953
tBleStatus aci_gatt_read_multiple_charac_val(uint16_t conn_handle, uint8_t num_handles, uint8_t *set_of_handles)
Start a procedure to read multiple characteristic values from a server.
Definition: bluenrg_gatt_aci.c:922
uint8_t data_length
Definition: bluenrg_gatt_aci.h:1057
uint8_t attribute_data_length
Definition: bluenrg_gatt_aci.h:920
__packed struct _evt_gatt_indication evt_gatt_indication
uint16_t available_buffers
Definition: bluenrg_gatt_aci.h:1087
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:814
tBleStatus aci_gatt_update_char_value(uint16_t servHandle, uint16_t charHandle, uint8_t charValOffset, uint8_t charValueLen, const void *charValue)
Update a characteristic value in a service.
Definition: bluenrg_gatt_aci.c:313
__packed struct _evt_gatt_read_permit_req evt_gatt_read_permit_req
tBleStatus aci_gatt_write_long_charac_val(uint16_t conn_handle, uint16_t attr_handle, uint16_t val_offset, uint8_t val_len, const uint8_t *attr_val)
Start the procedure to write a long characteristic value.
Definition: bluenrg_gatt_aci.c:993
tBleStatus aci_gatt_write_response(uint16_t conn_handle, uint16_t attr_handle, uint8_t write_status, uint8_t err_code, uint8_t att_val_len, uint8_t *att_val)
Allow or reject a write request from a client.
Definition: bluenrg_gatt_aci.c:1256
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:854
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:959
Definition: bluenrg_gatt_aci.h:833
Definition: bluenrg_gatt_aci.h:1085
__packed struct _evt_att_read_resp evt_att_read_resp
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:998
tBleStatus aci_gatt_set_security_permission(uint16_t service_handle, uint16_t attr_handle, uint8_t security_permission)
Set the security permission for the attribute handle specified.
Definition: bluenrg_gatt_aci.c:1331
tBleStatus aci_gatt_signed_write_without_resp(uint16_t conn_handle, uint16_t attr_handle, uint8_t val_len, uint8_t *attr_val)
Start a signed write without response from the server.
Definition: bluenrg_gatt_aci.c:1205
Definition: bluenrg_gatt_aci.h:970
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:824
uint16_t server_rx_mtu
Definition: bluenrg_gatt_aci.h:825
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:835
tBleStatus aci_gatt_add_serv(uint8_t service_uuid_type, const uint8_t *service_uuid, uint8_t service_type, uint8_t max_attr_records, uint16_t *serviceHandle)
Add a service to the GATT Server. When a service is created in the server, the Host needs to reserve ...
Definition: bluenrg_gatt_aci.c:45
tBleStatus aci_gatt_read_charac_desc(uint16_t conn_handle, uint16_t attr_handle)
Start the procedure to read the descriptor specified.
Definition: bluenrg_gatt_aci.c:1152
#define PACKED
Definition: bluenrg_types.h:63
tBleStatus aci_gatt_add_char_desc(uint16_t serviceHandle, uint16_t charHandle, uint8_t descUuidType, const uint8_t *uuid, uint8_t descValueMaxLen, uint8_t descValueLen, const void *descValue, uint8_t secPermissions, uint8_t accPermissions, uint8_t gattEvtMask, uint8_t encryKeySize, uint8_t isVariable, uint16_t *descHandle)
Definition: bluenrg_gatt_aci.c:223
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:853
uint8_t data_length
Definition: bluenrg_gatt_aci.h:1115
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:795
uint8_t format
Definition: bluenrg_gatt_aci.h:836
__packed struct _evt_att_read_blob_resp evt_att_read_blob_resp
tBleStatus aci_gatt_del_service(uint16_t servHandle)
Delete the specified service from the GATT server database.
Definition: bluenrg_gatt_aci.c:385
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:897
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:869
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:1112
uint16_t offset
Definition: bluenrg_gatt_aci.h:1114
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:1014
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:999
tBleStatus aci_gatt_allow_read(uint16_t conn_handle)
Allow the GATT server to send a response to a read request from a client.
Definition: bluenrg_gatt_aci.c:1309
uint8_t data_length
Definition: bluenrg_gatt_aci.h:1040
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:972
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:1095
Definition: bluenrg_gatt_aci.h:1054
uint8_t data_length
Definition: bluenrg_gatt_aci.h:984
__packed struct _evt_gatt_server_confirmation evt_gatt_server_confirmation
tBleStatus aci_gatt_find_included_services(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle)
Start the procedure to find all included services.
Definition: bluenrg_gatt_aci.c:709
tBleStatus aci_gatt_del_char(uint16_t servHandle, uint16_t charHandle)
Delete the specified characteristic from the service.
Definition: bluenrg_gatt_aci.c:362
uint8_t req_opcode
Definition: bluenrg_gatt_aci.h:1000
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:794
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:823
tBleStatus aci_gatt_include_service(uint16_t service_handle, uint16_t included_start_handle, uint16_t included_end_handle, uint8_t included_uuid_type, const uint8_t *included_uuid, uint16_t *included_handle)
Include a service given by included_start_handle and included_end_handle to another service given by ...
Definition: bluenrg_gatt_aci.c:94
__packed struct _evt_att_find_by_type_val_resp evt_att_find_by_type_val_resp
Definition: bluenrg_gatt_aci.h:852
__packed struct _evt_gatt_prepare_write_permit_req evt_gatt_prepare_write_permit_req
uint16_t conn_handle
Definition: bluenrg_gatt_aci.h:1086
uint16_t attr_handle
Definition: bluenrg_gatt_aci.h:961
tBleStatus aci_att_execute_write_req(uint16_t conn_handle, uint8_t execute)
Send an Execute Write Request.
Definition: bluenrg_gatt_aci.c:630
__packed struct _evt_gatt_error_resp evt_gatt_error_resp
tBleStatus aci_gatt_add_char(uint16_t serviceHandle, uint8_t charUuidType, const uint8_t *charUuid, uint8_t charValueLen, uint8_t charProperties, uint8_t secPermissions, uint8_t gattEvtMask, uint8_t encryKeySize, uint8_t isVariable, uint16_t *charHandle)
Add a characteristic to a service.
Definition: bluenrg_gatt_aci.c:150
Definition: bluenrg_gatt_aci.h:982
Definition: bluenrg_gatt_aci.h:917
tBleStatus aci_att_find_information_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle)
Send a Find Information Request.
Definition: bluenrg_gatt_aci.c:475
tBleStatus aci_att_find_by_type_value_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle, uint8_t *uuid, uint8_t attr_val_len, uint8_t *attr_val)
Send a Find By Type Value Request.
Definition: bluenrg_gatt_aci.c:499
tBleStatus aci_gatt_set_event_mask(uint32_t event_mask)
Definition: bluenrg_gatt_aci.c:430
__packed struct _evt_gatt_write_permit_req evt_gatt_write_permit_req
Definition: bluenrg_gatt_aci.h:935
__packed struct _evt_gatt_tx_pool_available evt_gatt_tx_pool_available
uint8_t event_data_length
Definition: bluenrg_gatt_aci.h:870
__packed struct _evt_att_read_by_group_resp evt_att_read_by_group_resp
tBleStatus aci_att_read_by_type_req(uint16_t conn_handle, uint16_t start_handle, uint16_t end_handle, uint8_t uuid_type, uint8_t *uuid)
Send a Read By Type Request.
Definition: bluenrg_gatt_aci.c:530
uint8_t att_data[VARIABLE_SIZE]
Definition: bluenrg_gatt_aci.h:798
uint8_t data_length
Definition: bluenrg_gatt_aci.h:796
__packed struct _evt_att_read_by_type_resp evt_att_read_by_type_resp
Generated on Mon Apr 15 2019 18:10:39 for BlueNRG-MS pack for STM32CubeMX by   doxygen 1.8.13