kw2xrf_tm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Phytec Messtechnik GmbH
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef KW2XRF_TM_H
20 #define KW2XRF_TM_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
26 #ifdef KW2XRF_TESTMODE
27 
28 #include "kw2xrf.h"
29 #include "kw2xrf_reg.h"
30 #include "kw2xrf_getset.h"
31 #include "net/netopt.h"
32 
33 enum mkw2xrf_testmode {
34  KW2XRF_TM_CTX_PREAMBLE = NETOPT_RF_TESTMODE_CTX_PRBS9 + 1,
35  KW2XRF_TM_CTX_2MHZ,
36  KW2XRF_TM_CTX_200KHZ,
37  KW2XRF_TM_CTX_1MBPS_PRBS9,
38  KW2XRF_TM_CTX_EXT,
39  KW2XRF_TM_CTX_NM0,
40  KW2XRF_TM_CTX_NM1,
41 };
42 
43 int kw2xrf_set_test_mode(kw2xrf_t *dev, uint8_t mode);
44 
45 #endif
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif /* KW2XRF_TM_H */
52 
netopt.h
Definition of global configuration options.
kw2xrf.h
Interface definition for the kw2xrf driver.
kw2xrf_reg.h
Register and command definitions for the MKW2XD Modem.
kw2xrf_getset.h
get/set interfaces for kw2xrf driver
NETOPT_RF_TESTMODE_CTX_PRBS9
@ NETOPT_RF_TESTMODE_CTX_PRBS9
PRBS9 continuous tx mode.
Definition: netopt.h:832
kw2xrf_t
Device descriptor for KW2XRF radio devices.
Definition: kw2xrf.h:125