|
@@ -18,7 +18,6 @@
|
|
|
#ifndef BLE_GATT_ACI_H__
|
|
#ifndef BLE_GATT_ACI_H__
|
|
|
#define BLE_GATT_ACI_H__
|
|
#define BLE_GATT_ACI_H__
|
|
|
|
|
|
|
|
-
|
|
|
|
|
//#include "ble_types.h"
|
|
//#include "ble_types.h"
|
|
|
#include <ble/core/auto/ble_types.h>
|
|
#include <ble/core/auto/ble_types.h>
|
|
|
|
|
|
|
@@ -32,7 +31,7 @@
|
|
|
*
|
|
*
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_init( void );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_init(void);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_ADD_SERVICE
|
|
* @brief ACI_GATT_ADD_SERVICE
|
|
@@ -63,11 +62,12 @@ tBleStatus aci_gatt_init( void );
|
|
|
* serviceHandle to <serviceHandle + max_attr_records - 1>
|
|
* serviceHandle to <serviceHandle + max_attr_records - 1>
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_add_service( uint8_t Service_UUID_Type,
|
|
|
|
|
- const Service_UUID_t* Service_UUID,
|
|
|
|
|
- uint8_t Service_Type,
|
|
|
|
|
- uint8_t Max_Attribute_Records,
|
|
|
|
|
- uint16_t* Service_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_add_service(
|
|
|
|
|
+ uint8_t Service_UUID_Type,
|
|
|
|
|
+ const Service_UUID_t* Service_UUID,
|
|
|
|
|
+ uint8_t Service_Type,
|
|
|
|
|
+ uint8_t Max_Attribute_Records,
|
|
|
|
|
+ uint16_t* Service_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_INCLUDE_SERVICE
|
|
* @brief ACI_GATT_INCLUDE_SERVICE
|
|
@@ -88,12 +88,13 @@ tBleStatus aci_gatt_add_service( uint8_t Service_UUID_Type,
|
|
|
* @param[out] Include_Handle Handle of the include declaration
|
|
* @param[out] Include_Handle Handle of the include declaration
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_include_service( uint16_t Service_Handle,
|
|
|
|
|
- uint16_t Include_Start_Handle,
|
|
|
|
|
- uint16_t Include_End_Handle,
|
|
|
|
|
- uint8_t Include_UUID_Type,
|
|
|
|
|
- const Include_UUID_t* Include_UUID,
|
|
|
|
|
- uint16_t* Include_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_include_service(
|
|
|
|
|
+ uint16_t Service_Handle,
|
|
|
|
|
+ uint16_t Include_Start_Handle,
|
|
|
|
|
+ uint16_t Include_End_Handle,
|
|
|
|
|
+ uint8_t Include_UUID_Type,
|
|
|
|
|
+ const Include_UUID_t* Include_UUID,
|
|
|
|
|
+ uint16_t* Include_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_ADD_CHAR
|
|
* @brief ACI_GATT_ADD_CHAR
|
|
@@ -161,16 +162,17 @@ tBleStatus aci_gatt_include_service( uint16_t Service_Handle,
|
|
|
* is the handle of the characteristic declaration).
|
|
* is the handle of the characteristic declaration).
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_add_char( uint16_t Service_Handle,
|
|
|
|
|
- uint8_t Char_UUID_Type,
|
|
|
|
|
- const Char_UUID_t* Char_UUID,
|
|
|
|
|
- uint16_t Char_Value_Length,
|
|
|
|
|
- uint8_t Char_Properties,
|
|
|
|
|
- uint8_t Security_Permissions,
|
|
|
|
|
- uint8_t GATT_Evt_Mask,
|
|
|
|
|
- uint8_t Enc_Key_Size,
|
|
|
|
|
- uint8_t Is_Variable,
|
|
|
|
|
- uint16_t* Char_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_add_char(
|
|
|
|
|
+ uint16_t Service_Handle,
|
|
|
|
|
+ uint8_t Char_UUID_Type,
|
|
|
|
|
+ const Char_UUID_t* Char_UUID,
|
|
|
|
|
+ uint16_t Char_Value_Length,
|
|
|
|
|
+ uint8_t Char_Properties,
|
|
|
|
|
+ uint8_t Security_Permissions,
|
|
|
|
|
+ uint8_t GATT_Evt_Mask,
|
|
|
|
|
+ uint8_t Enc_Key_Size,
|
|
|
|
|
+ uint8_t Is_Variable,
|
|
|
|
|
+ uint16_t* Char_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_ADD_CHAR_DESC
|
|
* @brief ACI_GATT_ADD_CHAR_DESC
|
|
@@ -224,19 +226,20 @@ tBleStatus aci_gatt_add_char( uint16_t Service_Handle,
|
|
|
* @param[out] Char_Desc_Handle Handle of the characteristic descriptor
|
|
* @param[out] Char_Desc_Handle Handle of the characteristic descriptor
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_add_char_desc( uint16_t Service_Handle,
|
|
|
|
|
- uint16_t Char_Handle,
|
|
|
|
|
- uint8_t Char_Desc_Uuid_Type,
|
|
|
|
|
- const Char_Desc_Uuid_t* Char_Desc_Uuid,
|
|
|
|
|
- uint8_t Char_Desc_Value_Max_Len,
|
|
|
|
|
- uint8_t Char_Desc_Value_Length,
|
|
|
|
|
- const uint8_t* Char_Desc_Value,
|
|
|
|
|
- uint8_t Security_Permissions,
|
|
|
|
|
- uint8_t Access_Permissions,
|
|
|
|
|
- uint8_t GATT_Evt_Mask,
|
|
|
|
|
- uint8_t Enc_Key_Size,
|
|
|
|
|
- uint8_t Is_Variable,
|
|
|
|
|
- uint16_t* Char_Desc_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_add_char_desc(
|
|
|
|
|
+ uint16_t Service_Handle,
|
|
|
|
|
+ uint16_t Char_Handle,
|
|
|
|
|
+ uint8_t Char_Desc_Uuid_Type,
|
|
|
|
|
+ const Char_Desc_Uuid_t* Char_Desc_Uuid,
|
|
|
|
|
+ uint8_t Char_Desc_Value_Max_Len,
|
|
|
|
|
+ uint8_t Char_Desc_Value_Length,
|
|
|
|
|
+ const uint8_t* Char_Desc_Value,
|
|
|
|
|
+ uint8_t Security_Permissions,
|
|
|
|
|
+ uint8_t Access_Permissions,
|
|
|
|
|
+ uint8_t GATT_Evt_Mask,
|
|
|
|
|
+ uint8_t Enc_Key_Size,
|
|
|
|
|
+ uint8_t Is_Variable,
|
|
|
|
|
+ uint16_t* Char_Desc_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_UPDATE_CHAR_VALUE
|
|
* @brief ACI_GATT_UPDATE_CHAR_VALUE
|
|
@@ -283,11 +286,12 @@ tBleStatus aci_gatt_add_char_desc( uint16_t Service_Handle,
|
|
|
* @param Char_Value Characteristic value
|
|
* @param Char_Value Characteristic value
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_update_char_value( uint16_t Service_Handle,
|
|
|
|
|
- uint16_t Char_Handle,
|
|
|
|
|
- uint8_t Val_Offset,
|
|
|
|
|
- uint8_t Char_Value_Length,
|
|
|
|
|
- const uint8_t* Char_Value );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_update_char_value(
|
|
|
|
|
+ uint16_t Service_Handle,
|
|
|
|
|
+ uint16_t Char_Handle,
|
|
|
|
|
+ uint8_t Val_Offset,
|
|
|
|
|
+ uint8_t Char_Value_Length,
|
|
|
|
|
+ const uint8_t* Char_Value);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DEL_CHAR
|
|
* @brief ACI_GATT_DEL_CHAR
|
|
@@ -297,8 +301,7 @@ tBleStatus aci_gatt_update_char_value( uint16_t Service_Handle,
|
|
|
* @param Char_Handle Handle of the characteristic which has to be deleted
|
|
* @param Char_Handle Handle of the characteristic which has to be deleted
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_del_char( uint16_t Serv_Handle,
|
|
|
|
|
- uint16_t Char_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_del_char(uint16_t Serv_Handle, uint16_t Char_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DEL_SERVICE
|
|
* @brief ACI_GATT_DEL_SERVICE
|
|
@@ -307,7 +310,7 @@ tBleStatus aci_gatt_del_char( uint16_t Serv_Handle,
|
|
|
* @param Serv_Handle Handle of the service to be deleted
|
|
* @param Serv_Handle Handle of the service to be deleted
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_del_service( uint16_t Serv_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_del_service(uint16_t Serv_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DEL_INCLUDE_SERVICE
|
|
* @brief ACI_GATT_DEL_INCLUDE_SERVICE
|
|
@@ -318,8 +321,7 @@ tBleStatus aci_gatt_del_service( uint16_t Serv_Handle );
|
|
|
* @param Include_Handle Handle of the included service which has to be deleted
|
|
* @param Include_Handle Handle of the included service which has to be deleted
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_del_include_service( uint16_t Serv_Handle,
|
|
|
|
|
- uint16_t Include_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_del_include_service(uint16_t Serv_Handle, uint16_t Include_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_SET_EVENT_MASK
|
|
* @brief ACI_GATT_SET_EVENT_MASK
|
|
@@ -352,7 +354,7 @@ tBleStatus aci_gatt_del_include_service( uint16_t Serv_Handle,
|
|
|
* - 0x00400000: ACI_GATT_NOTIFICATION_EXT_EVENT
|
|
* - 0x00400000: ACI_GATT_NOTIFICATION_EXT_EVENT
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_set_event_mask( uint32_t GATT_Evt_Mask );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_set_event_mask(uint32_t GATT_Evt_Mask);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_EXCHANGE_CONFIG
|
|
* @brief ACI_GATT_EXCHANGE_CONFIG
|
|
@@ -367,7 +369,7 @@ tBleStatus aci_gatt_set_event_mask( uint32_t GATT_Evt_Mask );
|
|
|
* - 0x0000 ... 0x0EFF
|
|
* - 0x0000 ... 0x0EFF
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_exchange_config( uint16_t Connection_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_exchange_config(uint16_t Connection_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_ATT_FIND_INFO_REQ
|
|
* @brief ACI_ATT_FIND_INFO_REQ
|
|
@@ -384,9 +386,8 @@ tBleStatus aci_gatt_exchange_config( uint16_t Connection_Handle );
|
|
|
* @param End_Handle Last requested handle number
|
|
* @param End_Handle Last requested handle number
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_att_find_info_req( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle );
|
|
|
|
|
|
|
+tBleStatus
|
|
|
|
|
+ aci_att_find_info_req(uint16_t Connection_Handle, uint16_t Start_Handle, uint16_t End_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_ATT_FIND_BY_TYPE_VALUE_REQ
|
|
* @brief ACI_ATT_FIND_BY_TYPE_VALUE_REQ
|
|
@@ -409,12 +410,13 @@ tBleStatus aci_att_find_info_req( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Attribute value to find
|
|
* @param Attribute_Val Attribute value to find
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_att_find_by_type_value_req( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle,
|
|
|
|
|
- uint16_t UUID,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_att_find_by_type_value_req(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Start_Handle,
|
|
|
|
|
+ uint16_t End_Handle,
|
|
|
|
|
+ uint16_t UUID,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_ATT_READ_BY_TYPE_REQ
|
|
* @brief ACI_ATT_READ_BY_TYPE_REQ
|
|
@@ -432,11 +434,12 @@ tBleStatus aci_att_find_by_type_value_req( uint16_t Connection_Handle,
|
|
|
* @param UUID See @ref UUID_t
|
|
* @param UUID See @ref UUID_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_att_read_by_type_req( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle,
|
|
|
|
|
- uint8_t UUID_Type,
|
|
|
|
|
- const UUID_t* UUID );
|
|
|
|
|
|
|
+tBleStatus aci_att_read_by_type_req(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Start_Handle,
|
|
|
|
|
+ uint16_t End_Handle,
|
|
|
|
|
+ uint8_t UUID_Type,
|
|
|
|
|
+ const UUID_t* UUID);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_ATT_READ_BY_GROUP_TYPE_REQ
|
|
* @brief ACI_ATT_READ_BY_GROUP_TYPE_REQ
|
|
@@ -458,11 +461,12 @@ tBleStatus aci_att_read_by_type_req( uint16_t Connection_Handle,
|
|
|
* @param UUID See @ref UUID_t
|
|
* @param UUID See @ref UUID_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_att_read_by_group_type_req( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle,
|
|
|
|
|
- uint8_t UUID_Type,
|
|
|
|
|
- const UUID_t* UUID );
|
|
|
|
|
|
|
+tBleStatus aci_att_read_by_group_type_req(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Start_Handle,
|
|
|
|
|
+ uint16_t End_Handle,
|
|
|
|
|
+ uint8_t UUID_Type,
|
|
|
|
|
+ const UUID_t* UUID);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_ATT_PREPARE_WRITE_REQ
|
|
* @brief ACI_ATT_PREPARE_WRITE_REQ
|
|
@@ -483,11 +487,12 @@ tBleStatus aci_att_read_by_group_type_req( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val The value of the attribute to be written
|
|
* @param Attribute_Val The value of the attribute to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_att_prepare_write_req( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint16_t Val_Offset,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_att_prepare_write_req(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint16_t Val_Offset,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_ATT_EXECUTE_WRITE_REQ
|
|
* @brief ACI_ATT_EXECUTE_WRITE_REQ
|
|
@@ -509,8 +514,7 @@ tBleStatus aci_att_prepare_write_req( uint16_t Connection_Handle,
|
|
|
* - 0x01: Immediately write all pending prepared values
|
|
* - 0x01: Immediately write all pending prepared values
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_att_execute_write_req( uint16_t Connection_Handle,
|
|
|
|
|
- uint8_t Execute );
|
|
|
|
|
|
|
+tBleStatus aci_att_execute_write_req(uint16_t Connection_Handle, uint8_t Execute);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DISC_ALL_PRIMARY_SERVICES
|
|
* @brief ACI_GATT_DISC_ALL_PRIMARY_SERVICES
|
|
@@ -528,7 +532,7 @@ tBleStatus aci_att_execute_write_req( uint16_t Connection_Handle,
|
|
|
* parameter is the connection-oriented channel index)
|
|
* parameter is the connection-oriented channel index)
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_disc_all_primary_services( uint16_t Connection_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_disc_all_primary_services(uint16_t Connection_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DISC_PRIMARY_SERVICE_BY_UUID
|
|
* @brief ACI_GATT_DISC_PRIMARY_SERVICE_BY_UUID
|
|
@@ -550,9 +554,10 @@ tBleStatus aci_gatt_disc_all_primary_services( uint16_t Connection_Handle );
|
|
|
* @param UUID See @ref UUID_t
|
|
* @param UUID See @ref UUID_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_disc_primary_service_by_uuid( uint16_t Connection_Handle,
|
|
|
|
|
- uint8_t UUID_Type,
|
|
|
|
|
- const UUID_t* UUID );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_disc_primary_service_by_uuid(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint8_t UUID_Type,
|
|
|
|
|
+ const UUID_t* UUID);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_FIND_INCLUDED_SERVICES
|
|
* @brief ACI_GATT_FIND_INCLUDED_SERVICES
|
|
@@ -573,9 +578,10 @@ tBleStatus aci_gatt_disc_primary_service_by_uuid( uint16_t Connection_Handle,
|
|
|
* @param End_Handle End attribute handle of the service
|
|
* @param End_Handle End attribute handle of the service
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_find_included_services( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_find_included_services(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Start_Handle,
|
|
|
|
|
+ uint16_t End_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DISC_ALL_CHAR_OF_SERVICE
|
|
* @brief ACI_GATT_DISC_ALL_CHAR_OF_SERVICE
|
|
@@ -595,9 +601,10 @@ tBleStatus aci_gatt_find_included_services( uint16_t Connection_Handle,
|
|
|
* @param End_Handle End attribute handle of the service
|
|
* @param End_Handle End attribute handle of the service
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_disc_all_char_of_service( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_disc_all_char_of_service(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Start_Handle,
|
|
|
|
|
+ uint16_t End_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DISC_CHAR_BY_UUID
|
|
* @brief ACI_GATT_DISC_CHAR_BY_UUID
|
|
@@ -620,11 +627,12 @@ tBleStatus aci_gatt_disc_all_char_of_service( uint16_t Connection_Handle,
|
|
|
* @param UUID See @ref UUID_t
|
|
* @param UUID See @ref UUID_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_disc_char_by_uuid( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle,
|
|
|
|
|
- uint8_t UUID_Type,
|
|
|
|
|
- const UUID_t* UUID );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_disc_char_by_uuid(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Start_Handle,
|
|
|
|
|
+ uint16_t End_Handle,
|
|
|
|
|
+ uint8_t UUID_Type,
|
|
|
|
|
+ const UUID_t* UUID);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DISC_ALL_CHAR_DESC
|
|
* @brief ACI_GATT_DISC_ALL_CHAR_DESC
|
|
@@ -645,9 +653,10 @@ tBleStatus aci_gatt_disc_char_by_uuid( uint16_t Connection_Handle,
|
|
|
* @param End_Handle End handle of the characteristic
|
|
* @param End_Handle End handle of the characteristic
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_disc_all_char_desc( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Char_Handle,
|
|
|
|
|
- uint16_t End_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_disc_all_char_desc(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Char_Handle,
|
|
|
|
|
+ uint16_t End_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_CHAR_VALUE
|
|
* @brief ACI_GATT_READ_CHAR_VALUE
|
|
@@ -666,8 +675,7 @@ tBleStatus aci_gatt_disc_all_char_desc( uint16_t Connection_Handle,
|
|
|
* @param Attr_Handle Handle of the characteristic value to be read
|
|
* @param Attr_Handle Handle of the characteristic value to be read
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_char_value( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_char_value(uint16_t Connection_Handle, uint16_t Attr_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_USING_CHAR_UUID
|
|
* @brief ACI_GATT_READ_USING_CHAR_UUID
|
|
@@ -694,11 +702,12 @@ tBleStatus aci_gatt_read_char_value( uint16_t Connection_Handle,
|
|
|
* @param UUID See @ref UUID_t
|
|
* @param UUID See @ref UUID_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_using_char_uuid( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Start_Handle,
|
|
|
|
|
- uint16_t End_Handle,
|
|
|
|
|
- uint8_t UUID_Type,
|
|
|
|
|
- const UUID_t* UUID );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_using_char_uuid(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Start_Handle,
|
|
|
|
|
+ uint16_t End_Handle,
|
|
|
|
|
+ uint8_t UUID_Type,
|
|
|
|
|
+ const UUID_t* UUID);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_LONG_CHAR_VALUE
|
|
* @brief ACI_GATT_READ_LONG_CHAR_VALUE
|
|
@@ -718,9 +727,10 @@ tBleStatus aci_gatt_read_using_char_uuid( uint16_t Connection_Handle,
|
|
|
* @param Val_Offset Offset from which the value needs to be read
|
|
* @param Val_Offset Offset from which the value needs to be read
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_long_char_value( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint16_t Val_Offset );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_long_char_value(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint16_t Val_Offset);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_MULTIPLE_CHAR_VALUE
|
|
* @brief ACI_GATT_READ_MULTIPLE_CHAR_VALUE
|
|
@@ -744,9 +754,10 @@ tBleStatus aci_gatt_read_long_char_value( uint16_t Connection_Handle,
|
|
|
* @param Handle_Entry See @ref Handle_Entry_t
|
|
* @param Handle_Entry See @ref Handle_Entry_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_multiple_char_value( uint16_t Connection_Handle,
|
|
|
|
|
- uint8_t Number_of_Handles,
|
|
|
|
|
- const Handle_Entry_t* Handle_Entry );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_multiple_char_value(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint8_t Number_of_Handles,
|
|
|
|
|
+ const Handle_Entry_t* Handle_Entry);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_WRITE_CHAR_VALUE
|
|
* @brief ACI_GATT_WRITE_CHAR_VALUE
|
|
@@ -769,10 +780,11 @@ tBleStatus aci_gatt_read_multiple_char_value( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Value to be written
|
|
* @param Attribute_Val Value to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_write_char_value( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_write_char_value(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_WRITE_LONG_CHAR_VALUE
|
|
* @brief ACI_GATT_WRITE_LONG_CHAR_VALUE
|
|
@@ -796,11 +808,12 @@ tBleStatus aci_gatt_write_char_value( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Value to be written
|
|
* @param Attribute_Val Value to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_write_long_char_value( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint16_t Val_Offset,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_write_long_char_value(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint16_t Val_Offset,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_WRITE_CHAR_RELIABLE
|
|
* @brief ACI_GATT_WRITE_CHAR_RELIABLE
|
|
@@ -824,11 +837,12 @@ tBleStatus aci_gatt_write_long_char_value( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Value to be written
|
|
* @param Attribute_Val Value to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_write_char_reliable( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint16_t Val_Offset,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_write_char_reliable(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint16_t Val_Offset,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_WRITE_LONG_CHAR_DESC
|
|
* @brief ACI_GATT_WRITE_LONG_CHAR_DESC
|
|
@@ -852,11 +866,12 @@ tBleStatus aci_gatt_write_char_reliable( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Value to be written
|
|
* @param Attribute_Val Value to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_write_long_char_desc( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint16_t Val_Offset,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_write_long_char_desc(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint16_t Val_Offset,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_LONG_CHAR_DESC
|
|
* @brief ACI_GATT_READ_LONG_CHAR_DESC
|
|
@@ -876,9 +891,10 @@ tBleStatus aci_gatt_write_long_char_desc( uint16_t Connection_Handle,
|
|
|
* @param Val_Offset Offset from which the value needs to be read
|
|
* @param Val_Offset Offset from which the value needs to be read
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_long_char_desc( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint16_t Val_Offset );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_long_char_desc(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint16_t Val_Offset);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_WRITE_CHAR_DESC
|
|
* @brief ACI_GATT_WRITE_CHAR_DESC
|
|
@@ -901,10 +917,11 @@ tBleStatus aci_gatt_read_long_char_desc( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Value to be written
|
|
* @param Attribute_Val Value to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_write_char_desc( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_write_char_desc(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_CHAR_DESC
|
|
* @brief ACI_GATT_READ_CHAR_DESC
|
|
@@ -924,8 +941,7 @@ tBleStatus aci_gatt_write_char_desc( uint16_t Connection_Handle,
|
|
|
* @param Attr_Handle Handle of the descriptor to be read
|
|
* @param Attr_Handle Handle of the descriptor to be read
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_char_desc( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_char_desc(uint16_t Connection_Handle, uint16_t Attr_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_WRITE_WITHOUT_RESP
|
|
* @brief ACI_GATT_WRITE_WITHOUT_RESP
|
|
@@ -948,10 +964,11 @@ tBleStatus aci_gatt_read_char_desc( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Value to be written
|
|
* @param Attribute_Val Value to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_write_without_resp( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_write_without_resp(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_SIGNED_WRITE_WITHOUT_RESP
|
|
* @brief ACI_GATT_SIGNED_WRITE_WITHOUT_RESP
|
|
@@ -971,10 +988,11 @@ tBleStatus aci_gatt_write_without_resp( uint16_t Connection_Handle,
|
|
|
* @param Attribute_Val Value to be written
|
|
* @param Attribute_Val Value to be written
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_signed_write_without_resp( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_signed_write_without_resp(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_CONFIRM_INDICATION
|
|
* @brief ACI_GATT_CONFIRM_INDICATION
|
|
@@ -990,7 +1008,7 @@ tBleStatus aci_gatt_signed_write_without_resp( uint16_t Connection_Handle,
|
|
|
* parameter is the connection-oriented channel index)
|
|
* parameter is the connection-oriented channel index)
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_confirm_indication( uint16_t Connection_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_confirm_indication(uint16_t Connection_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_WRITE_RESP
|
|
* @brief ACI_GATT_WRITE_RESP
|
|
@@ -1024,12 +1042,13 @@ tBleStatus aci_gatt_confirm_indication( uint16_t Connection_Handle );
|
|
|
* ACI_GATT_WRITE_PERMIT_REQ_EVENT
|
|
* ACI_GATT_WRITE_PERMIT_REQ_EVENT
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_write_resp( uint16_t Connection_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint8_t Write_status,
|
|
|
|
|
- uint8_t Error_Code,
|
|
|
|
|
- uint8_t Attribute_Val_Length,
|
|
|
|
|
- const uint8_t* Attribute_Val );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_write_resp(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint8_t Write_status,
|
|
|
|
|
+ uint8_t Error_Code,
|
|
|
|
|
+ uint8_t Attribute_Val_Length,
|
|
|
|
|
+ const uint8_t* Attribute_Val);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_ALLOW_READ
|
|
* @brief ACI_GATT_ALLOW_READ
|
|
@@ -1052,7 +1071,7 @@ tBleStatus aci_gatt_write_resp( uint16_t Connection_Handle,
|
|
|
* parameter is the connection-oriented channel index)
|
|
* parameter is the connection-oriented channel index)
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_allow_read( uint16_t Connection_Handle );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_allow_read(uint16_t Connection_Handle);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_SET_SECURITY_PERMISSION
|
|
* @brief ACI_GATT_SET_SECURITY_PERMISSION
|
|
@@ -1075,9 +1094,10 @@ tBleStatus aci_gatt_allow_read( uint16_t Connection_Handle );
|
|
|
* - 0x20: ENCRY_WRITE (need encryption to write)
|
|
* - 0x20: ENCRY_WRITE (need encryption to write)
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_set_security_permission( uint16_t Serv_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint8_t Security_Permissions );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_set_security_permission(
|
|
|
|
|
+ uint16_t Serv_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint8_t Security_Permissions);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_SET_DESC_VALUE
|
|
* @brief ACI_GATT_SET_DESC_VALUE
|
|
@@ -1093,12 +1113,13 @@ tBleStatus aci_gatt_set_security_permission( uint16_t Serv_Handle,
|
|
|
* @param Char_Desc_Value Descriptor value
|
|
* @param Char_Desc_Value Descriptor value
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_set_desc_value( uint16_t Serv_Handle,
|
|
|
|
|
- uint16_t Char_Handle,
|
|
|
|
|
- uint16_t Char_Desc_Handle,
|
|
|
|
|
- uint16_t Val_Offset,
|
|
|
|
|
- uint8_t Char_Desc_Value_Length,
|
|
|
|
|
- const uint8_t* Char_Desc_Value );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_set_desc_value(
|
|
|
|
|
+ uint16_t Serv_Handle,
|
|
|
|
|
+ uint16_t Char_Handle,
|
|
|
|
|
+ uint16_t Char_Desc_Handle,
|
|
|
|
|
+ uint16_t Val_Offset,
|
|
|
|
|
+ uint8_t Char_Desc_Value_Length,
|
|
|
|
|
+ const uint8_t* Char_Desc_Value);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_HANDLE_VALUE
|
|
* @brief ACI_GATT_READ_HANDLE_VALUE
|
|
@@ -1114,12 +1135,13 @@ tBleStatus aci_gatt_set_desc_value( uint16_t Serv_Handle,
|
|
|
* @param[out] Value Attribute value
|
|
* @param[out] Value Attribute value
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_handle_value( uint16_t Attr_Handle,
|
|
|
|
|
- uint16_t Offset,
|
|
|
|
|
- uint16_t Value_Length_Requested,
|
|
|
|
|
- uint16_t* Length,
|
|
|
|
|
- uint16_t* Value_Length,
|
|
|
|
|
- uint8_t* Value );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_handle_value(
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint16_t Offset,
|
|
|
|
|
+ uint16_t Value_Length_Requested,
|
|
|
|
|
+ uint16_t* Length,
|
|
|
|
|
+ uint16_t* Value_Length,
|
|
|
|
|
+ uint8_t* Value);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_UPDATE_CHAR_VALUE_EXT
|
|
* @brief ACI_GATT_UPDATE_CHAR_VALUE_EXT
|
|
@@ -1158,14 +1180,15 @@ tBleStatus aci_gatt_read_handle_value( uint16_t Attr_Handle,
|
|
|
* @param Value Updated characteristic value
|
|
* @param Value Updated characteristic value
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_update_char_value_ext( uint16_t Conn_Handle_To_Notify,
|
|
|
|
|
- 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 );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_update_char_value_ext(
|
|
|
|
|
+ uint16_t Conn_Handle_To_Notify,
|
|
|
|
|
+ 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);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_DENY_READ
|
|
* @brief ACI_GATT_DENY_READ
|
|
@@ -1195,8 +1218,7 @@ tBleStatus aci_gatt_update_char_value_ext( uint16_t Conn_Handle_To_Notify,
|
|
|
* - 0x80 ... 0x9F: Application Error
|
|
* - 0x80 ... 0x9F: Application Error
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_deny_read( uint16_t Connection_Handle,
|
|
|
|
|
- uint8_t Error_Code );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_deny_read(uint16_t Connection_Handle, uint8_t Error_Code);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_SET_ACCESS_PERMISSION
|
|
* @brief ACI_GATT_SET_ACCESS_PERMISSION
|
|
@@ -1215,9 +1237,10 @@ tBleStatus aci_gatt_deny_read( uint16_t Connection_Handle,
|
|
|
* - 0x08: SIGNED_WRITE
|
|
* - 0x08: SIGNED_WRITE
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_set_access_permission( uint16_t Serv_Handle,
|
|
|
|
|
- uint16_t Attr_Handle,
|
|
|
|
|
- uint8_t Access_Permissions );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_set_access_permission(
|
|
|
|
|
+ uint16_t Serv_Handle,
|
|
|
|
|
+ uint16_t Attr_Handle,
|
|
|
|
|
+ uint8_t Access_Permissions);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_STORE_DB
|
|
* @brief ACI_GATT_STORE_DB
|
|
@@ -1227,7 +1250,7 @@ tBleStatus aci_gatt_set_access_permission( uint16_t Serv_Handle,
|
|
|
*
|
|
*
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_store_db( void );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_store_db(void);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_SEND_MULT_NOTIFICATION
|
|
* @brief ACI_GATT_SEND_MULT_NOTIFICATION
|
|
@@ -1248,9 +1271,10 @@ tBleStatus aci_gatt_store_db( void );
|
|
|
* @param Handle_Entry See @ref Handle_Entry_t
|
|
* @param Handle_Entry See @ref Handle_Entry_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_send_mult_notification( uint16_t Connection_Handle,
|
|
|
|
|
- uint8_t Number_of_Handles,
|
|
|
|
|
- const Handle_Entry_t* Handle_Entry );
|
|
|
|
|
|
|
+tBleStatus aci_gatt_send_mult_notification(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint8_t Number_of_Handles,
|
|
|
|
|
+ const Handle_Entry_t* Handle_Entry);
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief ACI_GATT_READ_MULTIPLE_VAR_CHAR_VALUE
|
|
* @brief ACI_GATT_READ_MULTIPLE_VAR_CHAR_VALUE
|
|
@@ -1275,9 +1299,9 @@ tBleStatus aci_gatt_send_mult_notification( uint16_t Connection_Handle,
|
|
|
* @param Handle_Entry See @ref Handle_Entry_t
|
|
* @param Handle_Entry See @ref Handle_Entry_t
|
|
|
* @return Value indicating success or error code.
|
|
* @return Value indicating success or error code.
|
|
|
*/
|
|
*/
|
|
|
-tBleStatus aci_gatt_read_multiple_var_char_value( uint16_t Connection_Handle,
|
|
|
|
|
- uint8_t Number_of_Handles,
|
|
|
|
|
- const Handle_Entry_t* Handle_Entry );
|
|
|
|
|
-
|
|
|
|
|
|
|
+tBleStatus aci_gatt_read_multiple_var_char_value(
|
|
|
|
|
+ uint16_t Connection_Handle,
|
|
|
|
|
+ uint8_t Number_of_Handles,
|
|
|
|
|
+ const Handle_Entry_t* Handle_Entry);
|
|
|
|
|
|
|
|
#endif /* BLE_GATT_ACI_H__ */
|
|
#endif /* BLE_GATT_ACI_H__ */
|