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 
42 typedef enum {
65 
90 
95 
110 
227 
237 
248 
257 
271 
283 
292 
303 
312 
321 
331 
340 
347 
352 
369 
377 
385 
390 
397 
414 
424 
434 
443 
448 
453 
462 
467 
472 
479 
486 
493 
498 
503 
508 
513 
518 
525 
534 
541 
548 
556 
557  /* add more options if needed */
558 
565 } netopt_t;
566 
570 typedef enum {
574 
579 typedef enum {
596  /* add other states if needed */
598 
602 typedef enum {
608 
616 const char *netopt2str(netopt_t opt);
617 
618 #ifdef __cplusplus
619 }
620 #endif
621 
622 #endif /* NET_NETOPT_H */
623 
(uint16_t) device type
Definition: netopt.h:346
continuous rx mode
Definition: netopt.h:604
(uint32_t) reception timeout of a frame
Definition: netopt.h:485
(netopt_enable_t) when enabled, bypass protocol processing of incoming frames
Definition: netopt.h:218
(uint8_t) CCA mode for the radio transceiver
Definition: netopt.h:376
(uint16_t) maximum packet size a network module can handle
Definition: netopt.h:173
(byte array) set encryption key
Definition: netopt.h:396
(uint8_t) retry amount from missing ACKs of the last transmission
Definition: netopt.h:533
(l2filter_t) add an address to a link layer filter list
Definition: netopt.h:423
(netopt_enable_t) trigger interrupt at transmission start
Definition: netopt.h:247
(netopt_enable_t) trigger interrupt at reception start
Definition: netopt.h:226
(int16_t) transmit power for radio devices in dBm
Definition: netopt.h:169
(int8_t) Energy level during the last performed CCA or RX frame
Definition: netopt.h:442
(int8_t) CCA threshold for the radio transceiver
Definition: netopt.h:368
(netopt_state_t) state of network device
Definition: netopt.h:214
(uint16_t) network ID
Definition: netopt.h:89
(netopt_enable_t) fixed header mode
Definition: netopt.h:512
(uint16_t) address length to use for the link layer source address
Definition: netopt.h:83
(netopt_enable_t) channel hopping
Definition: netopt.h:466
powered off
Definition: netopt.h:580
(netopt_enable_t) block transceiver sleep
Definition: netopt.h:330
(uint8_t) maximum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:311
(netopt_enable_t) CSMA/CA support
Definition: netopt.h:291
(netopt_enable_t) frame preloading
Definition: netopt.h:180
PRBS9 continuous tx mode.
Definition: netopt.h:606
(uint32_t) channel center frequency
Definition: netopt.h:461
(netopt_enable_t) frame integrity check (e.g CRC)
Definition: netopt.h:452
(netopt_enable_t) frame pending bit of ACKs
Definition: netopt.h:195
(uint8_t) maximum number of CSMA retries
Definition: netopt.h:302
(netopt_rf_testmode_t) Test mode for the radio, e.g.
Definition: netopt.h:413
(netopt_enable_t) enable hardware checksumming
Definition: netopt.h:547
(l2filter_t) remove an address from a link layer filter list
Definition: netopt.h:433
(netdev_ble_ctx_t) set BLE radio context (channel, CRC, AA)
Definition: netopt.h:540
netopt_t
Global list of configuration options available throughout the network stack, e.g. ...
Definition: netopt.h:42
standby mode.
Definition: netopt.h:594
(netopt_enable_t) Phy link status.
Definition: netopt.h:282
(netopt_enable_t) automatic link layer ACKs
Definition: netopt.h:188
enable a given option
Definition: netopt.h:572
(byte array, see below) long link layer address in network byte order
Definition: netopt.h:75
(uint16_t) channel number
Definition: netopt.h:46
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:579
(byte array, see below) link layer address in network byte order
Definition: netopt.h:64
(uint16_t) preamble length
Definition: netopt.h:447
(uint8_t) minimum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:320
netopt_rf_testmode_t
Option parameter to be used with NETOPT_RF_TESTMODE.
Definition: netopt.h:602
(netopt_enable_t) trigger interrupt after frame reception
Definition: netopt.h:236
(ipv6_addr_t) Removes an IPv6 address from an interface
Definition: netopt.h:129
(netopt_enable_t) read-only check for a wired interface.
Definition: netopt.h:339
netopt_enable_t
Binary parameter for enabling and disabling options.
Definition: netopt.h:570
(ipv6_addr_t[]) get IPv6 addresses of an interface as array of ipv6_addr_t or add an IPv6 address as ...
Definition: netopt.h:125
idle mode, radio off
Definition: netopt.h:603
(uint16_t) get the default address length a network device expects
Definition: netopt.h:79
(ipv6_addr_t) Leave an IPv6 multicast group on an interface
Definition: netopt.h:157
sleep mode
Definition: netopt.h:581
(netopt_enable_t) perform channel clear assessment before transmitting
Definition: netopt.h:270
(uint8_t) channel hopping period
Definition: netopt.h:471
(netopt_enable_t) IPv6 forwarding state
Definition: netopt.h:161
maximum number of options defined here.
Definition: netopt.h:564
transmit mode, set: triggers transmission of a preloaded packet (see NETOPT_PRELOADING*).
Definition: netopt.h:586
(netopt_enable_t) check whether the network medium is clear
Definition: netopt.h:53
(uint32_t) transmission timeout of a frame
Definition: netopt.h:492
(netopt_enable_t) header compression
Definition: netopt.h:524
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:582
(netopt_enable_t) link layer encryption.
Definition: netopt.h:389
(netopt_enable_t) sending of IPv6 router advertisements
Definition: netopt.h:165
(uint8_t) channel page as defined by IEEE 802.15.4
Definition: netopt.h:351
(netstats_t*) get statistics about sent and received packets and data of the device or protocol ...
Definition: netopt.h:384
triggers a hardware reset.
Definition: netopt.h:592
(netopt_enable_t) trigger interrupt after frame transmission
Definition: netopt.h:256
carrier wave continuous tx mode
Definition: netopt.h:605
(netopt_enable_t) promiscuous mode
Definition: netopt.h:184
(uint8_t) hop limit
Definition: netopt.h:94
(netopt_enable_t) single frame reception
Definition: netopt.h:478
(uint8_t) maximum number of retransmissions
Definition: netopt.h:206
disable a given option
Definition: netopt.h:571
(array of uint8_t) get the flags to the addresses returned by NETOPT_IPV6_ADDR as array ...
Definition: netopt.h:138
(netopt_enable_t) IQ inverted
Definition: netopt.h:517
(gnrc_nettype_t) the protocol for the layer
Definition: netopt.h:210
(netopt_enable_t) acknowledgement request on outgoing frames
Definition: netopt.h:202
(uint8_t) radio spreading factor
Definition: netopt.h:502
(ipv6_addr_t) get IPv6 multicast groups of an interface as array of ipv6_addr_t or join an IPv6 multi...
Definition: netopt.h:153
(uint8_t) radio coding rate
Definition: netopt.h:507
(netopt_enable_t) enable busy mode
Definition: netopt.h:555
receive mode, the device currently receives a packet
Definition: netopt.h:584
(uint8_t) radio modulation bandwidth
Definition: netopt.h:497
(eui64_t) get the IPv6 interface identifier of a network interface
Definition: netopt.h:109