nRF5 SDK v17.1.0
Data Fields
nrf_ble_ots_c_t Struct Reference

Structure for holding the information related to the Object Transfer Service. More...

#include <nrf_ble_ots_c.h>

Data Fields

bool initialized
 
uint16_t conn_handle
 
nrf_ble_ots_c_service_t service
 
nrf_ble_ots_c_evt_handler_t evt_handler
 
ble_srv_error_handler_t err_handler
 
nrf_ble_gq_req_error_cb_t gatt_err_handler
 
uint16_t local_cid
 
ble_l2cap_evt_ch_setup_t ch_setup
 
uint32_t transmitted_bytes
 
uint32_t received_bytes
 
ble_data_tcurrent_obj
 
nrf_ble_gq_tp_gatt_queue
 

Detailed Description

Structure for holding the information related to the Object Transfer Service.

Warning
This structure must be zero-initialized.

Field Documentation

ble_l2cap_evt_ch_setup_t nrf_ble_ots_c_t::ch_setup

Parameters of the L2CAP Channel Setup Completed event.

uint16_t nrf_ble_ots_c_t::conn_handle

Active connection handle.

ble_data_t* nrf_ble_ots_c_t::current_obj

Pointer to the current object to be transferred.

ble_srv_error_handler_t nrf_ble_ots_c_t::err_handler

Pointer to error handler function.

nrf_ble_ots_c_evt_handler_t nrf_ble_ots_c_t::evt_handler

Pointer to event handler function.

nrf_ble_gq_req_error_cb_t nrf_ble_ots_c_t::gatt_err_handler

Error handler to be called in case of an error from the SoftDevice.

bool nrf_ble_ots_c_t::initialized

Boolean telling whether the context was initialized or not.

uint16_t nrf_ble_ots_c_t::local_cid

Connection ID of the current connection.

nrf_ble_gq_t* nrf_ble_ots_c_t::p_gatt_queue

Pointer to the BLE GATT Queue instance.

uint32_t nrf_ble_ots_c_t::received_bytes

Variable used when transferring an object from the peer.

nrf_ble_ots_c_service_t nrf_ble_ots_c_t::service

Structure to store the different handles and UUIDs related to the service.

uint32_t nrf_ble_ots_c_t::transmitted_bytes

Variable used when transferring an object to the peer.


The documentation for this struct was generated from the following file:

Documentation feedback | Developer Zone | Subscribe | Updated