[riot-notifications] [RIOT-OS/RIOT] net/ieee802154/submac: calculate aUnitbackoffPeriod at runtime (#16475)

Jean Pierre Dudey notifications at github.com
Sat May 15 11:59:23 CEST 2021


### Contribution description

Now aUnitBackoffPeriod is calculated at runtime from the current symbol duration and the value of the _aTurnaroundTime_ and _aCcaTime_ constants. This allows to add other PHYs that don't have fixed values for this constant and depend on the PHY configuration (symbol duration mostly).

Transceivers using the submac should work as usual since nrf52 and cc2538 use the same back-off period (320 us) and the added functions yield the same results. For other transceivers such as AT86RF212B (when ported to the HAL) may get a back-off period of either 320 us or 800 us depending on the band used.

### Testing procedure

- `make -C tests/ieee802154_submac BOARD=<board> term`

And send the `constants` command.

### Issues/PRs references

N/A
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/16475

-- Commit Summary --

  * net/ieee802154: include timex.h
  * net/ieee802154/submac: calculate aUnitbackoffPeriod
  * tests/ieee802154_submac: add constants shell cmd

-- File Changes --

    M sys/include/net/ieee802154.h (1)
    M sys/include/net/ieee802154/submac.h (59)
    M sys/net/link_layer/ieee802154/submac.c (33)
    M tests/ieee802154_submac/main.c (20)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/16475.patch
https://github.com/RIOT-OS/RIOT/pull/16475.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16475
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210515/5ad08bf9/attachment-0001.htm>


More information about the notifications mailing list