Enumerations
Enumerations
BLE Services » Throughput Service (THS)

## Enumerations
enum | ths_transport_mode_t { THS_SLAVE_NOTIFY_MODE, THS_MASTER_WRITE_MODE, THS_DOUBLE_MODE }
| Throughput data transport mode. More...
enum | ths_evt_type_t { THS_EVT_INVALID, THS_EVT_DATA_RECEIVED, THS_EVT_DATA_SENT, THS_EVT_SETTINGS_CHANGED, THS_EVT_TOGGLE_SET }
| Throughput Service event type. More...
enum | ths_toggle_state_t { THS_TOGGLE_STATE_OFF, THS_TOGGLE_STATE_ON }
| Throughput toggle state of sending the data. More...
enum | ths_settings_type_t { THS_SETTINGS_TYPE_CI, THS_SETTINGS_TYPE_MTU, THS_SETTINGS_TYPE_PDU, THS_SETTINGS_TYPE_PHY, THS_SETTINGS_TYPE_TRANS_MODE, THS_SETTINGS_TYPE_TX_POWER, THS_SETTINGS_TYPE_RANGING_PARAM }
| Throughput service settings types. More...

## Detailed Description

## Enumeration Type Documentation

## ◆ ths_evt_type_t

enum ths_evt_type_t

Throughput Service event type.

Enumerator
THS_EVT_INVALID | Invalid THS event type.
THS_EVT_DATA_RECEIVED | The data from the peer has been received. The application gets the data in ths_evt_t::p_data.
THS_EVT_DATA_SENT | The data from the application has been sent, and the service is ready to accept new data from the application.
THS_EVT_SETTINGS_CHANGED | The settings parameters, like MTU, PHY, have been changed by the peer.
THS_EVT_TOGGLE_SET | The toggle state has been set by the peer.

Definition at line 91 of file ths.h.

## ◆ ths_settings_type_t

enum ths_settings_type_t

Throughput service settings types.

Enumerator
THS_SETTINGS_TYPE_CI | BLE Connection Interval parameter.
THS_SETTINGS_TYPE_MTU | MTU Size.
THS_SETTINGS_TYPE_PDU | PDU Size.
THS_SETTINGS_TYPE_PHY | Radio Phy mode, 1M, 2M, Encoded.
THS_SETTINGS_TYPE_TRANS_MODE | Data transmission mode.
THS_SETTINGS_TYPE_TX_POWER | Connect Tx power.
THS_SETTINGS_TYPE_RANGING_PARAM |

Definition at line 108 of file ths.h.

## ◆ ths_toggle_state_t

enum ths_toggle_state_t

Throughput toggle state of sending the data.

Enumerator
THS_TOGGLE_STATE_OFF | Sending data is disabled.
THS_TOGGLE_STATE_ON | Sending data is enabled.

Definition at line 101 of file ths.h.

## ◆ ths_transport_mode_t

enum ths_transport_mode_t

Throughput data transport mode.

Enumerator
THS_SLAVE_NOTIFY_MODE | Only allow device notify.
THS_MASTER_WRITE_MODE | Only allow peer writes.
THS_DOUBLE_MODE | Allow device notify and peer writes at the same time.

Definition at line 83 of file ths.h.