drivers: ieee802154: rf2xx: Add tx mode CCA
Configure transceiver to create a 0 period backoff and perform only one time the CCA without transmission retires for failures. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
195800145e
commit
2f3644ee0c
1 changed files with 5 additions and 0 deletions
|
@ -550,6 +550,11 @@ static int rf2xx_tx(const struct device *dev,
|
|||
rf2xx_iface_reg_write(dev, RF2XX_XAH_CTRL_0_REG, 0x38);
|
||||
break;
|
||||
case IEEE802154_TX_MODE_CCA:
|
||||
/* backoff period = 0 */
|
||||
rf2xx_iface_reg_write(dev, RF2XX_CSMA_BE_REG, 0x00);
|
||||
/* no frame retries & no csma/ca retries */
|
||||
rf2xx_iface_reg_write(dev, RF2XX_XAH_CTRL_0_REG, 0x00);
|
||||
break;
|
||||
case IEEE802154_TX_MODE_TXTIME:
|
||||
case IEEE802154_TX_MODE_TXTIME_CCA:
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue