Paparazzi UAS  v7.0_unstable
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 
#define MAX11040_BUF_SIZE
Definition: max11040.h:9
volatile uint8_t max11040_data
Definition: max11040.c:36
#define MAXM_NB_CHAN
Definition: max11040.h:7
volatile uint8_t max11040_status
Definition: max11040.c:35
volatile int32_t max11040_values[MAX11040_BUF_SIZE][MAXM_NB_CHAN]
Definition: max11040.c:37
volatile uint32_t max11040_buf_in
Definition: max11040.c:40
void max11040_periodic(void)
Definition: max11040.c:55
volatile uint32_t max11040_buf_out
Definition: max11040.c:41
volatile uint8_t max11040_count
Definition: max11040.c:39
volatile uint32_t max11040_timestamp[MAX11040_BUF_SIZE]
Definition: max11040.c:38
void max11040_init(void)
Definition: max11040.c:44
int int32_t
Typedef defining 32 bit int type.
Definition: vl53l1_types.h:83
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l1_types.h:78
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98