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
micromag_hw.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 micromag_hw.h:

Go to the source code of this file.

Macros

#define MM_DIVISOR_128   2
 
#define MM_DIVISOR_256   3
 
#define MM_DIVISOR_512   4
 
#define MM_DIVISOR_1024   5
 
#define MM_DIVISOR   MM_DIVISOR_512
 
#define MmSelect()   SetBit(MM_SS_IOCLR,MM_SS_PIN)
 
#define MmUnselect()   SetBit(MM_SS_IOSET,MM_SS_PIN)
 
#define MmReset()   SetBit(MM_RESET_IOCLR,MM_RESET_PIN)
 
#define MmSet()   SetBit(MM_RESET_IOSET,MM_RESET_PIN)
 
#define MmOnSpiIt()
 
#define MmSendReq()
 
#define MmReadRes()
 

Variables

volatile uint8_t micromag_cur_axe
 

Macro Definition Documentation

#define MM_DIVISOR   MM_DIVISOR_512

Definition at line 20 of file micromag_hw.h.

#define MM_DIVISOR_1024   5

Definition at line 18 of file micromag_hw.h.

#define MM_DIVISOR_128   2

Definition at line 15 of file micromag_hw.h.

#define MM_DIVISOR_256   3

Definition at line 16 of file micromag_hw.h.

#define MM_DIVISOR_512   4

Definition at line 17 of file micromag_hw.h.

#define MmOnSpiIt ( )

Definition at line 31 of file micromag_hw.h.

Referenced by SSP_ISR().

#define MmReadRes ( )
Value:
{ \
/* trigger 2 bytes read */ \
}
#define MM_READING_RES
Definition: micromag.h:18
#define SSP_Send(_a)
Definition: ssp_hw.h:16
#define SSP_Enable()
Definition: max11040_hw.h:44
volatile uint8_t micromag_status
Definition: micromag.c:3
#define SSP_EnableRti()
Definition: max11040_hw.h:52
#define MmSelect()
Definition: micromag_hw.h:25
#define SSP_ClearRti()
Definition: max11040_hw.h:54

Definition at line 80 of file micromag_hw.h.

Referenced by micromag_periodic(), and micromag_read().

#define MmReset ( )    SetBit(MM_RESET_IOCLR,MM_RESET_PIN)

Definition at line 28 of file micromag_hw.h.

Referenced by EXTINT_ISR(), and micromag_hw_init().

#define MmSelect ( )    SetBit(MM_SS_IOCLR,MM_SS_PIN)

Definition at line 25 of file micromag_hw.h.

#define MmSendReq ( )
Value:
{ \
uint8_t control_byte = (micromag_cur_axe+1) << 0 | MM_DIVISOR_1024 << 4; \
SSP_Send(control_byte); \
}
#define MM_DIVISOR_1024
Definition: micromag_hw.h:18
#define SSP_Send(_a)
Definition: ssp_hw.h:16
#define MmReset()
Definition: micromag_hw.h:28
#define SSP_Enable()
Definition: max11040_hw.h:44
#define MmSet()
Definition: micromag_hw.h:29
volatile uint8_t micromag_status
Definition: micromag.c:3
#define MM_SENDING_REQ
Definition: micromag.h:15
#define SSP_EnableRti()
Definition: max11040_hw.h:52
#define MmSelect()
Definition: micromag_hw.h:25
unsigned char uint8_t
Definition: types.h:14
#define SSP_ClearRti()
Definition: max11040_hw.h:54
volatile uint8_t micromag_cur_axe
Definition: micromag_hw.c:25

Definition at line 68 of file micromag_hw.h.

Referenced by micromag_periodic(), and micromag_read().

#define MmSet ( )    SetBit(MM_RESET_IOSET,MM_RESET_PIN)

Definition at line 29 of file micromag_hw.h.

#define MmUnselect ( )    SetBit(MM_SS_IOSET,MM_SS_PIN)

Definition at line 26 of file micromag_hw.h.

Referenced by EXTINT_ISR(), and micromag_hw_init().

Variable Documentation

volatile uint8_t micromag_cur_axe

Definition at line 25 of file micromag_hw.c.