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 
36 typedef enum {
60 
65 
81 
175 
185 
196 
205 
219 
228 
240 
249 
258 
268 
278 
283 
288 
305 
314 
322 
344 
354 
364 
373 
378 
383 
394 
399 
404 
411 
418 
425 
430 
435 
440 
445 
450 
463 
464  /* add more options if needed */
465 
472 } netopt_t;
473 
477 typedef enum {
481 
486 typedef enum {
503  /* add other states if needed */
505 
509 typedef enum {
515 
523 const char *netopt2str(netopt_t opt);
524 
525 #ifdef __cplusplus
526 }
527 #endif
528 
529 #endif /* NET_NETOPT_H */
530 
get a device&#39;s "type", e.g., ethernet, 802.15.4, ...
Definition: netopt.h:282
continuous rx mode
Definition: netopt.h:511
Get/Set the reception timeout of a packet.
Definition: netopt.h:417
en/disable the pre-processing of data in a network device driver as type gnrc_nettype_t ...
Definition: netopt.h:164
CCA mode for the radio transceiver.
Definition: netopt.h:313
get/set the maximum packet size a network module can handle as uint16_t in host byte order ...
Definition: netopt.h:136
set encryption key
Definition: netopt.h:327
Get retry amount from missing ACKs of the last transmission.
Definition: netopt.h:462
add an address to a link layer filter list
Definition: netopt.h:353
en/disable the interrupt right in the beginning of transmission.
Definition: netopt.h:195
en/disable the interrupt at reception start.
Definition: netopt.h:174
get/set the output power for radio devices in dBm as int16_t in host byte order
Definition: netopt.h:133
Energy level during the last performed CCA or RX frame.
Definition: netopt.h:372
get/set the CCA threshold for the radio transceiver
Definition: netopt.h:304
get/set the state of network devices as type netopt_state_t
Definition: netopt.h:162
get/set the network ID as uint16_t in host byte order
Definition: netopt.h:59
Enable/disable fixed header mode.
Definition: netopt.h:444
get/set the address length to choose for the network device&#39;s source address as uint16_t in host byte...
Definition: netopt.h:51
Enable/disable channel hopping.
Definition: netopt.h:398
powered off
Definition: netopt.h:487
en/disable blocking of radio sleep when running a duty cycling MAC layer
Definition: netopt.h:267
get/set the maximum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:248
en/disable CSMA/CA support
Definition: netopt.h:227
en/disable preloading or read the current state.
Definition: netopt.h:145
PRBS9 continuous tx mode.
Definition: netopt.h:513
Get/Set the channel center frequency.
Definition: netopt.h:393
Enable/disable integrity check (e.g CRC).
Definition: netopt.h:382
en/disable the frame pending bit of ACKs.
Definition: netopt.h:150
get/set the maximum number of CSMA retries
Definition: netopt.h:239
Test mode for the radio, e.g.
Definition: netopt.h:343
remove an address from a link layer filter list
Definition: netopt.h:363
netopt_t
Global list of configuration options available throughout the network stack, e.g. ...
Definition: netopt.h:36
standby mode.
Definition: netopt.h:501
en/disable link layer auto ACKs or read the current state
Definition: netopt.h:148
enable a given option
Definition: netopt.h:479
get/set long address in host byte order
Definition: netopt.h:47
get/set channel as uint16_t in host byte order
Definition: netopt.h:37
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:486
get/set address in host byte order
Definition: netopt.h:40
Get/Set preamble length as uint16_t in host byte order.
Definition: netopt.h:377
get/set the minimum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:257
netopt_rf_testmode_t
Option parameter to be used with NETOPT_RF_TESTMODE.
Definition: netopt.h:509
en/disable the interrupt after packet reception.
Definition: netopt.h:184
Removes an IPv6 address as ipv6_addr_t from an interface.
Definition: netopt.h:99
read-only check for a wired interface.
Definition: netopt.h:277
netopt_enable_t
Binary parameter for enabling and disabling options.
Definition: netopt.h:477
get IPv6 addresses of an interface as array of ipv6_addr_t or add an IPv6 address as ipv6_addr_t to a...
Definition: netopt.h:95
idle mode, radio off
Definition: netopt.h:510
get the default address length a network device expects as uint16_t in host byte order ...
Definition: netopt.h:48
Leaves an IPv6 multicast group as ipv6_addr_t on an interface.
Definition: netopt.h:128
sleep mode
Definition: netopt.h:488
Check automatically before sending if the channel is clear.
Definition: netopt.h:218
Get/Set channel hopping period as uint8_t.
Definition: netopt.h:403
en/disable IPv6 forwarding or read the current state
Definition: netopt.h:129
maximum number of options defined here.
Definition: netopt.h:471
transmit mode, set: triggers transmission of a preloaded packet (see NETOPT_PRELOADING*).
Definition: netopt.h:493
check if channel is clear
Definition: netopt.h:39
Get/Set the transmission timeout of a packet.
Definition: netopt.h:424
en/disable header compression according to RFC 6282 or read the current state
Definition: netopt.h:451
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:489
en/disable encryption.
Definition: netopt.h:326
en/disable sending of IPv6 router advertisements or read the current state
Definition: netopt.h:131
get/set the channel page as defined by IEEE 802.15.4
Definition: netopt.h:287
get statistics about sent and received packets and data of the device or protocol ...
Definition: netopt.h:321
triggers a hardware reset.
Definition: netopt.h:499
en/disable the interrupt after packet transmission.
Definition: netopt.h:204
carrier wave continuous tx mode
Definition: netopt.h:512
en/disable promiscuous mode or read the current state
Definition: netopt.h:146
get/set hop limit as uint8_t
Definition: netopt.h:64
Enable/disable single packet reception.
Definition: netopt.h:410
get/set the maximum number of retransmissions.
Definition: netopt.h:158
disable a given option
Definition: netopt.h:478
get the flags to the addresses returned by NETOPT_IPV6_ADDR as array of uint8_t
Definition: netopt.h:108
Enable/disable IQ inverted.
Definition: netopt.h:449
get/set the protocol for the layer as type gnrc_nettype_t.
Definition: netopt.h:160
en/disable acknowledgement requests or read the current state
Definition: netopt.h:156
Get/Set the radio spreading factor as uint8_t.
Definition: netopt.h:434
get IPv6 multicast groups of an interface as array of ipv6_addr_t or join an IPv6 multicast group as ...
Definition: netopt.h:123
Get/Set the radio coding rate as uint8_t.
Definition: netopt.h:439
receive mode, the device currently receives a packet
Definition: netopt.h:491
Get/Set the radio modulation bandwidth as uint8_t.
Definition: netopt.h:429
get the IPv6 interface identifier of a network interface as eui64_t.
Definition: netopt.h:80