Files | |
| file | att_errors.h |
| file | gatt_types.h |
| file | gatt_interface.h |
Data Structures | |
| struct | attPrepareWriteRequestParams_t |
| struct | gattAttribute_t |
| struct | gattCharacteristic_t |
| struct | gattService_t |
| struct | gattDbCharPresFormat_t |
| struct | gattHandleRange_t |
Enumerations | |
| enum | attErrorCode_t { gAttErrCodeNoError_c, gAttErrCodeInvalidHandle_c, gAttErrCodeReadNotPermitted_c, gAttErrCodeWriteNotPermitted_c, gAttErrCodeInvalidPdu_c, gAttErrCodeInsufficientAuthentication_c, gAttErrCodeRequestNotSupported_c, gAttErrCodeInvalidOffset_c, gAttErrCodeInsufficientAuthorization_c, gAttErrCodePrepareQueueFull_c, gAttErrCodeAttributeNotFound_c, gAttErrCodeAttributeNotLong_c, gAttErrCodeInsufficientEncryptionKeySize_c, gAttErrCodeInvalidAttributeValueLength_c, gAttErrCodeUnlikelyError_c, gAttErrCodeInsufficientEncryption_c, gAttErrCodeUnsupportedGroupType_c, gAttErrCodeInsufficientResources_c } |
| enum | gattCccdFlags_t { gCccdEmpty_c, gCccdNotification_c, gCccdIndication_c } |
Functions | |
| bleResult_t | Gatt_Init (void) |
| bleResult_t | Gatt_GetMtu (deviceId_t deviceId, uint16_t *pOutMtu) |
| struct attPrepareWriteRequestParams_t |
Prepare Write Request Parameters Structure used by external reference.
| Data Fields | ||
|---|---|---|
| uint16_t | attributeHandle | |
| uint16_t | valueOffset | |
| uint8_t | attributeValue[gAttMaxMtu_c - 5] | |
| uint16_t | attributeLength | |
| struct gattAttribute_t |
GATT Attribute structure definition.
| Data Fields | ||
|---|---|---|
| uint16_t | handle | Attribute handle. |
| bleUuidType_t | uuidType | Type of the UUID. |
| bleUuid_t | uuid | The attribute's UUID. |
| uint16_t | valueLength | Length of the attribute value array. |
| uint16_t | maxValueLength | Maximum length of the attribute value array; if this is set to 0, then the attribute's length is fixed and cannot be changed. |
| uint8_t * | paValue | Attribute value array. |
| struct gattCharacteristic_t |
GATT Characteristic structure definition.
| Data Fields | ||
|---|---|---|
| gattCharacteristicPropertiesBitFields_t | properties | Characteristic Properties as defined by GATT. |
| gattAttribute_t | value | Characteristic Value attribute. |
| uint8_t | cNumDescriptors | Size of the Characteristic Descriptors array. |
| gattAttribute_t * | aDescriptors | Characteristic Descriptors array. |
| struct gattService_t |
GATT Service structure definition.
| Data Fields | ||
|---|---|---|
| uint16_t | startHandle | The handle of the Service Declaration attribute. |
| uint16_t | endHandle | The last handle belonging to this Service (followed by another Service declaration of the end of the database). |
| bleUuidType_t | uuidType | Service UUID type. |
| bleUuid_t | uuid | Service UUID. |
| uint8_t | cNumCharacteristics | Size of the Characteristic array. |
| gattCharacteristic_t * | aCharacteristics | Characteristic array. |
| uint8_t | cNumIncludedServices | Size of the Included Services array. |
| struct gattService_tag * | aIncludedServices | Included Services array. |
| struct gattDbCharPresFormat_t |
| struct gattHandleRange_t |
| enum attErrorCode_t |
ATT error codes.
| enum gattCccdFlags_t |
| bleResult_t Gatt_Init | ( | void | ) |
Initializes the GATT module.
| bleResult_t Gatt_GetMtu | ( | deviceId_t | deviceId, |
| uint16_t * | pOutMtu | ||
| ) |
Retrieves the MTU used with a given connected device.
| [in] | deviceId | The device ID of the connected peer. |
| [out] | pOutMtu | Pointer to integer to be written. |