Commit Graph
69 Commits
Author SHA1 Message Date
Jose Alamos 67bc0e13af netdev: add netdev_trigger_event_isr function 2020-03-06 14:02:40 +01:00
Jose Alamos 99dbcecc3a net/gnrc_lorawan: remove netdev SAP interface 2019-12-03 14:08:35 +01:00
MichelRottleuthner bf676d4728 Merge pull request #11022 from jia200x/pr/gnrc_lorawan
gnrc_lorawan: add support for GNRC based LoRaWAN stack
2019-11-27 09:25:20 +01:00
Jose Alamos 523d1af490 netdev: add netdev types for GNRC_LORAWAN 2019-11-26 21:52:05 +01:00
Francois Berder 4a31f94cfc many typo fixes
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Marian Buschsieweke 107b50ca04 drivers/net/netdev: Use consistent code formatting 2019-11-11 13:03:50 +01:00
Jose Alamos 302fa1467f netdev_ieee802154: add txpower to descriptor 2019-06-18 13:51:31 +02:00
Jose Alamos c33d5f744b netdev_ieee802154: add channel page to descriptor 2019-06-18 13:51:31 +02:00
Martine Lenders 664763bb29 netdev: add doc group for network device types 2019-03-26 21:37:20 +01:00
Martine Lenders 51626a48d4 netdev: document valid values for iolist in send() 2019-03-15 11:34:19 +01:00
Jose Alamos 893707a590 netdev/lora: add netdev_lora_rx_info structure 2019-03-08 17:45:08 +01:00
Semjon Kerner c2a40be458 drivers/netdev_ieee802154: add mac header filter 2019-03-04 13:21:43 +01:00
Martine Lenders 2d6a557d83 netdev: introduce test device type 2019-02-26 16:46:21 +01:00
smlng b8d9610316 netstats_l2: remove obsolete struct from netdev_t 2019-02-01 11:25:27 +02:00
Marian Buschsieweke 58f496de47 netdev_driver_t::recv: Extend doc on size feature
Some drivers return on netdev_driver_t::recv() not the actual frame size, but
an upper bound estimation of it. The upper layer code is already prepared to
handle that. This brings the doc in sync with the code.
2018-12-29 13:59:58 +01:00
Marian Buschsieweke e81b6191aa netdev_driver_t::recv: Clarified small buf case
Clarified in the documentation how netdev_driver_t::recv() should behave in case
the size of the buffer in parameter buf (indicated by parameter len) is to small
to fit the received frame.
2018-12-28 20:23:19 +01:00
Marian Buschsieweke 87055d7b6d netdev_driver_t::recv: Added drop and size to doc
netdev_driver_t::recv does on of three things:
 - Receive the frame
 - Drop it
 - Get (an estimation of) the size of the frame

The brief section of the documentation was changed to reflect this. (And it
starts with the least obvious thing in the hope readers of the API stumble upon
it...)
2018-12-28 20:23:11 +01:00
Marian Buschsieweke b6069eb5f5 netdev_driver_t::recv: Fixed preconditions in doc
Removed the invalid precondition in netdev_driver_t::recv that the buffer never
NULL and the length positive. (In the "get message size" case both is wrong, in
the drop message case the first part is wrong.)
2018-12-28 20:22:57 +01:00
Martine Lenders 03b91cbcb8 esp_now: use NETDEV_TYPE_ESP_NOW as device type 2018-11-29 13:35:20 +01:00
Hauke Petersen 7af516a618 netdev: add funcs for declaring get/set as notsup
This commit adds two convenience functions that allow to declare
get() and/or set() as not supported when declaring a
netdev_driver struct.
2018-11-21 14:33:22 +01:00
Martine Lenders aba75be827 netdev: fix return value and precondition doc
While reviewing #9942 I noticed that the documentation on the netdev
driver API is unclear and in some cases outright contradicting itself:

> ```
> @return              number of bytes used from @p value
> @return              `< 0` on error, 0 on success
> ```

IMHO this is unacceptable for such a central API where communication

This fixes a few things and also clarifies preconditions:

- Specifies negative `errno`s clearly so all drivers return the same
  when required
