CTE Receiver#
CTE Receiver.
Modules |
---|
IQ sample report from DTM CTE packets. |
IQ sample report from connection CTE packets. |
IQ sample report from connectionless CTE packets. |
IQ samples report from Silicon Labs CTE packets. |
Functions | |
---|---|
sl_status_t | sl_bt_cte_receiver_set_dtm_parameters (uint8_t cte_length, uint8_t cte_type, uint8_t slot_durations, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t | |
sl_status_t | sl_bt_cte_receiver_set_sync_cte_type (uint8_t sync_cte_type) |
sl_status_t | sl_bt_cte_receiver_enable_connection_cte (uint8_t connection, uint16_t interval, uint8_t cte_length, uint8_t cte_type, uint8_t slot_durations, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t | sl_bt_cte_receiver_disable_connection_cte (uint8_t connection) |
sl_status_t | sl_bt_cte_receiver_enable_connectionless_cte (uint16_t sync, uint8_t slot_durations, uint8_t cte_count, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t | sl_bt_cte_receiver_disable_connectionless_cte (uint16_t sync) |
sl_status_t | sl_bt_cte_receiver_enable_silabs_cte (uint8_t slot_durations, uint8_t cte_count, size_t switching_pattern_len, const uint8_t *switching_pattern) |
sl_status_t |
Detailed Description#
CTE Receiver.
Commands and events in this class manage Constant Tone Extension (CTE) receiving.
CTE feature is only supported by specific devices. Commands from this class will return SL_STATUS_NOT_SUPPORTED on devices that do not support CTE.
Function Documentation#
sl_bt_cte_receiver_set_dtm_parameters()#
sl_status_t sl_bt_cte_receiver_set_dtm_parameters | ( | uint8_t |
|
uint8_t |
| ||
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Set CTE-related parameters of LE receiver test.
Parameters
[in] |
| Expected CTE length in 8 us units
Default: 0 (no CTE) |
[in] |
| Expected CTE type \n 0: Expect AoA CTE \n 1: Expect AoD CTE with 1 us slots \n 2: Expect AoD CTE with 2 us slots Default: 0 |
[in] |
| Slot durations
Default: 1 |
[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. This can be an empty array if CTE is unused. |
Returns
SL_STATUS_OK if successful. Error code otherwise.
Events
sl_bt_evt_cte_receiver_dtm_iq_report - Triggered when IQ samples have been received.
sl_bt_cte_receiver_clear_dtm_parameters()#
sl_status_t sl_bt_cte_receiver_clear_dtm_parameters ( )
Clear CTE-related parameters that were previously set for LE receiver test. Default values will be restored for these parameters.
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_receiver_set_sync_cte_type()#
sl_status_t sl_bt_cte_receiver_set_sync_cte_type ( uint8_t
sync_cte_type
)
Set the sync CTE type to limit what types of periodic advertisers to sync to. The set parameter takes effect immediately for all advertisers that have not already established synchronization.
Parameters
[in] |
| Sync CTE type flags. This value can be a bitmask of multiple flags. Flags:
Default: 0 |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_receiver_enable_connection_cte()#
sl_status_t sl_bt_cte_receiver_enable_connection_cte | ( | uint8_t |
|
uint16_t |
| ||
uint8_t |
| ||
uint8_t |
| ||
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Start IQ samplings on a connection. A CTE requests will be initiated periodically on the given connection and IQ sampling will be made on the received CTE responses.
Parameters
[in] |
| Connection handle |
[in] |
| Measurement interval. CTE requests may be sent less often. For example, if a connetion event is missed for some reason, the CTE request will be sent in the next connection event.
|
[in] |
| Minimum CTE length requested in 8 us units.
|
[in] |
| Requested CTE type
|
[in] |
| Slot durations
|
[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.
Events
sl_bt_evt_cte_receiver_connection_iq_report - Triggered when IQ samples have been received.
sl_bt_cte_receiver_disable_connection_cte()#
sl_status_t sl_bt_cte_receiver_disable_connection_cte ( uint8_t
connection
)
Stop the IQ sampling on a connection. CTEs will not be requested on the given connection.
Parameters
[in] |
| Connection handle |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_receiver_enable_connectionless_cte()#
sl_status_t sl_bt_cte_receiver_enable_connectionless_cte | ( | uint16_t |
|
uint8_t |
| ||
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Start IQ sampling on a periodic advertising synchronization. IQ samples are taken on each CTE found in the periodic advertisements.
Parameters
[in] |
| Periodic advertising synchronization handle |
[in] |
| Slot durations
|
[in] |
| - 0: Sample and report all available CTEs* Other values: Maximum number of sampled CTEs 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.
Events
sl_bt_evt_cte_receiver_connectionless_iq_report - Triggered when IQ samples have been received.
sl_bt_cte_receiver_disable_connectionless_cte()#
sl_status_t sl_bt_cte_receiver_disable_connectionless_cte ( uint16_t
sync
)
Stop IQ sampling on a periodic advertising synchronization.
Parameters
[in] |
| Periodic advertising synchronization handle |
Returns
SL_STATUS_OK if successful. Error code otherwise.
sl_bt_cte_receiver_enable_silabs_cte()#
sl_status_t sl_bt_cte_receiver_enable_silabs_cte | ( | uint8_t |
|
uint8_t |
| ||
size_t |
| ||
const uint8_t * |
| ||
) |
Enable IQ sampling of Silicon Labs CTE found in extended advertisements.
Parameters
[in] |
| Slot durations
|
[in] |
| - 0: Sample and report all available CTEs* Other values: Maximum number of sampled CTEs in each extended 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.
Events
sl_bt_evt_cte_receiver_silabs_iq_report - Triggered when IQ samples of Silicon Labs CTE have been received.
sl_bt_cte_receiver_disable_silabs_cte()#
sl_status_t sl_bt_cte_receiver_disable_silabs_cte ( )
Disable IQ sampling of Silicon Labs CTE.
Returns
SL_STATUS_OK if successful. Error code otherwise.