Blame view

RIOT/drivers/kw2xrf/include/kw2xrf_tm.h 963 Bytes
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
  /*
   * Copyright (C) 2016 Phytec Messtechnik GmbH
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  /**
   * @ingroup     tests_kw2xrf
   * @{
   *
   * @file
   * @brief       Testing interfaces for kw2xrf driver
   *
   * @author      Johann Fischer <j.fischer@phytec.de>
   */
  
  #ifndef KW2XRF_TM_H
  #define KW2XRF_TM_H
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #ifdef KW2XRF_TESTMODE
  
  #include "kw2xrf.h"
  #include "kw2xrf_reg.h"
  #include "kw2xrf_getset.h"
  #include "net/netopt.h"
  
  enum mkw2xrf_testmode {
      KW2XRF_TM_CTX_PREAMBLE = NETOPT_RF_TESTMODE_CTX_PRBS9 + 1,
      KW2XRF_TM_CTX_2MHZ,
      KW2XRF_TM_CTX_200KHZ,
      KW2XRF_TM_CTX_1MBPS_PRBS9,
      KW2XRF_TM_CTX_EXT,
      KW2XRF_TM_CTX_NM0,
      KW2XRF_TM_CTX_NM1,
  };
  
  int kw2xrf_set_test_mode(kw2xrf_t *dev, uint8_t mode);
  
  #endif
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* KW2XRF_TM_H */
  /** @} */