- Re-iterates parameter preconditions and special cases within the
  parameter documentation itself (might also help towards #9805?)
- Fixes contradictions within return value documentation
- Adds missing parameter documentation on `init()`.
2018-10-03 16:09:42 +02:00
Koen Zandberg 123b275b23 netdev: Add common ieee802154 reset function
Resets flags, sequence number and protocol.
2018-07-10 14:27:52 +02:00
Alexandre Abadie a08e9919a9 drivers: fix doxygen grouping 2018-06-11 19:10:40 +02:00
Hauke Petersen 3b6c8f25de sys/net: added generic BLE defines 2018-04-06 11:18:53 +02:00
Hauke Petersen 4e715e8221 drivers/netdev: added BLE adaption for netdev 2018-04-06 11:18:53 +02:00
Koen Zandberg 8a63b88623 netdev_layer: initial import of layered netdev API 2018-03-28 11:19:09 +02:00
Kaspar Schleiser 51dabf93ad drivers: netdev: switch to iolists 2018-03-06 14:00:31 +01:00
Joakim Nohlgård 8892043cb5 netdev: Add Netdev to Doxygen page title 2018-02-28 08:23:44 +01:00
jia200x c61c44a1ae Merge pull request #8374 from Hyungsin/forupstream_radio_ackpending
driver/at86rf2xx: add an option for auto-ack with the pending bit
2018-02-06 14:15:40 +01:00
Martine Lenders 51ae9d9c87 nordic_softdevice_ble: fixes for gnrc_netif usage 2018-02-05 22:34:11 +01:00
Hyungsin f52efef0d5 netopt: Add NETOPT_ACK_PENDING 2018-01-31 11:58:48 -08:00
Martine Lenders a63bb6d47b Merge pull request #6895 from bergzand/drivers/radio-rssi-conv
drivers/radios Apply register to rssi dBm conversion to all radios
2017-11-27 23:52:15 +01:00
Koen Zandberg fa64e93313 netdev: Represent RSSI as int16_t 2017-11-27 21:49:15 +01:00
Martine Lenders b74ee8869b slip: port to be used with netdev 2017-10-10 23:14:12 +02:00
Alexandre Abadie 94c753c07a drivers: doxygen cleanup 2017-09-01 15:12:20 +02:00
Joakim Nohlgård 065bc62e0a netdev: Make set() value parameter const void * 2017-08-25 13:41:19 +02:00
Alexandre Abadie 0ccc264538 drivers: initial implementation of sx127x radio (LoRa mode only) 2017-06-30 19:00:40 +02:00
Alexandre Abadie 1a2097e97e Merge pull request #7082 from jia200x/openthread_core
pkg/openthread:  core and tests
2017-06-01 20:20:37 +02:00
José Ignacio Alamos 017280db13 pkg/openthread: add OpenThread core 2017-06-01 13:44:05 -04:00
Hauke Petersen d0f84e5460 drivers/netdev2: added more comprehensive doc 2017-06-01 18:54:54 +02:00
Cenk Gündoğan 1473adde17 netdev.h: remove indirect reference to netdev2 from doc 2017-05-31 16:54:38 +02:00
Martine Lenders d4693648ba Merge pull request #7095 from kaspar030/add_headerguard_check_script
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00
Kaspar Schleiser 0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
Hauke Petersen d488fdc1e3 sys/drivers: guard l2filter.h, netstats.h includes 2017-05-23 13:39:49 +02:00
Hauke Petersen caf97d5c2c drivers/netdev: add filter list to netdev strcut 2017-05-18 15:24:25 +02:00
Martine Lenders 29842bb5e4 netdev2: rename to netdev and remove gnrc_netdev
With some minor hand-edits I used the following chain of commands:

```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
        xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
                     -e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
                     -e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
        grep "netdev2" | while read dir; do
                new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
                git mv -f "$dir" "$new_dir"
        done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
        grep "netdev2" | while read file; do
                new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
                git mv -f "$file" "$new_file"
        done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
        xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
2017-03-15 09:31:20 +01:00
Oleg Hahm 7ee7801c10 *: remove trailing underscores from header guards 2017-01-19 18:30:53 +01:00
Hauke Petersen 36317c56f3 cpu/nrf51: ported nrmin radio driver to netdev2 2017-01-10 11:54:16 +01:00
Martine Lenders 32c19d63e3 netdev2: make doc for driver more precise
When working on #6121 I noticed that the documentation of the `netdev2`
driver part is not really precise. This fixes that.
2016-11-22 14:57:26 +01:00
Martine Lenders 15c4ceae04 netdev2_ieee802154: cleanup flag definitions 2016-09-30 13:09:27 +02:00