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 File Reference
#include "std.h"
+ Include dependency graph for max11040.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAXM_NB_CHAN   16
 
#define MAXM_NB_ADCS   ((MAXM_NB_CHAN+3)/4)
 
#define MAX11040_BUF_SIZE   320
 
#define MAX11040_RESET   0
 
#define MAX11040_CONF   1
 
#define MAX11040_INSTANT   2
 
#define MAX11040_RATE   3
 
#define MAX11040_DONE   4
 
#define MAX11040_DATA   5
 
#define MAX11040_DATA2   6
 
#define MAX11040_IDLE   0
 
#define MAX11040_DATA_AVAILABLE   1
 

Functions

void max11040_init (void)
 
void max11040_periodic (void)
 

Variables

volatile uint8_t max11040_status
 
volatile uint8_t max11040_data
 
volatile int32_t max11040_values [MAX11040_BUF_SIZE][MAXM_NB_CHAN]
 
volatile uint32_t max11040_timestamp [MAX11040_BUF_SIZE]
 
volatile uint8_t max11040_count
 
volatile uint32_t max11040_buf_in
 
volatile uint32_t max11040_buf_out
 

Macro Definition Documentation

#define MAX11040_BUF_SIZE   320

Definition at line 9 of file max11040.h.

Referenced by SSP_ISR().

#define MAX11040_CONF   1

Definition at line 21 of file max11040.h.

Referenced by SSP_ISR().

#define MAX11040_DATA   5

Definition at line 25 of file max11040.h.

Referenced by SSP_ISR().

#define MAX11040_DATA2   6

Definition at line 26 of file max11040.h.

Referenced by EXTINT_ISR(), and SSP_ISR().

#define MAX11040_DATA_AVAILABLE   1

Definition at line 29 of file max11040.h.

Referenced by max11040_periodic(), and SSP_ISR().

#define MAX11040_DONE   4

Definition at line 24 of file max11040.h.

#define MAX11040_IDLE   0

Definition at line 28 of file max11040.h.

Referenced by max11040_periodic().

#define MAX11040_INSTANT   2

Definition at line 22 of file max11040.h.

Referenced by SSP_ISR().

#define MAX11040_RATE   3

Definition at line 23 of file max11040.h.

Referenced by SSP_ISR().

#define MAX11040_RESET   0

Definition at line 20 of file max11040.h.

Referenced by max11040_init(), and SSP_ISR().

#define MAXM_NB_ADCS   ((MAXM_NB_CHAN+3)/4)

Definition at line 8 of file max11040.h.

Referenced by max11040_hw_init(), and SSP_ISR().

#define MAXM_NB_CHAN   16

Definition at line 7 of file max11040.h.

Referenced by SSP_ISR().

Function Documentation

void max11040_init ( void  )

Definition at line 44 of file max11040.c.

References max11040_buf_in, max11040_buf_out, max11040_count, max11040_data, max11040_hw_init(), MAX11040_RESET, and max11040_status.

+ Here is the call graph for this function:

void max11040_periodic ( void  )

Variable Documentation

volatile uint32_t max11040_buf_in

Definition at line 40 of file max11040.c.

Referenced by EXTINT_ISR(), max11040_init(), max11040_periodic(), and SSP_ISR().

volatile uint32_t max11040_buf_out

Definition at line 41 of file max11040.c.

Referenced by max11040_init(), and SSP_ISR().

volatile uint8_t max11040_count

Definition at line 39 of file max11040.c.

Referenced by EXTINT_ISR(), max11040_init(), and SSP_ISR().

volatile uint8_t max11040_data

Definition at line 36 of file max11040.c.

Referenced by max11040_init(), max11040_periodic(), and SSP_ISR().

volatile uint8_t max11040_status

Definition at line 35 of file max11040.c.

Referenced by EXTINT_ISR(), max11040_init(), and SSP_ISR().

volatile uint32_t max11040_timestamp[MAX11040_BUF_SIZE]

Definition at line 38 of file max11040.c.

Referenced by EXTINT_ISR().

volatile int32_t max11040_values[MAX11040_BUF_SIZE][MAXM_NB_CHAN]

Definition at line 37 of file max11040.c.

Referenced by max11040_periodic(), and SSP_ISR().