CTE Transmitter#
CTE Transmitter.
Functions | |
---|---|
sl_status_t | sl_bt_cte_transmitter_set_dtm_parameters (uint8_t cte_length, uint8_t cte_type, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t | |
sl_status_t | sl_bt_cte_transmitter_enable_connection_cte (uint8_t connection, uint8_t cte_types, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t | sl_bt_cte_transmitter_disable_connection_cte (uint8_t connection) |
sl_status_t | sl_bt_cte_transmitter_enable_connectionless_cte (uint8_t handle, uint8_t cte_length, uint8_t cte_type, uint8_t cte_count, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t | sl_bt_cte_transmitter_disable_connectionless_cte (uint8_t handle) |
sl_status_t | sl_bt_cte_transmitter_enable_silabs_cte (uint8_t handle, uint8_t cte_length, uint8_t cte_type, uint8_t cte_count, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t | sl_bt_cte_transmitter_disable_silabs_cte (uint8_t handle) |
Detailed Description#
CTE Transmitter.
Commands and events in this class manage Constant Tone Extension (CTE) transmission.
CTE feature is only supported by specific devices. Commands from this class will return bg_err_not_supported on devices that do not support CTE.
Function Documentation#
sl_bt_cte_transmitter_set_dtm_parameters()#
sl_status_t sl_bt_cte_transmitter_set_dtm_parameters | ( | uint8_t |
|
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Set the CTE-related parameters of the LE transmitter test.
Parameters
[in] |
| Length of the Constant Tone Extension in 8 us units
Default: 0 (no CTE) |
[in] |
| CTE type
Default: 0 |
[in] |
| Array length |
[in] |
| Antenna switching pattern. Antennas will be switched in this order with the antenna switch pins during CTE. If the CTE is longer than the switching pattern, the pattern starts over. Default is the empty array. |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_transmitter_clear_dtm_parameters()#
sl_status_t sl_bt_cte_transmitter_clear_dtm_parameters ()
Clear CTE-related parameters that were previously set for LE transmitter test. Default values will be restored for these parameters.
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_transmitter_enable_connection_cte()#
sl_status_t sl_bt_cte_transmitter_enable_connection_cte | ( | uint8_t |
|
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Enable different types of CTE responses on a connection. CTE response will be sent once requested by the peer device using the CTE Request procedure.
Parameters
[in] |
| Connection handle |
[in] |
| TE types. Bitmask of the following:
|
[in] |
| Array length |
[in] |
| Antenna switching pattern. Antennas will be switched in this order with the antenna switch pins during CTE. If the CTE is longer than the switching pattern, the pattern starts over. |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_transmitter_disable_connection_cte()#
sl_status_t sl_bt_cte_transmitter_disable_connection_cte ( uint8_t
connection
)
Disable CTE responses on a connection.
Parameters
[in] |
| Connection handle |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_transmitter_enable_connectionless_cte()#
sl_status_t sl_bt_cte_transmitter_enable_connectionless_cte | ( | uint8_t |
|
uint8_t |
| ||
uint8_t |
| ||
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Start connectionless CTE transmit. CTEs will be transmitted in periodic advertisement packets. As a result, a periodic advertising has to be started prior this command.
Parameters
[in] |
| Periodic advertising handle |
[in] |
| CTE length in 8 us units.
|
[in] |
| CTE type
|
[in] |
| The number of CTEs to be transmitted in each periodic advertising interval |
[in] |
| Array length |
[in] |
| Antenna switching pattern. Antennas will be switched in this order with the antenna switch pins during CTE. If the CTE is longer than the switching pattern, the pattern starts over. |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_transmitter_disable_connectionless_cte()#
sl_status_t sl_bt_cte_transmitter_disable_connectionless_cte ( uint8_t
handle
)
Stop the connectionless CTE transmit.
Parameters
[in] |
| Periodic advertising handle |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_transmitter_enable_silabs_cte()#
sl_status_t sl_bt_cte_transmitter_enable_silabs_cte | ( | uint8_t |
|
uint8_t |
| ||
uint8_t |
| ||
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Enable Silicon Labs CTE transmit. CTEs will be transmitted in extended advertisement packets. As a result, extended advertising has to be started prior this command.
Parameters
[in] |
| Advertising handle |
[in] |
| CTE length in 8 us units.
|
[in] |
| CTE type
|
[in] |
| The number of CTEs to be transmitted in each extended advertising interval. Currently only cte_count = 1 is supported. |
[in] |
| Array length |
[in] |
| Antenna switching pattern. Antennas will be switched in this order with the antenna switch pins during CTE. If the CTE is longer than the switching pattern, the pattern starts over. |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_transmitter_disable_silabs_cte()#
sl_status_t sl_bt_cte_transmitter_disable_silabs_cte ( uint8_t
handle
)
Disable Silicon Labs CTE transmit.
Parameters
[in] |
| Advertising handle |
Returns
SL_STATUS_OK if successful. Error code otherwise.