Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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 
max11040_values
volatile int32_t max11040_values[MAX11040_BUF_SIZE][MAXM_NB_CHAN]
Definition: max11040.c:37
uint32_t
unsigned long uint32_t
Definition: types.h:18
max11040_periodic
void max11040_periodic(void)
Definition: max11040.c:55
max11040_timestamp
volatile uint32_t max11040_timestamp[MAX11040_BUF_SIZE]
Definition: max11040.c:38
MAX11040_BUF_SIZE
#define MAX11040_BUF_SIZE
Definition: max11040.h:9
std.h
max11040_data
volatile uint8_t max11040_data
Definition: max11040.c:36
max11040_buf_in
volatile uint32_t max11040_buf_in
Definition: max11040.c:40
max11040_count
volatile uint8_t max11040_count
Definition: max11040.c:39
max11040_init
void max11040_init(void)
Definition: max11040.c:44
uint8_t
unsigned char uint8_t
Definition: types.h:14
MAXM_NB_CHAN
#define MAXM_NB_CHAN
Definition: max11040.h:7
int32_t
signed long int32_t
Definition: types.h:19
max11040_buf_out
volatile uint32_t max11040_buf_out
Definition: max11040.c:41
max11040_status
volatile uint8_t max11040_status
Definition: max11040.c:35