Throughput Test helper#
Helper for throughput tests
Modules#
Enumerations#
enum
action_t {
act_none = 0
act_discover_service 
act_discover_characteristics 
act_enable_transmission_notification 
act_enable_notification 
act_enable_indication 
act_subscribe_result 
}
enum
enum
THROUGHPUT_STATE_UNINITALIZED 
THROUGHPUT_STATE_DISCONNECTED 
THROUGHPUT_STATE_CONNECTED 
THROUGHPUT_STATE_SUBSCRIBED 
THROUGHPUT_STATE_TEST 
THROUGHPUT_STATE_TEST_FINISH 
THROUGHPUT_STATE_UNINITALIZING 
}
State enum type.
enum
THROUGHPUT_MODE_CONTINUOUS 
THROUGHPUT_MODE_FIXED_TIME 
THROUGHPUT_MODE_FIXED_LENGTH 
}
Mode enum type.
enum
THROUGHPUT_DISCOVERY_STATE_IDLE 
THROUGHPUT_DISCOVERY_STATE_CONN 
THROUGHPUT_DISCOVERY_STATE_SCAN 
THROUGHPUT_DISCOVERY_STATE_SERVICE 
THROUGHPUT_DISCOVERY_STATE_CHARACTERISTICS 
THROUGHPUT_DISCOVERY_STATE_FINISHED 
}
Discovery state.
Typedefs#
typedef int8_t
TX power type.
typedef int8_t
RSSI type.
typedef uint16_t
PDU size type.
typedef uint16_t
MTU size type.
typedef uint16_t
Data size type.
typedef sl_bt_gap_phy_coding_t
PHY type.
typedef sl_bt_scanner_scan_phy_t
typedef sl_bt_gatt_client_config_flag_t
Notification/indication type.
typedef uint32_t
Throughput type.
typedef uint32_t
Data counter type type.
typedef uint32_t
Time type type.
typedef struct allowlist_s
Throughput test allowlist structure.
Macros#
#define
THROUGHPUT_DEFAULT_PDU_SIZE 27u
The default PDU size if 27 bytes according to the Core Specification.
#define
CLI_RESPONSE (...)
#define
CLI_OK "OK" APP_LOG_NEW_LINE
#define
CLI_ERROR "ERROR" APP_LOG_NEW_LINE
Enumeration Documentation#
action_t#
action_t
Discovering services/characteristics and subscribing raises procedure_complete events Actions are used to indicate which procedure was completed.
| Enumerator | |
|---|---|
| act_none | |
| act_discover_service | |
| act_discover_characteristics | |
| act_enable_transmission_notification | |
| act_enable_notification | |
| act_enable_indication | |
| act_subscribe_result | |
throughput_role_t#
throughput_role_t
Role enum type.
| Enumerator | |
|---|---|
| THROUGHPUT_ROLE_PERIPHERAL | |
| THROUGHPUT_ROLE_CENTRAL | |
throughput_state_t#
throughput_state_t
State enum type.
| Enumerator | |
|---|---|
| THROUGHPUT_STATE_UNINITALIZED | |
| THROUGHPUT_STATE_DISCONNECTED | |
| THROUGHPUT_STATE_CONNECTED | |
| THROUGHPUT_STATE_SUBSCRIBED | |
| THROUGHPUT_STATE_TEST | |
| THROUGHPUT_STATE_TEST_FINISH | |
| THROUGHPUT_STATE_UNINITALIZING | |
throughput_mode_t#
throughput_mode_t
Mode enum type.
| Enumerator | |
|---|---|
| THROUGHPUT_MODE_CONTINUOUS | |
| THROUGHPUT_MODE_FIXED_TIME | |
| THROUGHPUT_MODE_FIXED_LENGTH | |
throughput_discovery_state_t#
throughput_discovery_state_t
Discovery state.
| Enumerator | |
|---|---|
| THROUGHPUT_DISCOVERY_STATE_IDLE | |
| THROUGHPUT_DISCOVERY_STATE_CONN | |
| THROUGHPUT_DISCOVERY_STATE_SCAN | |
| THROUGHPUT_DISCOVERY_STATE_SERVICE | |
| THROUGHPUT_DISCOVERY_STATE_CHARACTERISTICS | |
| THROUGHPUT_DISCOVERY_STATE_FINISHED | |
Typedef Documentation#
throughput_notification_t#
typedef sl_bt_gatt_client_config_flag_t throughput_notification_t
Notification/indication type.
throughput_allowlist_t#
typedef struct allowlist_s throughput_allowlist_t
Throughput test allowlist structure.