BLE_API
v2.1.3
|
Typedefs | |
typedef uint8_t | BleDtmStatus |
Return codes from bledtm_cmd(). | |
DTM Definitions.
#define BLEDTM_ERROR_ILLEGAL_CHANNEL 0x01 |
Physical channel number must be in the range 0..39.
#define BLEDTM_ERROR_ILLEGAL_CONFIGURATION 0x04 |
Parameter out of range (legal range is function dependent).
#define BLEDTM_ERROR_ILLEGAL_LENGTH 0x03 |
Payload size must be in the range 0..37.
#define BLEDTM_ERROR_INVALID_STATE 0x02 |
Sequencing error: Command is not valid now.
#define BLEDTM_ERROR_UNINITIALIZED 0x05 |
DTM module has not been initialized by the application.
#define BLEDTM_SUCCESS 0x00 |
Indicate that the DTM function completed with success.
#define DTM_PKT_0X0F 0x01 |
Bit pattern 11110000 (LSB is the leftmost bit).
#define DTM_PKT_0X55 0x02 |
Bit pattern 10101010 (LSB is the leftmost bit).
#define DTM_PKT_0XFF 0x03 |
Bit pattern 11111111 (Used only for coded PHY).
#define DTM_PKT_PRBS9 0x00 |
BLE DTM Packet Type Definition.
Bit pattern PRBS9.
#define DTM_VENDORSPECIFIC_GO_DEEP_SLEEP_MODE 21 |
Phy enter deep sleep mode.
#define DTM_VENDORSPECIFIC_GO_SLEEP_MODE 20 |
Phy enter sleep mode.
#define DTM_VENDORSPECIFIC_GO_TXRF_CONTINUOUS_MODE 22 |
TX output single tone mode.
#define DTM_VENDORSPECIFIC_GO_TXRF_DTM_MODE 23 |
TX output DTM normal mode.
#define DTM_VENDORSPECIFIC_RX_GET_RSSI 6 |
RX need print RSSI value.
#define DTM_VENDORSPECIFIC_TX_PACKAGE_NUMBER_BY_USER 4 |
TX package number by user.
#define DTM_VENDORSPECIFIC_TX_PACKAGE_NUMBER_UNLIMITED 3 |
TX package number unlimited.
#define DTM_VENDORSPECIFIC_TX_POWER_SELECT 5 |
TX power select 0,4,8 and 10dBm.
#define DTM_VENDORSPECIFIC_TX_POWER_SELECT_MORE_OPTION 7 |
TX power select 0.5dB Step.
#define DTM_VENDORSPECIFIC_TX_RANDOM_CH_DISABLE 1 |
BLE DTMVendor Specific Command Definition.
TX Random Channel disable.
#define DTM_VENDORSPECIFIC_TX_RANDOM_CH_ENABLE 2 |
TX Random CH enable.
#define ENABLE_LAB_TEST_TOOL_SUPPORTS ENABLE_DEF |
BLE DTM Command for Lab Test Tool.
#define LE_PACKET_REPORTING_EVENT 0x8000 |
BLE DTM Packet Reporting Event Definition.
DTM Packet reporting event, returned by the device to the tester.
#define LE_PHY_1M 1 |
BLE DTM "Test Setup" Command Parameter - PHY Definition.
DTM command parameter: Set PHY for future packets to use 1MBit PHY.
#define LE_PHY_2M 2 |
DTM command parameter: Set PHY for future packets to use 2MBit PHY.
#define LE_PHY_LE_CODED_S2 4 |
DTM command parameter: Set PHY for future packets to use coded PHY with S=2
#define LE_PHY_LE_CODED_S8 3 |
DTM command parameter: Set PHY for future packets to use coded PHY with S=8.
#define LE_RECEIVER_TEST 1 |
DTM command: Start receive test.
#define LE_TEST_END 3 |
DTM command: End test and send packet report.
#define LE_TEST_SETUP 0 |
BLE DTM Command Definition.
DTM command: Set PHY or modulation, configure upper two bits of length, request matrix of supported features or request max values of parameters.
#define LE_TEST_SETUP_READ_MAX 5 |
DTM command parameter: Read the max supported time and length for packets.
#define LE_TEST_SETUP_READ_SUPPORTED 4 |
DTM command parameter: Read the supported test case features.
#define LE_TEST_SETUP_RESET 0 |
BLE DTM "Test Setup" Command Parameter Definition.
DTM command parameter: Stop TX/RX, reset the packet length upper bits and set the PHY to 1Mbit.
#define LE_TEST_SETUP_SELECT_MODULATION 3 |
DTM command parameter: Select standard or stable modulation index. Stable modulation index is not supported.
#define LE_TEST_SETUP_SET_PHY 2 |
DTM command parameter: Select the PHY to be used for packets.
#define LE_TEST_SETUP_SET_UPPER 1 |
DTM command parameter: Set the upper two bits of the length field.
#define LE_TEST_STATUS_EVENT_ERROR 0x0001 |
DTM event status error.
#define LE_TEST_STATUS_EVENT_SUCCESS 0x0000 |
BLE DTM Status Event Definition.
DTM event status success.
#define LE_TRANSMITTER_TEST 2 |
DTM command: Start transmission test.