netopt.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 Freie Universit├Ąt Berlin
3  * 2015 Kaspar Schleiser <kaspar@schleiser.de>
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser
6  * General Public License v2.1. See the file LICENSE in the top level
7  * directory for more details.
8  */
9 
25 #ifndef NET_NETOPT_H
26 #define NET_NETOPT_H
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
38 #define NETOPT_MAX_PACKET_SIZE NETOPT_MAX_PDU_SIZE
39 
50 typedef enum {
75 
102 
107 
126 
260 
272 
285 
295 
309 
318 
327 
338 
347 
356 
366 
375 
382 
387 
404 
412 
420 
425 
432 
449 
459 
469 
478 
483 
488 
497 
502 
507 
514 
521 
528 
533 
538 
543 
548 
553 
560 
567 
576 
583 
590 
598 
603 
608 
617 
623 
629 
634 
639 
645 
651 
656 
661 
666 
671 
678 
683 
688 
693 
698 
703 
708 
713 
718 
723 
728 
735 
740 
741  /* add more options if needed */
742 
747 
752 
757 
765 
776 
786 
808 } netopt_t;
809 
813 typedef enum {
817 
822 typedef enum {
839  /* add other states if needed */
841 
845 typedef enum {
851 
859 const char *netopt2str(netopt_t opt);
860 
861 #ifdef __cplusplus
862 }
863 #endif
864 
865 #endif /* NET_NETOPT_H */
866 
(array of byte array) get link layer multicast groups as array of byte arrays (length of each byte ar...
Definition: netopt.h:797
(uint16_t) device type
Definition: netopt.h:381
continuous rx mode
Definition: netopt.h:847
(uint32_t) reception timeout of a frame
Definition: netopt.h:520
(netopt_enable_t) when enabled, bypass protocol processing of incoming frames
Definition: netopt.h:250
(uint8_t) CCA mode for the radio transceiver
Definition: netopt.h:411
(uint8_t) LoRaWAN device class (A, B, C)
Definition: netopt.h:622
(uint8_t*) LoRaWAN application EUI (8 bytes length)
Definition: netopt.h:602
(uint8_t) LoRaWAN datarate
Definition: netopt.h:628
(byte array) set encryption key
Definition: netopt.h:431
(uint8_t) retry amount from missing ACKs of the last transmission
Definition: netopt.h:575
(l2filter_t) add an address to a link layer filter list
Definition: netopt.h:458
(uint8_t) LoRaWAN TX application port
Definition: netopt.h:644
(netopt_enable_t) Used to check if the driver generates NETDEV_EVENT_TX_STARTED events ...
Definition: netopt.h:284
(netopt_enable_t) Used to check if the driver generates NETDEV_EVENT_RX_STARTED events ...
Definition: netopt.h:259
(int16_t) transmit power for radio devices in dBm
Definition: netopt.h:185
(int8_t) Energy level during the last performed CCA or RX frame
Definition: netopt.h:477
(uint8_t) MR-FSK Modulation Order
Definition: netopt.h:707
(int8_t) CCA threshold for the radio transceiver
Definition: netopt.h:403
(netopt_state_t) state of network device
Definition: netopt.h:246
(uint16_t) network ID
Definition: netopt.h:101
(netopt_enable_t) fixed header mode
Definition: netopt.h:547
(uint16_t) address length to use for the link layer source address
Definition: netopt.h:94
(netopt_enable_t) channel hopping
Definition: netopt.h:501
powered off
Definition: netopt.h:823
(netopt_enable_t) block transceiver sleep
Definition: netopt.h:365
(uint8_t) maximum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:346
(netopt_enable_t) CSMA/CA support
Definition: netopt.h:326
(uint8_t*) LoRaWAN application key (16 bytes length)
Definition: netopt.h:607
(netopt_enable_t) frame preloading
Definition: netopt.h:212
(uint8_t) MR-OFDM PHY Modulation and Coding Scheme (Values: 0-6)
Definition: netopt.h:697
PRBS9 continuous tx mode.
Definition: netopt.h:849
(uint32_t) channel center frequency
Definition: netopt.h:496
(netopt_enable_t) frame integrity check (e.g CRC)
Definition: netopt.h:487
(netopt_enable_t) frame pending bit of ACKs
Definition: netopt.h:227
(uint8_t) maximum number of CSMA retries
Definition: netopt.h:337
(netopt_rf_testmode_t) Test mode for the radio, e.g.
Definition: netopt.h:448
(uint8_t) Get the demodulation margin of the last Link Check request.
Definition: netopt.h:751
(netopt_enable_t) enable hardware checksumming
Definition: netopt.h:589
(uint32_t) LoRaWAN frequency used for second RX window
Definition: netopt.h:655
(l2filter_t) remove an address from a link layer filter list
Definition: netopt.h:468
(netdev_ble_ctx_t) set BLE radio context (channel, CRC, AA)
Definition: netopt.h:582
netopt_t
Global list of configuration options available throughout the network stack, e.g. ...
Definition: netopt.h:50
standby mode.
Definition: netopt.h:837
(int8_t) Received Signal Strength Indicator (RSSI)
Definition: netopt.h:775
(uint8_t*) phy layer syncword
Definition: netopt.h:727
(netopt_enable_t) Enable or disable OTAA activation (LoRaWAN)
Definition: netopt.h:746
(netopt_enable_t) automatic link layer ACKs
Definition: netopt.h:220
enable a given option
Definition: netopt.h:815
(netopt_enable_t) network interface link status.
Definition: netopt.h:317
(byte array, see below) long link layer address in network byte order
Definition: netopt.h:86
(netopt_enable_t) Perform a Link Check request (LoRaWAN)
Definition: netopt.h:764
(uint16_t) maximum protocol data unit
Definition: netopt.h:189
(netopt_enable_t) LoRaWAN adaptive datarate
Definition: netopt.h:633
(uint16_t) channel number
Definition: netopt.h:54
netopt_state_t
Option parameter to be used with NETOPT_STATE to set or get the state of a network device or protocol...
Definition: netopt.h:822
(uint8_t) MR-O-QPSK Chip Rate (kchip/s)
Definition: netopt.h:682
(uint8_t) Get or set the number of PHY symbols before assuming there&#39;s no data
Definition: netopt.h:739
(byte array, see below) link layer address in network byte order
Definition: netopt.h:74
(uint16_t) preamble length
Definition: netopt.h:482
(netopt_enable_t) LoRaWAN public network
Definition: netopt.h:638
(uint8_t) Get the number of gateways of the last Link Check request.
Definition: netopt.h:756
(uint8_t) minimum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:355
netopt_rf_testmode_t
Option parameter to be used with NETOPT_RF_TESTMODE.
Definition: netopt.h:845
(uint32_t) LoRaWAN maximum system overall timing error (ms)
Definition: netopt.h:660
(netopt_enable_t) Used to check if the driver generates NETDEV_EVENT_RX_COMPLETE events ...
Definition: netopt.h:271
(ipv6_addr_t) Removes an IPv6 address from an interface
Definition: netopt.h:145
(netopt_enable_t) read-only check for a wired interface.
Definition: netopt.h:374
netopt_enable_t
Binary parameter for enabling and disabling options.
Definition: netopt.h:813
(uint8_t) MR-FSK PHY Modulation Index (x 64)
Definition: netopt.h:702
(ipv6_addr_t[]) get IPv6 addresses of an interface as array of ipv6_addr_t or add an IPv6 address as ...
Definition: netopt.h:141
idle mode, radio off
Definition: netopt.h:846
(uint16_t) get the default address length a network device expects
Definition: netopt.h:90
(ipv6_addr_t) Leave an IPv6 multicast group on an interface
Definition: netopt.h:173
sleep mode
Definition: netopt.h:824
(netopt_enable_t) perform channel clear assessment before transmitting
Definition: netopt.h:308
(uint8_t) channel hopping period
Definition: netopt.h:506
(netopt_enable_t) IPv6 forwarding state
Definition: netopt.h:177
(uint8_t) legacy O-QPSK proprietary mode Allows to select higher data rates than standard 250 kbit/s ...
Definition: netopt.h:677
maximum number of options defined here.
Definition: netopt.h:807
transmit mode, set: triggers transmission of a preloaded packet (see NETOPT_PRELOADING*).
Definition: netopt.h:829
(netopt_enable_t) check whether the network medium is clear
Definition: netopt.h:61
(uint8_t*) LoRaWAN application session key (16 bytes length)
Definition: netopt.h:616
(uint8_t) MR-FSK PHY Forward Error Correction
Definition: netopt.h:717
(uint32_t) transmission timeout of a frame
Definition: netopt.h:527
(netopt_enable_t) 6Lo support
Definition: netopt.h:559
(netopt_enable_t) header compression
Definition: netopt.h:566
(uint16_t) Set the battery monitor voltage (in mV).
Definition: netopt.h:785
(uint8_t) 802.15.4 PHY mode
Definition: netopt.h:670
const char * netopt2str(netopt_t opt)
Get a string ptr corresponding to opt, for debugging.
idle mode, the device listens to receive packets
Definition: netopt.h:825
(uint8_t) LoRaWAN maximum system overall timing error (symbols)
Definition: netopt.h:665
(netopt_enable_t) link layer encryption.
Definition: netopt.h:424
(uint32_t) Get a random value from the device
Definition: netopt.h:734
(uint8_t) PHY Channel Spacing (kHz)
Definition: netopt.h:722
(uint8_t) MR-O-QPSK Rate Mode
Definition: netopt.h:687
(uint8_t) MR-FSK PHY Symbol Rate (kHz)
Definition: netopt.h:712
(netopt_enable_t) sending of IPv6 router advertisements
Definition: netopt.h:181
(uint16_t) channel page as defined by IEEE 802.15.4
Definition: netopt.h:386
(uint8_t*) LoRaWAN network session key (16 bytes length)
Definition: netopt.h:612
(netstats_t*) get statistics about sent and received packets and data of the device or protocol ...
Definition: netopt.h:419
(uint16_t) protocol data unit size
Definition: netopt.h:205
triggers a hardware reset.
Definition: netopt.h:835
(netopt_enable_t) Used to check if the driver generates NETDEV_EVENT_TX_COMPLETE events ...
Definition: netopt.h:294
carrier wave continuous tx mode
Definition: netopt.h:848
(array of byte arrays) Leave an link layer multicast group
Definition: netopt.h:801
(netopt_enable_t) promiscuous mode
Definition: netopt.h:216
(uint8_t) hop limit
Definition: netopt.h:106
(netopt_enable_t) single frame reception
Definition: netopt.h:513
(loramac_dr_idx_t) LoRaWAN datarate for second RX window
Definition: netopt.h:650
(uint8_t) MR-OFDM PHY Option (Values: 1-4)
Definition: netopt.h:692
(uint8_t) maximum number of retransmissions
Definition: netopt.h:238
disable a given option
Definition: netopt.h:814
(array of uint8_t) get the flags to the addresses returned by NETOPT_IPV6_ADDR as array ...
Definition: netopt.h:154
(netopt_enable_t) IQ inverted
Definition: netopt.h:552
(gnrc_nettype_t) the protocol for the layer
Definition: netopt.h:242
(netopt_enable_t) acknowledgement request on outgoing frames
Definition: netopt.h:234
(uint8_t) radio spreading factor
Definition: netopt.h:537
(ipv6_addr_t) get IPv6 multicast groups of an interface as array of ipv6_addr_t or join an IPv6 multi...
Definition: netopt.h:169
(uint8_t) radio coding rate
Definition: netopt.h:542
(netopt_enable_t) enable busy mode
Definition: netopt.h:597
receive mode, the device currently receives a packet
Definition: netopt.h:827
(uint8_t) radio modulation bandwidth
Definition: netopt.h:532
(eui64_t) get the IPv6 interface identifier of a network interface
Definition: netopt.h:125