Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
lpcSPI.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* $RCSfile$
4
* $Revision$
5
*
6
* Header file for Philips LPC ARM Processors.
7
* Copyright 2004 R O SoftWare
8
*
9
* No guarantees, warrantees, or promises, implied or otherwise.
10
* May be used for hobby or commercial purposes provided copyright
11
* notice remains intact.
12
*
13
*****************************************************************************/
14
#ifndef INC_LPC_SPI_H
15
#define INC_LPC_SPI_H
16
17
// Serial Peripheral Interface Registers (SPI)
18
typedef
struct
19
{
20
REG_8
cr
;
// Control Register
21
REG_8
_pad0[3];
22
REG_8
sr
;
// Status Register
23
REG_8
_pad1[3];
24
REG_8
dr
;
// Data Register
25
REG_8
_pad2[3];
26
REG_8
ccr
;
// Clock Counter Register
27
REG_8
_pad3[3];
28
REG_8
tcr
;
// Test Control Register
29
REG_8
_pad4[3];
30
REG_8
tsr
;
// Test Status Register
31
REG_8
_pad5[3];
32
REG_8
tor
;
// Test Observe Register
33
REG_8
_pad6[3];
34
REG_8
flag
;
// Interrupt Flag Register
35
REG_8
_pad7[3];
36
}
spiRegs_t
;
37
38
// Serial Serial Port Registers (SSP/SPI)
39
typedef
struct
40
{
41
REG16
cr0
;
// Control Register 0
42
REG16
_pad0
;
43
REG_8
cr1
;
// Control Register 1
44
REG_8
_pad1[3];
45
REG16
dr
;
// Data Register
46
REG16
_pad2
;
47
REG_8
sr
;
// Status Register
48
REG_8
_pad3[3];
49
REG_8
cpsr
;
// Clock Prescale Register
50
REG_8
_pad4[3];
51
REG_8
imsc
;
// Interrupt Mask Set and Clear Register
52
REG_8
_pad5[3];
53
REG_8
ris
;
// Raw Interrupt Status Register
54
REG_8
_pad6[3];
55
REG_8
mis
;
// Masked Interrupt Status Register
56
REG_8
_pad7[3];
57
REG_8
icr
;
// Interrupt Clear Register
58
REG_8
_pad8[3];
59
}
sspRegs_t
;
60
61
#endif
REG_8
#define REG_8
Definition:
LPC21xx.h:18
sspRegs_t::mis
REG_8 mis
Definition:
lpcSPI.h:55
spiRegs_t::sr
REG_8 sr
Definition:
lpcSPI.h:22
spiRegs_t::ccr
REG_8 ccr
Definition:
lpcSPI.h:26
sspRegs_t::cr0
REG16 cr0
Definition:
lpcSPI.h:41
spiRegs_t::tsr
REG_8 tsr
Definition:
lpcSPI.h:30
sspRegs_t
Definition:
lpcSPI.h:39
spiRegs_t::tcr
REG_8 tcr
Definition:
lpcSPI.h:28
spiRegs_t::cr
REG_8 cr
Definition:
lpcSPI.h:20
sspRegs_t::sr
REG_8 sr
Definition:
lpcSPI.h:47
sspRegs_t::cr1
REG_8 cr1
Definition:
lpcSPI.h:43
spiRegs_t::dr
REG_8 dr
Definition:
lpcSPI.h:24
sspRegs_t::icr
REG_8 icr
Definition:
lpcSPI.h:57
spiRegs_t::tor
REG_8 tor
Definition:
lpcSPI.h:32
REG16
#define REG16
Definition:
LPC21xx.h:19
sspRegs_t::imsc
REG_8 imsc
Definition:
lpcSPI.h:51
sspRegs_t::_pad0
REG16 _pad0
Definition:
lpcSPI.h:42
spiRegs_t
Definition:
lpcSPI.h:18
sspRegs_t::ris
REG_8 ris
Definition:
lpcSPI.h:53
spiRegs_t::flag
REG_8 flag
Definition:
lpcSPI.h:34
sspRegs_t::_pad2
REG16 _pad2
Definition:
lpcSPI.h:46
sspRegs_t::dr
REG16 dr
Definition:
lpcSPI.h:45
sspRegs_t::cpsr
REG_8 cpsr
Definition:
lpcSPI.h:49
sw
airborne
arch
lpc21
include
lpcSPI.h
Generated on Tue Jun 21 2016 14:01:09 for Paparazzi UAS by
1.8.8