Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
max1168_arch.h File Reference
#include "std.h"
#include "LPC21xx.h"
#include "interrupt_hw.h"
#include "ssp_hw.h"
#include "pprz_debug.h"
+ Include dependency graph for max1168_arch.h:

Go to the source code of this file.

Macros

#define MAX1168_ERR_ISR_STATUS   0
 
#define MAX1168_ERR_READ_OVERUN   1
 
#define MAX1168_ERR_SPURIOUS_EOC   2
 
#define MAX1168_SS_PIN   20
 
#define MAX1168_SS_IODIR   IO0DIR
 
#define MAX1168_SS_IOSET   IO0SET
 
#define MAX1168_SS_IOCLR   IO0CLR
 
#define MAX1168_EOC_PIN   16
 
#define MAX1168_EOC_PINSEL   PINSEL1
 
#define MAX1168_EOC_PINSEL_BIT   0
 
#define MAX1168_EOC_PINSEL_VAL   1
 
#define MAX1168_EOC_EINT   0
 
#define Max1168Unselect()   SetBit(MAX1168_SS_IOSET, MAX1168_SS_PIN)
 
#define Max1168Select()   SetBit(MAX1168_SS_IOCLR, MAX1168_SS_PIN)
 
#define Max1168OnSpiInt()
 

Macro Definition Documentation

#define MAX1168_EOC_EINT   0

Definition at line 55 of file max1168_arch.h.

Referenced by EXTINT0_ISR().

#define MAX1168_EOC_PIN   16

Definition at line 51 of file max1168_arch.h.

#define MAX1168_EOC_PINSEL   PINSEL1

Definition at line 52 of file max1168_arch.h.

Referenced by EXTINT0_ISR().

#define MAX1168_EOC_PINSEL_BIT   0

Definition at line 53 of file max1168_arch.h.

Referenced by EXTINT0_ISR().

#define MAX1168_EOC_PINSEL_VAL   1

Definition at line 54 of file max1168_arch.h.

Referenced by EXTINT0_ISR().

#define MAX1168_ERR_ISR_STATUS   0

Definition at line 42 of file max1168_arch.h.

#define MAX1168_ERR_READ_OVERUN   1

Definition at line 43 of file max1168_arch.h.

Referenced by max1168_read().

#define MAX1168_ERR_SPURIOUS_EOC   2

Definition at line 44 of file max1168_arch.h.

#define MAX1168_SS_IOCLR   IO0CLR

Definition at line 49 of file max1168_arch.h.

#define MAX1168_SS_IODIR   IO0DIR

Definition at line 47 of file max1168_arch.h.

Referenced by EXTINT0_ISR().

#define MAX1168_SS_IOSET   IO0SET

Definition at line 48 of file max1168_arch.h.

#define MAX1168_SS_PIN   20

Definition at line 46 of file max1168_arch.h.

Referenced by EXTINT0_ISR().

#define Max1168OnSpiInt ( )
Value:
{ \
DEBUG_MAX_1168, MAX1168_ERR_ISR_STATUS); \
/* store convertion result */ \
}
uint16_t max1168_values[MAX1168_NB_CHAN]
Definition: max1168.c:29
#define Max1168Unselect()
Definition: max1168_arch.h:57
#define SSP_DisableRti()
Definition: max11040_hw.h:53
#define SSP_Disable()
Definition: max11040_hw.h:45
#define MAX1168_ERR_ISR_STATUS
Definition: max1168_arch.h:42
volatile uint8_t max1168_status
Definition: max1168.c:28
#define SSPDR
Definition: LPC21xx.h:224
#define SSP_ClearRti()
Definition: max11040_hw.h:54
#define STA_MAX1168_DATA_AVAILABLE
Definition: max1168.h:36
#define ASSERT(x)
Definition: usb_ser_hw.c:84
#define STA_MAX1168_READING_RES
Definition: max1168.h:35

Definition at line 60 of file max1168_arch.h.

#define Max1168Select ( )    SetBit(MAX1168_SS_IOCLR, MAX1168_SS_PIN)

Definition at line 58 of file max1168_arch.h.

Referenced by max1168_read().

#define Max1168Unselect ( )    SetBit(MAX1168_SS_IOSET, MAX1168_SS_PIN)

Definition at line 57 of file max1168_arch.h.

Referenced by EXTINT0_ISR(), and max1168_arch_init().