Cypress PSoC 6 Bluetooth Low Energy Middleware Library 3.60
cy_stc_ble_gatts_prep_write_req_param_t Struct Reference

Description

Prepare write request parameter received from Client.

Data Fields

cy_stc_ble_gatt_handle_value_offset_param_tbaseAddr
 Base address of the queue containing the data. More...
 
cy_stc_ble_conn_handle_t connHandle
 Connection handle.
 
uint8_t currentPrepWriteReqCount
 Current count of prepare requests from remote. More...
 
uint8_t gattErrorCode
 The application provides GATT error code for the procedure. More...
 

Field Documentation

◆ baseAddr

cy_stc_ble_gatt_handle_value_offset_param_t* cy_stc_ble_gatts_prep_write_req_param_t::baseAddr

Base address of the queue containing the data.

Queue is of type cy_stc_ble_gatt_handle_value_offset_param_t. Each baseAddr[currentPrepWriteReqCount-1].handleValuePair.value.val provides the current data and baseAddr[0].handleValuePair.value.val provides the base address of the data buffer where the full value will be stored. The application can calculate the total length based on each each array element; i.e., total length of current request = baseAddr[0].handleValuePair.value.len+ ....+baseAddr[currentPrepWriteReqCount-1].handleValuePair.value.len

◆ currentPrepWriteReqCount

uint8_t cy_stc_ble_gatts_prep_write_req_param_t::currentPrepWriteReqCount

Current count of prepare requests from remote.

This parameter can be used to access the data from 'baseAddr[]'. Array index will range from 0 to currentPrepWriteReqCount - 1

◆ gattErrorCode

uint8_t cy_stc_ble_gatts_prep_write_req_param_t::gattErrorCode

The application provides GATT error code for the procedure.

This is an output parameter.