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 
112 
122 
133 
142 
156 
165 
177 
186 
195 
205 
210 
215 
232 
241 
249 
271 
281 
291 
300 
305 
310 
315 
320 
327 
334 
341 
346 
351 
356 
361 
366 
371 
380 
381  /* add more options if needed */
382 
389 } netopt_t;
390 
394 typedef enum {
398 
403 typedef enum {
420  /* add other states if needed */
422 
426 typedef enum {
432 
440 const char *netopt2str(netopt_t opt);
441 
442 #ifdef __cplusplus
443 }
444 #endif
445 
446 #endif /* NET_NETOPT_H */
447 
get a device&#39;s "type", e.g., ethernet, 802.15.4, ...
Definition: netopt.h:209
continuous rx mode
Definition: netopt.h:428
Get/Set the reception timeout of a packet.
Definition: netopt.h:333
en/disable the pre-processing of data in a network device driver as type gnrc_nettype_t ...
Definition: netopt.h:101
CCA mode for the radio transceiver.
Definition: netopt.h:240
get/set the maximum packet size a network module can handle as uint16_t in host byte order ...
Definition: netopt.h:79
set encryption key
Definition: netopt.h:254
Get retry amount from missing ACKs of the last transmission.
Definition: netopt.h:379
add an address to a link layer filter list
Definition: netopt.h:280
en/disable the interrupt right in the beginning of transmission.
Definition: netopt.h:132
en/disable the interrupt at reception start.
Definition: netopt.h:111
get/set the output power for radio devices in dBm as int16_t in host byte order
Definition: netopt.h:76
Energy level during the last performed CCA or RX frame.
Definition: netopt.h:299
get/set the CCA threshold for the radio transceiver
Definition: netopt.h:231
get/set the state of network devices as type netopt_state_t
Definition: netopt.h:99
get/set the network ID as uint16_t in host byte order
Definition: netopt.h:59
Enable/disable fixed header mode.
Definition: netopt.h:365
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:314
powered off
Definition: netopt.h:404
get/set the maximum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:185
en/disable CSMA/CA support
Definition: netopt.h:164
en/disable preloading or read the current state.
Definition: netopt.h:88
PRBS9 continuous tx mode.
Definition: netopt.h:430
Enable/disable integrity check (e.g CRC).
Definition: netopt.h:309
get/set the maximum number of CSMA retries
Definition: netopt.h:176
Test mode for the radio, e.g.
Definition: netopt.h:270
remove an address from a link layer filter list
Definition: netopt.h:290
netopt_t
Global list of configuration options available throughout the network stack, e.g. ...
Definition: netopt.h:36
standby mode.
Definition: netopt.h:418
en/disable link layer auto ACKs or read the current state
Definition: netopt.h:91
enable a given option
Definition: netopt.h:396
get/set long address in host byte order
Definition: netopt.h:47
Get/Set the radio modem type as uint8_t.
Definition: netopt.h:345
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:403
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:304
get/set the minimum backoff exponent for the CSMA-CA algorithm
Definition: netopt.h:194
netopt_rf_testmode_t
Option parameter to be used with NETOPT_RF_TESTMODE.
Definition: netopt.h:426
en/disable the interrupt after packet reception.
Definition: netopt.h:121
read-only check for a wired interface.
Definition: netopt.h:204
netopt_enable_t
Binary parameter for enabling and disabling options.
Definition: netopt.h:394
idle mode, radio off
Definition: netopt.h:427
get the default address length a network device expects as uint16_t in host byte order ...
Definition: netopt.h:48
sleep mode
Definition: netopt.h:405
Check automatically before sending if the channel is clear.
Definition: netopt.h:155
Get/Set channel hopping period as uint8_t.
Definition: netopt.h:319
maximum number of options defined here.
Definition: netopt.h:388
transmit mode, set: triggers transmission of a preloaded packet (see NETOPT_PRELOADING*).
Definition: netopt.h:410
check if channel is clear
Definition: netopt.h:39
Get/Set the transmission timeout of a packet.
Definition: netopt.h:340
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:406
en/disable encryption.
Definition: netopt.h:253
get/set the channel page as defined by IEEE 802.15.4
Definition: netopt.h:214
get statistics about sent and received packets and data of the device or protocol ...
Definition: netopt.h:248
triggers a hardware reset.
Definition: netopt.h:416
en/disable the interrupt after packet transmission.
Definition: netopt.h:141
carrier wave continuous tx mode
Definition: netopt.h:429
en/disable promiscuous mode or read the current state
Definition: netopt.h:89
Enable/disable single packet reception.
Definition: netopt.h:326
get/set the maximum number of retransmissions.
Definition: netopt.h:95
disable a given option
Definition: netopt.h:395
Enable/disable IQ inverted.
Definition: netopt.h:370
get/set the protocol for the layer as type gnrc_nettype_t.
Definition: netopt.h:97
en/disable acknowledgement requests or read the current state
Definition: netopt.h:93
Get/Set the radio spreading factor as uint8_t.
Definition: netopt.h:355
Get/Set the radio coding rate as uint8_t.
Definition: netopt.h:360
receive mode, the device currently receives a packet
Definition: netopt.h:408
Get/Set the radio modulation bandwidth as uint8_t.
Definition: netopt.h:350
get the IPv6 interface identifier of a network interface as eui64_t.
Definition: netopt.h:75