[riot-notifications] [RIOT-OS/RIOT] drivers/at86rf2xx: add support for configuring PHY modes (#12185)

benpicco notifications at github.com
Mon Sep 9 19:09:16 CEST 2019


### Contribution description

This implements getting & setting O-QPSK options with #12171
This allows for setting the rate mode (values 0-4, for 250, 500, 1000 & 2000 kbit/s operation) as well as chip rate (1000 kchip/s and 400 kchip/s for O-QPSK and 600 kchip/s and 300 kchip/s for BPSK).

The proprietary rate mode 2 on at86rf233 is compatible with the legacy high data rate mode on at86rf215.

### Testing procedure
Or on `samr30-xpro` you should now be able to to the following:
```
ifconfig 7 set rate_mode 2
ifconfig 7 set chip_rate 400
```

You should get
```
 Iface  7  HWaddr: 34:82  Channel: 0  Page: 2  NID: 0x23 PHY: O-QPSK 
            chip rate: 600 rate mode: 2 (legacy) 
           Long HWaddr: 79:7A:34:2F:9D:73:B4:82
```

On `samr21-xpro`, setting the chip_rate  should fail.

### Issues/PRs references
depends on #12171
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * drivers/at86rf2xx: add basic support for getting PHY mode
  * drivers/at86rf2xx: add support for configuring O-QPSK chip & data rate

-- File Changes --

    M drivers/Makefile.dep (1)
    M drivers/at86rf2xx/at86rf2xx_getset.c (89)
    M drivers/at86rf2xx/at86rf2xx_netdev.c (33)
    M drivers/include/at86rf2xx.h (49)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/12185.patch
https://github.com/RIOT-OS/RIOT/pull/12185.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/12185
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190909/4dea0713/attachment-0001.htm>


More information about the notifications mailing list