Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
max11040.h
Go to the documentation of this file.
1 #ifndef MAX11040_H
2 #define MAX11040_H
3 
4 
5 #include "std.h"
6 
7 #define MAXM_NB_CHAN 16
8 #define MAXM_NB_ADCS ((MAXM_NB_CHAN+3)/4)
9 #define MAX11040_BUF_SIZE 320
10 
11 extern volatile uint8_t max11040_status;
12 extern volatile uint8_t max11040_data;
15 extern volatile uint8_t max11040_count;
16 extern volatile uint32_t max11040_buf_in;
17 extern volatile uint32_t max11040_buf_out;
18 
19 
20 #define MAX11040_RESET 0
21 #define MAX11040_CONF 1
22 #define MAX11040_INSTANT 2
23 #define MAX11040_RATE 3
24 #define MAX11040_DONE 4
25 #define MAX11040_DATA 5
26 #define MAX11040_DATA2 6
27 
28 #define MAX11040_IDLE 0
29 #define MAX11040_DATA_AVAILABLE 1
30 
31 void max11040_init(void);
32 void max11040_periodic(void);
33 
34 
35 #endif /* MAX11040_H */
36 
volatile uint8_t max11040_data
Definition: max11040.c:36
volatile uint32_t max11040_buf_out
Definition: max11040.c:41
#define MAXM_NB_CHAN
Definition: max11040.h:7
volatile uint32_t max11040_timestamp[MAX11040_BUF_SIZE]
Definition: max11040.c:38
void max11040_init(void)
Definition: max11040.c:44
unsigned long uint32_t
Definition: types.h:18
signed long int32_t
Definition: types.h:19
volatile int32_t max11040_values[MAX11040_BUF_SIZE][MAXM_NB_CHAN]
Definition: max11040.c:37
unsigned char uint8_t
Definition: types.h:14
volatile uint32_t max11040_buf_in
Definition: max11040.c:40
void max11040_periodic(void)
Definition: max11040.c:55
volatile uint8_t max11040_count
Definition: max11040.c:39
volatile uint8_t max11040_status
Definition: max11040.c:35
#define MAX11040_BUF_SIZE
Definition: max11040.h:9