Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
max1168.h File Reference
#include "std.h"
#include "peripherals/max1168_arch.h"
+ Include dependency graph for max1168.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MAX1168_NB_CHAN   8
 
#define STA_MAX1168_IDLE   0
 
#define STA_MAX1168_SENDING_REQ   1
 
#define STA_MAX1168_READING_RES   2
 
#define STA_MAX1168_DATA_AVAILABLE   3
 

Functions

void max1168_init (void)
 
void max1168_arch_init (void)
 
void max1168_read (void)
 

Variables

volatile uint8_t max1168_status
 
uint16_t max1168_values [MAX1168_NB_CHAN]
 

Macro Definition Documentation

#define MAX1168_NB_CHAN   8

Definition at line 29 of file max1168.h.

Referenced by exti2_irq_handler(), and max1168_init().

#define STA_MAX1168_DATA_AVAILABLE   3

Definition at line 36 of file max1168.h.

Referenced by main_event_task().

#define STA_MAX1168_IDLE   0

Definition at line 33 of file max1168.h.

Referenced by main_event_task(), max1168_init(), and max1168_read().

#define STA_MAX1168_READING_RES   2

Definition at line 35 of file max1168.h.

Referenced by exti2_irq_handler().

#define STA_MAX1168_SENDING_REQ   1

Definition at line 34 of file max1168.h.

Referenced by max1168_read().

Function Documentation

void max1168_arch_init ( void  )

Definition at line 26 of file max1168_arch.c.

References DRDY_PORT, DRDY_PORT_SOURCE, and Max1168Unselect.

Referenced by max1168_init().

+ Here is the caller graph for this function:

void max1168_init ( void  )

Definition at line 31 of file max1168.c.

References max1168_arch_init(), MAX1168_NB_CHAN, max1168_status, max1168_values, and STA_MAX1168_IDLE.

Referenced by imu_impl_init(), and main_init().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void max1168_read ( void  )

Definition at line 52 of file max1168_arch.c.

References ASSERT, MAX1168_ERR_READ_OVERUN, max1168_status, Max1168Select, SSP_ClearRti, SSP_DisableRti, SSP_Enable, SSPDR, STA_MAX1168_IDLE, and STA_MAX1168_SENDING_REQ.

Referenced by imu_periodic(), and main_periodic_task().

+ Here is the caller graph for this function:

Variable Documentation

volatile uint8_t max1168_status

Definition at line 28 of file max1168.c.

Referenced by exti2_irq_handler(), main_event_task(), max1168_init(), and max1168_read().

uint16_t max1168_values[MAX1168_NB_CHAN]

Definition at line 29 of file max1168.c.

Referenced by exti2_irq_handler(), main_event_task(), and max1168_init().