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

Description

memory request parameters for prepare write request

Data Fields

uint8_t * queueBuffer
 buffer to which a prepared write queue request will be stored. More...
 
uint16_t totalAttrValueLength
 length of attribute value in bytes. More...
 
uint16_t prepareWriteQueueSize
 Size of queueBuffer buffer. More...
 
cy_stc_ble_conn_handle_t connHandle
 Connection Handle.
 

Field Documentation

◆ queueBuffer

uint8_t* cy_stc_ble_prepare_write_request_memory_t::queueBuffer

buffer to which a prepared write queue request will be stored.

The buffer can be calculated as: total buffer = totalAttrValueLength

◆ totalAttrValueLength

uint16_t cy_stc_ble_prepare_write_request_memory_t::totalAttrValueLength

length of attribute value in bytes.

This value can be the maximum attribute value length or sum of value lengths that support a long write. The value should be multiple of a 32-bit unsigned integer.

◆ prepareWriteQueueSize

uint16_t cy_stc_ble_prepare_write_request_memory_t::prepareWriteQueueSize

Size of queueBuffer buffer.

The application may decide the size based on (totalAttrValueLength) /(negotiated or default MTU size - 5). In case of a reliable write, queue depth should at least be equal to number of handles that have reliable write support.