Coexistence#
Coexistence.
Coexistence BGAPI class. Coexistence interface is enabled and initialized with sl_bt_init_coex_hal function.
Enumerations#
Coexistence configuration options.
Functions#
Macros#
Enumeration Documentation#
sl_bt_coex_option_t#
sl_bt_coex_option_t
Coexistence configuration options.
Enumerator | |
---|---|
sl_bt_coex_option_enable | (0x100) Enable coexistence feature |
sl_bt_coex_option_tx_abort | (0x400) Abort transmission if grant is denied |
sl_bt_coex_option_high_priority | (0x800) Enable priority signal |
12004
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
Function Documentation#
sl_bt_coex_set_options#
sl_status_t sl_bt_coex_set_options (uint32_t mask, uint32_t options)
[in] | mask | Bitmask of following coexistence options to change
|
[in] | options | Bitmask of following coexistence option values to set
|
Configure coexistence options at runtime.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12035
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_coex_set_parameters#
sl_status_t sl_bt_coex_set_parameters (uint8_t priority, uint8_t request, uint8_t pwm_period, uint8_t pwm_dutycycle)
[in] | priority | Coexistence priority threshold. Coexistence priority is toggled if priority is below this value. |
[in] | request | Coexistence request threshold. Coexistence request is toggled if priority is below this value. |
[in] | pwm_period | PWM functionality period length in 1 ms units |
[in] | pwm_dutycycle | PWM functionality duty cycle in percentage |
Configure coexistence parameters.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12051
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_coex_set_directional_priority_pulse#
sl_status_t sl_bt_coex_set_directional_priority_pulse (uint8_t pulse)
[in] | pulse | Directional priority pulse width in us |
Set Directional Priority Pulse Width.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12065
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_coex_get_parameters#
sl_status_t sl_bt_coex_get_parameters (uint8_t * priority, uint8_t * request, uint8_t * pwm_period, uint8_t * pwm_dutycycle)
[out] | priority | Coexistence priority threshold. Coexistence priority is toggled if priority is below this value. |
[out] | request | Coexistence request threshold. Coexistence request is toggled if priority is below this value. |
[out] | pwm_period | PWM functionality period length in 1 ms units |
[out] | pwm_dutycycle | PWM functionality duty cycle in percentage |
Get the coexistence parameters.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12081
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_coex_get_counters#
sl_status_t sl_bt_coex_get_counters (uint8_t reset, size_t max_counters_size, size_t * counters_len, uint8_t * counters)
[in] | reset | Reset counters if parameter value is not zero. |
[in] | max_counters_size | Size of output buffer passed in |
[out] | counters_len | On return, set to the length of output data written to |
[out] | counters | Coexistence statistic counters |
Read coexistence statistic counters from the device. Response contains the list of uint32 type counter values. Counters in the list are in following order: low priority requested, high priority requested, low priority denied, high priority denied, low-priority TX aborted, and high-priority TX aborted. Passing a non-zero value also resets counters.
Returns
SL_STATUS_OK if successful. Error code otherwise.
12103
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
Macro Definition Documentation#
sl_bt_cmd_coex_set_options_id#
#define sl_bt_cmd_coex_set_options_idValue:
0x00200020
11990
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_cmd_coex_set_parameters_id#
#define sl_bt_cmd_coex_set_parameters_idValue:
0x02200020
11991
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_cmd_coex_set_directional_priority_pulse_id#
#define sl_bt_cmd_coex_set_directional_priority_pulse_idValue:
0x03200020
11992
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_cmd_coex_get_parameters_id#
#define sl_bt_cmd_coex_get_parameters_idValue:
0x04200020
11993
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_cmd_coex_get_counters_id#
#define sl_bt_cmd_coex_get_counters_idValue:
0x01200020
11994
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_rsp_coex_set_options_id#
#define sl_bt_rsp_coex_set_options_idValue:
0x00200020
11995
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_rsp_coex_set_parameters_id#
#define sl_bt_rsp_coex_set_parameters_idValue:
0x02200020
11996
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_rsp_coex_set_directional_priority_pulse_id#
#define sl_bt_rsp_coex_set_directional_priority_pulse_idValue:
0x03200020
11997
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_rsp_coex_get_parameters_id#
#define sl_bt_rsp_coex_get_parameters_idValue:
0x04200020
11998
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h
sl_bt_rsp_coex_get_counters_id#
#define sl_bt_rsp_coex_get_counters_idValue:
0x01200020
11999
of file /mnt/raid/workspaces/ws.cynwT2I6w/overlay/gsdk/protocol/bluetooth/build/native/ble_host/ble_bgapi/inc/sl_bt_api.h