Skip to content

Commit

Permalink
esb: Add support for new 4Mbit mode configuration
Browse files Browse the repository at this point in the history
Adds support for `RADIO_MODE_MODE_Nrf_4Mbit_0BT6`

Ref: NCSDK-29045

Signed-off-by: Marcin Jelinski <[email protected]>
  • Loading branch information
maje-emb authored and rlubos committed Oct 16, 2024
1 parent d52493d commit 3ef4c4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions include/esb.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ enum esb_bitrate {
/** 4 Mb radio mode. */
ESB_BITRATE_4MBPS = NRF_RADIO_MODE_NRF_4MBIT_H_0_5,
#endif /* defined(RADIO_MODE_MODE_Nrf_4Mbit0_5) */

#if defined(RADIO_MODE_MODE_Nrf_4Mbit_0BT6)
/** 4 Mb radio mode. */
ESB_BITRATE_4MBPS = RADIO_MODE_MODE_Nrf_4Mbit_0BT6,
#endif /* defined(RADIO_MODE_MODE_Nrf_4Mbit_0BT6) */
};

/** @brief Enhanced ShockBurst CRC modes. */
Expand Down
4 changes: 2 additions & 2 deletions subsys/esb/esb.c
Original file line number Diff line number Diff line change
Expand Up @@ -789,11 +789,11 @@ static bool update_radio_bitrate(void)

switch (esb_cfg.bitrate) {

#if defined(RADIO_MODE_MODE_Nrf_4Mbit0_5)
#if defined(RADIO_MODE_MODE_Nrf_4Mbit0_5) || defined(RADIO_MODE_MODE_Nrf_4Mbit_0BT6)
case ESB_BITRATE_4MBPS:
wait_for_ack_timeout_us = RX_ACK_TIMEOUT_US_4MBPS;
break;
#endif /* defined(RADIO_MODE_MODE_Nrf_4Mbit0_5) */
#endif /* defined(RADIO_MODE_MODE_Nrf_4Mbit0_5) || define(RADIO_MODE_MODE_Nrf_4Mbit_0BT6) */

case ESB_BITRATE_2MBPS:

Expand Down

0 comments on commit 3ef4c4d

Please sign in to comment.