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
ms2100_arch.h File Reference
#include <stdlib.h>
#include "std.h"
#include "LPC21xx.h"
#include "interrupt_hw.h"
#include "ssp_hw.h"
#include "generated/airframe.h"
+ Include dependency graph for ms2100_arch.h:

Go to the source code of this file.

Macros

#define Ms2100Select()   SetBit(MS2100_SS_IOCLR,MS2100_SS_PIN)
 
#define Ms2100Unselect()   SetBit(MS2100_SS_IOSET,MS2100_SS_PIN)
 
#define Ms2100Reset()   SetBit(MS2100_RESET_IOCLR,MS2100_RESET_PIN)
 
#define Ms2100Set()   SetBit(MS2100_RESET_IOSET,MS2100_RESET_PIN)
 
#define Ms2100OnSpiInt()
 
#define Ms2100SendReq()
 
#define Ms2100ReadRes()
 

Variables

volatile uint8_t ms2100_cur_axe
 

Macro Definition Documentation

#define Ms2100OnSpiInt ( )

Definition at line 25 of file ms2100_arch.h.

#define Ms2100ReadRes ( )
Value:
{ \
/* trigger 2 bytes read */ \
}
#define MS2100_READING_RES
Definition: ms2100.h:40
#define SSP_Send(_a)
Definition: ssp_hw.h:16
#define SSP_Enable()
Definition: max11040_hw.h:44
volatile uint8_t ms2100_status
Definition: ms2100.c:26
#define SSP_EnableRti()
Definition: max11040_hw.h:52
#define SSP_ClearRti()
Definition: max11040_hw.h:54
#define Ms2100Select()
Definition: ms2100_arch.h:19

Definition at line 75 of file ms2100_arch.h.

Referenced by dma1_c4_irq_handler(), and main_periodic_task().

#define Ms2100Reset ( )    SetBit(MS2100_RESET_IOCLR,MS2100_RESET_PIN)

Definition at line 22 of file ms2100_arch.h.

Referenced by EXTINT_ISR().

#define Ms2100Select ( )    SetBit(MS2100_SS_IOCLR,MS2100_SS_PIN)

Definition at line 19 of file ms2100_arch.h.

#define Ms2100SendReq ( )
Value:
{ \
uint8_t control_byte = (ms2100_cur_axe+1) << 0 | \
SSP_Send(control_byte); \
}
volatile uint8_t ms2100_cur_axe
Definition: ms2100_arch.c:11
#define SSP_Send(_a)
Definition: ssp_hw.h:16
#define SSP_Enable()
Definition: max11040_hw.h:44
#define MS2100_DIVISOR
Definition: ms2100.h:56
#define MS2100_SENDING_REQ
Definition: ms2100.h:37
#define Ms2100Set()
Definition: ms2100_arch.h:23
volatile uint8_t ms2100_status
Definition: ms2100.c:26
#define SSP_EnableRti()
Definition: max11040_hw.h:52
unsigned char uint8_t
Definition: types.h:14
#define SSP_ClearRti()
Definition: max11040_hw.h:54
#define Ms2100Reset()
Definition: ms2100_arch.h:22
#define Ms2100Select()
Definition: ms2100_arch.h:19

Definition at line 62 of file ms2100_arch.h.

Referenced by dma1_c4_irq_handler(), and main_periodic_task().

#define Ms2100Set ( )    SetBit(MS2100_RESET_IOSET,MS2100_RESET_PIN)

Definition at line 23 of file ms2100_arch.h.

Referenced by ms2100_arch_init().

#define Ms2100Unselect ( )    SetBit(MS2100_SS_IOSET,MS2100_SS_PIN)

Definition at line 20 of file ms2100_arch.h.

Referenced by EXTINT_ISR(), and ms2100_arch_init().

Variable Documentation

volatile uint8_t ms2100_cur_axe

Definition at line 11 of file ms2100_arch.c.