Blame view

recepteur/SX1276Lib/typedefs/typedefs.h 1.02 KB
8c2393cd   rcavalie   travail reception...
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
53
  /*
   / _____)             _              | |
  ( (____  _____ ____ _| |_ _____  ____| |__
   \____ \| ___ |    (_   _) ___ |/ ___)  _ \
   _____) ) ____| | | || |_| ____( (___| | | |
  (______/|_____)_|_|_| \__)_____)\____)_| |_|
      (C) 2014 Semtech
  
  Description: -
  
  License: Revised BSD License, see LICENSE.TXT file include in the project
  
  Maintainers: Miguel Luis, Gregory Cristian and Nicolas Huguenin
  */
  #ifndef __TYPEDEFS_H__
  #define __TYPEDEFS_H__
  
  #include "mbed.h"
  #include "./enums/enums.h"
  
  class SX1276;
  class SX1276MB1xAS;
  /*!
   * Hardware IO IRQ callback function definition
   */
  typedef void ( SX1276::*DioIrqHandler )( void );
  
  /*!
   * triggers definition
   */
  typedef void ( SX1276::*Trigger )( void );
  typedef void ( SX1276MB1xAS::*TriggerMB1xAS )( void );
  
  /*!
   * FSK bandwidth definition
   */
  typedef struct
  {
      uint32_t bandwidth;
      uint8_t  RegValue;
  }FskBandwidth_t;
  
  /*!
   * Radio registers definition
   */
  typedef struct
  {
      ModemType   Modem;
      uint8_t     Addr;
      uint8_t     Value;
  }RadioRegisters_t;
  
  #endif //__TYPEDEFS_H__