1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

59 Commits

Author SHA1 Message Date
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
123b275b23
netdev: Add common ieee802154 reset function
Resets flags, sequence number and protocol.
2018-07-10 14:27:52 +02:00
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
8a63b88623
netdev_layer: initial import of layered netdev API 2018-03-28 11:19:09 +02:00
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
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
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
0ccc264538 drivers: initial implementation of sx127x radio (LoRa mode only) 2017-06-30 19:00:40 +02:00
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
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
Martine Lenders
9f29e56020 netdev2_ieee802154: remove NETDEV2_IEEE802154_PAN_COMP flag 2016-09-30 13:09:26 +02:00
Martine Lenders
cf11a0dab7 Merge pull request #5485 from jfischer-phytec-iot/pr@add-opt-netdev
add testmode and cca mode option to netdev
2016-08-05 15:51:56 +02:00
Martine Lenders
e710164f09 netdev2: function parameter type changes
`len` and `count` are both values that should never go `< 0`, so instead of
having to test this (in theory) every time the function is called (regardless
of by assert or if its unnecessary code), I propose to change it to `size_t`.

As a bonus I made the type of recv's buf parameter generic - no reason for it to
be a char and it might lead to unnecessary static casting requirements
2016-08-03 09:51:18 +02:00
Johann Fischer
14f0d1ce89 netopt.h: add new options to set the CCA and test modes
This patch adds two new options to netopt. NETOPT_CCA_MODE to set
the CCA mode corresponding to the respective PHY standard and
NETOPT_RF_TESTMODE to set the test mode for the radio.
2016-07-27 00:15:27 +02:00
Andreas "Paul" Pauli
87cb266a1b Merge pull request #5437 from miri64/doc/enh/netdev-rx-fig
doc: add operational flow figure for netdev
2016-06-16 19:33:37 +02:00
Martine Lenders
af2e169db1 netdev2: doc: update doc text for operational flow figure 2016-06-15 23:26:23 +02:00
3ad195963d drivers: netdev2: rename isr_arg 2016-06-02 11:11:40 +02:00
82243b86fc drivers: netdev2: remove extra event_callback argument 2016-06-02 11:11:40 +02:00
Martine Lenders
1c45c503b8 netdev2: fix event_callback references 2016-04-09 13:22:19 +02:00
Yonezawa-T2
c4bc42419b netdev2_tap: continue reading even if no spaces left in pktbuf
On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is
called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv`
that results in deadlock.

With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero
length parameter, that indicates the driver to drop frame and resume working.
2016-03-31 16:59:12 +09:00