Bluetooth Host Stack solution
cybt_controller_sleep_config_t Struct Reference

Description

Bluetooth chip sleep mode configuration parameters, including enable status, wakeup pins assignment and their trigger polarity.

Data Fields

uint8_t sleep_mode_enabled
 Enable or disable the sleep mode of BT chip. More...
 
cyhal_gpio_t device_wakeup_pin
 The gpio definition for BT device wakeup pin. More...
 
cyhal_gpio_t host_wakeup_pin
 The gpio definition for BT host wakeup pin. More...
 
uint8_t device_wake_polarity
 The trigger level of device wakeup pin. More...
 
uint8_t host_wake_polarity
 The trigger level of host wakeup pin. More...
 

Field Documentation

◆ sleep_mode_enabled

uint8_t cybt_controller_sleep_config_t::sleep_mode_enabled

Enable or disable the sleep mode of BT chip.

Either assign the value CYBT_SLEEP_MODE_DISABLED, or CYBT_SLEEP_MODE_ENABLED

or CYCFG_BT_LP_ENABLED for ModusToolBox LPA configuration

Notice that sleep mode will be enabled only if both device and host wakeup pins are assigned.

◆ device_wakeup_pin

cyhal_gpio_t cybt_controller_sleep_config_t::device_wakeup_pin

The gpio definition for BT device wakeup pin.

It can be assigned by the value with the type cyhal_gpio_t directly. For ModusToolBox, CYCFG_BT_DEV_WAKE_GPIO can be used.

NC is used as this pin is NOT connected.

◆ host_wakeup_pin

cyhal_gpio_t cybt_controller_sleep_config_t::host_wakeup_pin

The gpio definition for BT host wakeup pin.

It can be assigned by the value with the type cyhal_gpio_t directly. For ModusToolBox, CYCFG_BT_HOST_WAKE_GPIO can be used.

NC is used as this pin is NOT connected.

◆ device_wake_polarity

uint8_t cybt_controller_sleep_config_t::device_wake_polarity

The trigger level of device wakeup pin.

Either assign the value CYBT_WAKE_ACTIVE_LOW, or
CYBT_WAKE_ACTIVE_HIGH.

Or CYCFG_BT_DEV_WAKE_POLARITY for ModusToolBox LPA configuration.

The default value will be active low.

◆ host_wake_polarity

uint8_t cybt_controller_sleep_config_t::host_wake_polarity

The trigger level of host wakeup pin.

Either assign the value CYBT_WAKE_ACTIVE_LOW, or
CYBT_WAKE_ACTIVE_HIGH,

Or CYCFG_BT_DEV_WAKE_POLARITY for ModusToolBox LPA configuration.

The default value will be active low.