blob: 32fbff3b56f90e407d6937210e0bf7ce634c5c28 [file] [log] [blame]
/****************************************************************************************************//**
* @file LPC18xx.h
*
* @status EXPERIMENTAL
*
* @brief CMSIS Cortex-M3 Core Peripheral Access Layer Header File for
* default LPC18xx Device Series
*
* @version V18
* @date 1. December 2011
*
* @note Generated with SVDConv V2.6 Build 6c on Thursday, 01.12.2011 08:48:39
*
* from CMSIS SVD File 'LPC18xxv18.xml' Version 18,
* created on Tuesday, 22.11.2011 18:06:23, last modified on Tuesday, 22.11.2011 18:38:38
*
*******************************************************************************************************/
/** @addtogroup (null)
* @{
*/
/** @addtogroup LPC18xx
* @{
*/
#ifndef __LPC18XX_H__
#define __LPC18XX_H__
#ifdef __cplusplus
extern "C" {
#endif
/********************************************
** Start of section using anonymous unions **
*********************************************/
#if defined(__ARMCC_VERSION)
#pragma push
#pragma anon_unions
#elif defined(__CWCC__)
#pragma push
#pragma cpp_extensions on
#elif defined(__GNUC__)
/* anonymous unions are enabled by default */
#elif defined(__IAR_SYSTEMS_ICC__)
#pragma push
#pragma language=extended
#else
#error Not supported compiler type
#endif
/* Interrupt Number Definition */
typedef enum {
// ------------------------- Cortex-M3 Processor Exceptions Numbers -----------------------------
Reset_IRQn = -15, /*!< 1 Reset Vector, invoked on Power up and warm reset */
NonMaskableInt_IRQn = -14, /*!< 2 Non maskable Interrupt, cannot be stopped or preempted */
HardFault_IRQn = -13, /*!< 3 Hard Fault, all classes of Fault */
MemoryManagement_IRQn = -12, /*!< 4 Memory Management, MPU mismatch, including Access Violation and No Match */
BusFault_IRQn = -11, /*!< 5 Bus Fault, Pre-Fetch-, Memory Access Fault, other address/memory related Fault */
UsageFault_IRQn = -10, /*!< 6 Usage Fault, i.e. Undef Instruction, Illegal State Transition */
SVCall_IRQn = -5, /*!< 11 System Service Call via SVC instruction */
DebugMonitor_IRQn = -4, /*!< 12 Debug Monitor */
PendSV_IRQn = -2, /*!< 14 Pendable request for system service */
SysTick_IRQn = -1, /*!< 15 System Tick Timer */
// --------------------------- LPC18xx Specific Interrupt Numbers -------------------------------
DAC_IRQn = 0, /*!< 0 DAC */
RESERVED0_IRQn = 1, /*!< 1 M0a */
DMA_IRQn = 2, /*!< 2 DMA */
RESERVED1_IRQn = 3, /*!< 3 EZH/EDM */
RESERVED2_IRQn = 4,
ETHERNET_IRQn = 5, /*!< 5 ETHERNET */
SDIO_IRQn = 6, /*!< 6 SDIO */
LCD_IRQn = 7, /*!< 7 LCD */
USB0_IRQn = 8, /*!< 8 USB0 */
USB1_IRQn = 9, /*!< 9 USB1 */
SCT_IRQn = 10, /*!< 10 SCT */
RITIMER_IRQn = 11, /*!< 11 RITIMER */
TIMER0_IRQn = 12, /*!< 12 TIMER0 */
TIMER1_IRQn = 13, /*!< 13 TIMER1 */
TIMER2_IRQn = 14, /*!< 14 TIMER2 */
TIMER3_IRQn = 15, /*!< 15 TIMER3 */
MCPWM_IRQn = 16, /*!< 16 MCPWM */
ADC0_IRQn = 17, /*!< 17 ADC0 */
I2C0_IRQn = 18, /*!< 18 I2C0 */
I2C1_IRQn = 19, /*!< 19 I2C1 */
RESERVED3_IRQn = 20,
ADC1_IRQn = 21, /*!< 21 ADC1 */
SSP0_IRQn = 22, /*!< 22 SSP0 */
SSP1_IRQn = 23, /*!< 23 SSP1 */
USART0_IRQn = 24, /*!< 24 USART0 */
UART1_IRQn = 25, /*!< 25 UART1 */
USART2_IRQn = 26, /*!< 26 USART2 */
USART3_IRQn = 27, /*!< 27 USART3 */
I2S0_IRQn = 28, /*!< 28 I2S0 */
I2S1_IRQn = 29, /*!< 29 I2S1 */
RESERVED4_IRQn = 30,
RESERVED5_IRQn = 31,
PIN_INT0_IRQn = 32, /*!< 32 PIN_INT0 */
PIN_INT1_IRQn = 33, /*!< 33 PIN_INT1 */
PIN_INT2_IRQn = 34, /*!< 34 PIN_INT2 */
PIN_INT3_IRQn = 35, /*!< 35 PIN_INT3 */
PIN_INT4_IRQn = 36, /*!< 36 PIN_INT4 */
PIN_INT5_IRQn = 37, /*!< 37 PIN_INT5 */
PIN_INT6_IRQn = 38, /*!< 38 PIN_INT6 */
PIN_INT7_IRQn = 39, /*!< 39 PIN_INT7 */
GINT0_IRQn = 40, /*!< 40 GINT0 */
GINT1_IRQn = 41, /*!< 41 GINT1 */
EVENTROUTER_IRQn = 42, /*!< 42 EVENTROUTER */
C_CAN1_IRQn = 43, /*!< 43 C_CAN1 */
RESERVED6_IRQn = 44,
RESERVED7_IRQn = 45, /*!< 45 VADC */
ATIMER_IRQn = 46, /*!< 46 ATIMER */
RTC_IRQn = 47, /*!< 47 RTC */
RESERVED8_IRQn = 48,
WWDT_IRQn = 49, /*!< 49 WWDT */
RESERVED9_IRQn = 50,
C_CAN0_IRQn = 51, /*!< 51 C_CAN0 */
QEI_IRQn = 52, /*!< 52 QEI */
} IRQn_Type;
/* Event Router Input (ERI) Number Definitions */
typedef enum {
WAKEUP0_ERIn = 0,
WAKEUP1_ERIn = 1,
WAKEUP2_ERIn = 2,
WAKEUP3_ERIn = 3,
ATIMER_ERIn = 4,
RTC_ERIn = 5,
BOD1_ERIn = 6, /* Bod trip 1 */
WWDT_ERIn = 7,
ETH_ERIn = 8,
USB0_ERIn = 9,
USB1_ERIn = 10,
SDIO_ERIn = 11,
CAN_ERIn = 12, /* CAN0/1 or'ed */
TIM2_ERIn = 13,
TIM6_ERIn = 14,
QEI_ERIn = 15,
TIM14_ERIn = 16,
RESERVED0_ERIn = 17, /* M0s */
RESERVED1_ERIn = 18, /* M3/M4 */
RESET_ERIn = 19
}ERIn_Type;
/** @addtogroup Configuration_of_CMSIS
* @{
*/
/* Processor and Core Peripheral Section */ /* Configuration of the Template Processor and Core Peripherals */
#define __CM3_REV 0x0101 /*!< Cortex-M3 Core Revision */
#define __MPU_PRESENT 1 /*!< MPU present or not */
#define __NVIC_PRIO_BITS 3 /*!< Number of Bits used for Priority Levels */
#define __Vendor_SysTickConfig 0 /*!< Set to 1 if different SysTick Config is used */
/** @} */ /* End of group Configuration_of_CMSIS */
#include "core_cm3.h" /*!< Cortex-M3 processor and core peripherals */
//#include <core_cm3.h> /*!< Cortex-M3 processor and core peripherals */
#include "system_LPC18xx.h" /*!< LPC18xx System */
/** @addtogroup Device_Peripheral_Registers
* @{
*/
// ------------------------------------------------------------------------------------------------
// ----- SCT -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx State Configurable Timer (SCT) Modification date=1/18/2011 Major revision=0 Minor revision=7 (SCT)
*/
#define CONFIG_SCT_nEV (16) /* Number of events */
#define CONFIG_SCT_nRG (16) /* Number of match/compare registers */
#define CONFIG_SCT_nOU (16) /* Number of outputs */
typedef struct
{
__IO uint32_t CONFIG; /* 0x000 Configuration Register */
union {
__IO uint32_t CTRL_U; /* 0x004 Control Register */
struct {
__IO uint16_t CTRL_L; /* 0x004 low control register */
__IO uint16_t CTRL_H; /* 0x006 high control register */
};
};
__IO uint16_t LIMIT_L; /* 0x008 limit register for counter L */
__IO uint16_t LIMIT_H; /* 0x00A limit register for counter H */
__IO uint16_t HALT_L; /* 0x00C halt register for counter L */
__IO uint16_t HALT_H; /* 0x00E halt register for counter H */
__IO uint16_t STOP_L; /* 0x010 stop register for counter L */
__IO uint16_t STOP_H; /* 0x012 stop register for counter H */
__IO uint16_t START_L; /* 0x014 start register for counter L */
__IO uint16_t START_H; /* 0x016 start register for counter H */
uint32_t RESERVED1[10]; /* 0x018-0x03C reserved */
union {
__IO uint32_t COUNT_U; /* 0x040 counter register */
struct {
__IO uint16_t COUNT_L; /* 0x040 counter register for counter L */
__IO uint16_t COUNT_H; /* 0x042 counter register for counter H */
};
};
__IO uint16_t STATE_L; /* 0x044 state register for counter L */
__IO uint16_t STATE_H; /* 0x046 state register for counter H */
__I uint32_t INPUT; /* 0x048 input register */
__IO uint16_t REGMODE_L; /* 0x04C match - capture registers mode register L */
__IO uint16_t REGMODE_H; /* 0x04E match - capture registers mode register H */
__IO uint32_t OUTPUT; /* 0x050 output register */
__IO uint32_t OUTPUTDIRCTRL; /* 0x054 Output counter direction Control Register */
__IO uint32_t RES; /* 0x058 conflict resolution register */
__IO uint32_t DMA0REQUEST; /* 0x05C DMA0 Request Register */
__IO uint32_t DMA1REQUEST; /* 0x060 DMA1 Request Register */
uint32_t RESERVED2[35]; /* 0x064-0x0EC reserved */
__IO uint32_t EVEN; /* 0x0F0 event enable register */
__IO uint32_t EVFLAG; /* 0x0F4 event flag register */
__IO uint32_t CONEN; /* 0x0F8 conflict enable register */
__IO uint32_t CONFLAG; /* 0x0FC conflict flag register */
union {
__IO union { /* 0x100-... Match / Capture value */
uint32_t U; /* SCTMATCH[i].U Unified 32-bit register */
struct {
uint16_t L; /* SCTMATCH[i].L Access to L value */
uint16_t H; /* SCTMATCH[i].H Access to H value */
};
} MATCH[CONFIG_SCT_nRG];
__I union {
uint32_t U; /* SCTCAP[i].U Unified 32-bit register */
struct {
uint16_t L; /* SCTCAP[i].L Access to H value */
uint16_t H; /* SCTCAP[i].H Access to H value */
};
} CAP[CONFIG_SCT_nRG];
};
uint32_t RESERVED3[32-CONFIG_SCT_nRG]; /* ...-0x17C reserved */
union {
__IO uint16_t MATCH_L[CONFIG_SCT_nRG]; /* 0x180-... Match Value L counter */
__I uint16_t CAP_L[CONFIG_SCT_nRG]; /* 0x180-... Capture Value L counter */
};
uint16_t RESERVED4[32-CONFIG_SCT_nRG]; /* ...-0x1BE reserved */
union {
__IO uint16_t MATCH_H[CONFIG_SCT_nRG]; /* 0x1C0-... Match Value H counter */
__I uint16_t CAP_H[CONFIG_SCT_nRG]; /* 0x1C0-... Capture Value H counter */
};
uint16_t RESERVED5[32-CONFIG_SCT_nRG]; /* ...-0x1FE reserved */
union {
__IO union { /* 0x200-... Match Reload / Capture Control value */
uint32_t U; /* SCTMATCHREL[i].U Unified 32-bit register */
struct {
uint16_t L; /* SCTMATCHREL[i].L Access to L value */
uint16_t H; /* SCTMATCHREL[i].H Access to H value */
};
} MATCHREL[CONFIG_SCT_nRG];
__IO union {
uint32_t U; /* SCTCAPCTRL[i].U Unified 32-bit register */
struct {
uint16_t L; /* SCTCAPCTRL[i].L Access to H value */
uint16_t H; /* SCTCAPCTRL[i].H Access to H value */
};
} CAPCTRL[CONFIG_SCT_nRG];
};
uint32_t RESERVED6[32-CONFIG_SCT_nRG]; /* ...-0x27C reserved */
union {
__IO uint16_t MATCHREL_L[CONFIG_SCT_nRG]; /* 0x280-... Match Reload value L counter */
__IO uint16_t CAPCTRL_L[CONFIG_SCT_nRG]; /* 0x280-... Capture Control value L counter */
};
uint16_t RESERVED7[32-CONFIG_SCT_nRG]; /* ...-0x2BE reserved */
union {
__IO uint16_t MATCHREL_H[CONFIG_SCT_nRG]; /* 0x2C0-... Match Reload value H counter */
__IO uint16_t CAPCTRL_H[CONFIG_SCT_nRG]; /* 0x2C0-... Capture Control value H counter */
};
uint16_t RESERVED8[32-CONFIG_SCT_nRG]; /* ...-0x2FE reserved */
__IO struct { /* 0x300-0x3FC SCTEVENT[i].STATE / SCTEVENT[i].CTRL*/
uint32_t STATE; /* Event State Register */
uint32_t CTRL; /* Event Control Register */
} EVENT[CONFIG_SCT_nEV];
uint32_t RESERVED9[128-2*CONFIG_SCT_nEV]; /* ...-0x4FC reserved */
__IO struct { /* 0x500-0x57C SCTOUT[i].SET / SCTOUT[i].CLR */
uint32_t SET; /* Output n Set Register */
uint32_t CLR; /* Output n Clear Register */
} OUT[CONFIG_SCT_nOU];
uint32_t RESERVED10[191-2*CONFIG_SCT_nOU]; /* ...-0x7F8 reserved */
__I uint32_t MODULECONTENT; /* 0x7FC Module Content */
} LPC_SCT_Type;
// ------------------------------------------------------------------------------------------------
// ----- GPDMA -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx General Purpose DMA (GPDMA) controller Modification date=1/19/2011 Major revision=0 Minor revision=7 (GPDMA)
*/
typedef struct { /*!< (@ 0x40002000) GPDMA Structure */
__I uint32_t INTSTAT; /*!< (@ 0x40002000) DMA Interrupt Status Register */
__I uint32_t INTTCSTAT; /*!< (@ 0x40002004) DMA Interrupt Terminal Count Request Status Register */
__O uint32_t INTTCCLEAR; /*!< (@ 0x40002008) DMA Interrupt Terminal Count Request Clear Register */
__I uint32_t INTERRSTAT; /*!< (@ 0x4000200C) DMA Interrupt Error Status Register */
__O uint32_t INTERRCLR; /*!< (@ 0x40002010) DMA Interrupt Error Clear Register */
__I uint32_t RAWINTTCSTAT; /*!< (@ 0x40002014) DMA Raw Interrupt Terminal Count Status Register */
__I uint32_t RAWINTERRSTAT; /*!< (@ 0x40002018) DMA Raw Error Interrupt Status Register */
__I uint32_t ENBLDCHNS; /*!< (@ 0x4000201C) DMA Enabled Channel Register */
__IO uint32_t SOFTBREQ; /*!< (@ 0x40002020) DMA Software Burst Request Register */
__IO uint32_t SOFTSREQ; /*!< (@ 0x40002024) DMA Software Single Request Register */
__IO uint32_t SOFTLBREQ; /*!< (@ 0x40002028) DMA Software Last Burst Request Register */
__IO uint32_t SOFTLSREQ; /*!< (@ 0x4000202C) DMA Software Last Single Request Register */
__IO uint32_t CONFIG; /*!< (@ 0x40002030) DMA Configuration Register */
__IO uint32_t SYNC; /*!< (@ 0x40002034) DMA Synchronization Register */
__I uint32_t RESERVED0[50];
__IO uint32_t C0SRCADDR; /*!< (@ 0x40002100) DMA Channel Source Address Register */
__IO uint32_t C0DESTADDR; /*!< (@ 0x40002104) DMA Channel Destination Address Register */
__IO uint32_t C0LLI; /*!< (@ 0x40002108) DMA Channel Linked List Item Register */
__IO uint32_t C0CONTROL; /*!< (@ 0x4000210C) DMA Channel Control Register */
__IO uint32_t C0CONFIG; /*!< (@ 0x40002110) DMA Channel Configuration Register */
__I uint32_t RESERVED1[3];
__IO uint32_t C1SRCADDR; /*!< (@ 0x40002120) DMA Channel Source Address Register */
__IO uint32_t C1DESTADDR; /*!< (@ 0x40002124) DMA Channel Destination Address Register */
__IO uint32_t C1LLI; /*!< (@ 0x40002128) DMA Channel Linked List Item Register */
__IO uint32_t C1CONTROL; /*!< (@ 0x4000212C) DMA Channel Control Register */
__IO uint32_t C1CONFIG; /*!< (@ 0x40002130) DMA Channel Configuration Register */
__I uint32_t RESERVED2[3];
__IO uint32_t C2SRCADDR; /*!< (@ 0x40002140) DMA Channel Source Address Register */
__IO uint32_t C2DESTADDR; /*!< (@ 0x40002144) DMA Channel Destination Address Register */
__IO uint32_t C2LLI; /*!< (@ 0x40002148) DMA Channel Linked List Item Register */
__IO uint32_t C2CONTROL; /*!< (@ 0x4000214C) DMA Channel Control Register */
__IO uint32_t C2CONFIG; /*!< (@ 0x40002150) DMA Channel Configuration Register */
__I uint32_t RESERVED3[3];
__IO uint32_t C3SRCADDR; /*!< (@ 0x40002160) DMA Channel Source Address Register */
__IO uint32_t C3DESTADDR; /*!< (@ 0x40002164) DMA Channel Destination Address Register */
__IO uint32_t C3LLI; /*!< (@ 0x40002168) DMA Channel Linked List Item Register */
__IO uint32_t C3CONTROL; /*!< (@ 0x4000216C) DMA Channel Control Register */
__IO uint32_t C3CONFIG; /*!< (@ 0x40002170) DMA Channel Configuration Register */
__I uint32_t RESERVED4[3];
__IO uint32_t C4SRCADDR; /*!< (@ 0x40002180) DMA Channel Source Address Register */
__IO uint32_t C4DESTADDR; /*!< (@ 0x40002184) DMA Channel Destination Address Register */
__IO uint32_t C4LLI; /*!< (@ 0x40002188) DMA Channel Linked List Item Register */
__IO uint32_t C4CONTROL; /*!< (@ 0x4000218C) DMA Channel Control Register */
__IO uint32_t C4CONFIG; /*!< (@ 0x40002190) DMA Channel Configuration Register */
__I uint32_t RESERVED5[3];
__IO uint32_t C5SRCADDR; /*!< (@ 0x400021A0) DMA Channel Source Address Register */
__IO uint32_t C5DESTADDR; /*!< (@ 0x400021A4) DMA Channel Destination Address Register */
__IO uint32_t C5LLI; /*!< (@ 0x400021A8) DMA Channel Linked List Item Register */
__IO uint32_t C5CONTROL; /*!< (@ 0x400021AC) DMA Channel Control Register */
__IO uint32_t C5CONFIG; /*!< (@ 0x400021B0) DMA Channel Configuration Register */
__I uint32_t RESERVED6[3];
__IO uint32_t C6SRCADDR; /*!< (@ 0x400021C0) DMA Channel Source Address Register */
__IO uint32_t C6DESTADDR; /*!< (@ 0x400021C4) DMA Channel Destination Address Register */
__IO uint32_t C6LLI; /*!< (@ 0x400021C8) DMA Channel Linked List Item Register */
__IO uint32_t C6CONTROL; /*!< (@ 0x400021CC) DMA Channel Control Register */
__IO uint32_t C6CONFIG; /*!< (@ 0x400021D0) DMA Channel Configuration Register */
__I uint32_t RESERVED7[3];
__IO uint32_t C7SRCADDR; /*!< (@ 0x400021E0) DMA Channel Source Address Register */
__IO uint32_t C7DESTADDR; /*!< (@ 0x400021E4) DMA Channel Destination Address Register */
__IO uint32_t C7LLI; /*!< (@ 0x400021E8) DMA Channel Linked List Item Register */
__IO uint32_t C7CONTROL; /*!< (@ 0x400021EC) DMA Channel Control Register */
__IO uint32_t C7CONFIG; /*!< (@ 0x400021F0) DMA Channel Configuration Register */
} LPC_GPDMA_Type;
// ------------------------------------------------------------------------------------------------
// ----- SDMMC -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx SD/MMC Modification date=n/a Major revision=n/a Minor revision=n/a (SDMMC)
*/
typedef struct { /*!< (@ 0x40004000) SDMMC Structure */
__IO uint32_t CTRL; /*!< (@ 0x40004000) Control Register */
__IO uint32_t PWREN; /*!< (@ 0x40004004) Power Enable Register */
__IO uint32_t CLKDIV; /*!< (@ 0x40004008) Clock Divider Register */
__IO uint32_t CLKSRC; /*!< (@ 0x4000400C) SD Clock Source Register */
__IO uint32_t CLKENA; /*!< (@ 0x40004010) Clock Enable Register */
__IO uint32_t TMOUT; /*!< (@ 0x40004014) Timeout Register */
__IO uint32_t CTYPE; /*!< (@ 0x40004018) Card Type Register */
__IO uint32_t BLKSIZ; /*!< (@ 0x4000401C) Block Size Register */
__IO uint32_t BYTCNT; /*!< (@ 0x40004020) Byte Count Register */
__IO uint32_t INTMASK; /*!< (@ 0x40004024) Interrupt Mask Register */
__IO uint32_t CMDARG; /*!< (@ 0x40004028) Command Argument Register */
__IO uint32_t CMD; /*!< (@ 0x4000402C) Command Register */
__I uint32_t RESP0; /*!< (@ 0x40004030) Response Register 0 */
__I uint32_t RESP1; /*!< (@ 0x40004034) Response Register 1 */
__I uint32_t RESP2; /*!< (@ 0x40004038) Response Register 2 */
__I uint32_t RESP3; /*!< (@ 0x4000403C) Response Register 3 */
__I uint32_t MINTSTS; /*!< (@ 0x40004040) Masked Interrupt Status Register */
__IO uint32_t RINTSTS; /*!< (@ 0x40004044) Raw Interrupt Status Register */
__I uint32_t STATUS; /*!< (@ 0x40004048) Status Register */
__IO uint32_t FIFOTH; /*!< (@ 0x4000404C) FIFO Threshold Watermark Register */
__I uint32_t CDETECT; /*!< (@ 0x40004050) Card Detect Register */
__I uint32_t WRTPRT; /*!< (@ 0x40004054) Write Protect Register */
__IO uint32_t GPIO; /*!< (@ 0x40004058) General Purpose Input/Output Register */
__I uint32_t TCBCNT; /*!< (@ 0x4000405C) Transferred CIU Card Byte Count Register */
__I uint32_t TBBCNT; /*!< (@ 0x40004060) Transferred Host to BIU-FIFO Byte Count Register */
__IO uint32_t DEBNCE; /*!< (@ 0x40004064) Debounce Count Register */
__IO uint32_t USRID; /*!< (@ 0x40004068) User ID Register */
__I uint32_t VERID; /*!< (@ 0x4000406C) Version ID Register */
__I uint32_t RESERVED0;
__IO uint32_t UHS_REG; /*!< (@ 0x40004074) UHS-1 Register */
__IO uint32_t RST_N; /*!< (@ 0x40004078) Hardware Reset */
__I uint32_t RESERVED1;
__IO uint32_t BMOD; /*!< (@ 0x40004080) Bus Mode Register */
__O uint32_t PLDMND; /*!< (@ 0x40004084) Poll Demand Register */
__IO uint32_t DBADDR; /*!< (@ 0x40004088) Descriptor List Base Address Register */
__IO uint32_t IDSTS; /*!< (@ 0x4000408C) Internal DMAC Status Register */
__IO uint32_t IDINTEN; /*!< (@ 0x40004090) Internal DMAC Interrupt Enable Register */
__I uint32_t DSCADDR; /*!< (@ 0x40004094) Current Host Descriptor Address Register */
__I uint32_t BUFADDR; /*!< (@ 0x40004098) Current Buffer Descriptor Address Register */
} LPC_SDMMC_Type;
// ------------------------------------------------------------------------------------------------
// ----- EMC -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx External Memory Controller (EMC) Modification date=1/19/2011 Major revision=0 Minor revision=7 (EMC)
*/
typedef struct { /*!< (@ 0x40005000) EMC Structure */
__IO uint32_t CONTROL; /*!< (@ 0x40005000) Controls operation of the memory controller. */
__I uint32_t STATUS; /*!< (@ 0x40005004) Provides EMC status information. */
__IO uint32_t CONFIG; /*!< (@ 0x40005008) Configures operation of the memory controller. */
__I uint32_t RESERVED0[5];
__IO uint32_t DYNAMICCONTROL; /*!< (@ 0x40005020) Controls dynamic memory operation. */
__IO uint32_t DYNAMICREFRESH; /*!< (@ 0x40005024) Configures dynamic memory refresh operation. */
__IO uint32_t DYNAMICREADCONFIG; /*!< (@ 0x40005028) Configures the dynamic memory read strategy. */
__I uint32_t RESERVED1;
__IO uint32_t DYNAMICRP; /*!< (@ 0x40005030) Selects the precharge command period. */
__IO uint32_t DYNAMICRAS; /*!< (@ 0x40005034) Selects the active to precharge command period. */
__IO uint32_t DYNAMICSREX; /*!< (@ 0x40005038) Selects the self-refresh exit time. */
__IO uint32_t DYNAMICAPR; /*!< (@ 0x4000503C) Selects the last-data-out to active command time. */
__IO uint32_t DYNAMICDAL; /*!< (@ 0x40005040) Selects the data-in to active command time. */
__IO uint32_t DYNAMICWR; /*!< (@ 0x40005044) Selects the write recovery time. */
__IO uint32_t DYNAMICRC; /*!< (@ 0x40005048) Selects the active to active command period. */
__IO uint32_t DYNAMICRFC; /*!< (@ 0x4000504C) Selects the auto-refresh period. */
__IO uint32_t DYNAMICXSR; /*!< (@ 0x40005050) Selects the exit self-refresh to active command time. */
__IO uint32_t DYNAMICRRD; /*!< (@ 0x40005054) Selects the active bank A to active bank B latency. */
__IO uint32_t DYNAMICMRD; /*!< (@ 0x40005058) Selects the load mode register to active command time. */
__I uint32_t RESERVED2[9];
__IO uint32_t STATICEXTENDEDWAIT; /*!< (@ 0x40005080) Selects time for long static memory read and write transfers. */
__I uint32_t RESERVED3[31];
__IO uint32_t DYNAMICCONFIG0; /*!< (@ 0x40005100) Selects the configuration information for dynamic memory chip select n. */
__IO uint32_t DYNAMICRASCAS0; /*!< (@ 0x40005104) Selects the RAS and CAS latencies for dynamic memory chip select n. */
__I uint32_t RESERVED4[6];
__IO uint32_t DYNAMICCONFIG1; /*!< (@ 0x40005120) Selects the configuration information for dynamic memory chip select n. */
__IO uint32_t DYNAMICRASCAS1; /*!< (@ 0x40005124) Selects the RAS and CAS latencies for dynamic memory chip select n. */
__I uint32_t RESERVED5[6];
__IO uint32_t DYNAMICCONFIG2; /*!< (@ 0x40005140) Selects the configuration information for dynamic memory chip select n. */
__IO uint32_t DYNAMICRASCAS2; /*!< (@ 0x40005144) Selects the RAS and CAS latencies for dynamic memory chip select n. */
__I uint32_t RESERVED6[6];
__IO uint32_t DYNAMICCONFIG3; /*!< (@ 0x40005160) Selects the configuration information for dynamic memory chip select n. */
__IO uint32_t DYNAMICRASCAS3; /*!< (@ 0x40005164) Selects the RAS and CAS latencies for dynamic memory chip select n. */
__I uint32_t RESERVED7[38];
__IO uint32_t STATICCONFIG0; /*!< (@ 0x40005200) Selects the memory configuration for static chip select n. */
__IO uint32_t STATICWAITWEN0; /*!< (@ 0x40005204) Selects the delay from chip select n to write enable. */
__IO uint32_t STATICWAITOEN0; /*!< (@ 0x40005208) Selects the delay from chip select n or address change, whichever is later, to output enable. */
__IO uint32_t STATICWAITRD0; /*!< (@ 0x4000520C) Selects the delay from chip select n to a read access. */
__IO uint32_t STATICWAITPAG0; /*!< (@ 0x40005210) Selects the delay for asynchronous page mode sequential accesses for chip select n. */
__IO uint32_t STATICWAITWR0; /*!< (@ 0x40005214) Selects the delay from chip select n to a write access. */
__IO uint32_t STATICWAITTURN0; /*!< (@ 0x40005218) Selects bus turnaround cycles */
__I uint32_t RESERVED8;
__IO uint32_t STATICCONFIG1; /*!< (@ 0x40005220) Selects the memory configuration for static chip select n. */
__IO uint32_t STATICWAITWEN1; /*!< (@ 0x40005224) Selects the delay from chip select n to write enable. */
__IO uint32_t STATICWAITOEN1; /*!< (@ 0x40005228) Selects the delay from chip select n or address change, whichever is later, to output enable. */
__IO uint32_t STATICWAITRD1; /*!< (@ 0x4000522C) Selects the delay from chip select n to a read access. */
__IO uint32_t STATICWAITPAG1; /*!< (@ 0x40005230) Selects the delay for asynchronous page mode sequential accesses for chip select n. */
__IO uint32_t STATICWAITWR1; /*!< (@ 0x40005234) Selects the delay from chip select n to a write access. */
__IO uint32_t STATICWAITTURN1; /*!< (@ 0x40005238) Selects bus turnaround cycles */
__I uint32_t RESERVED9;
__IO uint32_t STATICCONFIG2; /*!< (@ 0x40005240) Selects the memory configuration for static chip select n. */
__IO uint32_t STATICWAITWEN2; /*!< (@ 0x40005244) Selects the delay from chip select n to write enable. */
__IO uint32_t STATICWAITOEN2; /*!< (@ 0x40005248) Selects the delay from chip select n or address change, whichever is later, to output enable. */
__IO uint32_t STATICWAITRD2; /*!< (@ 0x4000524C) Selects the delay from chip select n to a read access. */
__IO uint32_t STATICWAITPAG2; /*!< (@ 0x40005250) Selects the delay for asynchronous page mode sequential accesses for chip select n. */
__IO uint32_t STATICWAITWR2; /*!< (@ 0x40005254) Selects the delay from chip select n to a write access. */
__IO uint32_t STATICWAITTURN2; /*!< (@ 0x40005258) Selects bus turnaround cycles */
__I uint32_t RESERVED10;
__IO uint32_t STATICCONFIG3; /*!< (@ 0x40005260) Selects the memory configuration for static chip select n. */
__IO uint32_t STATICWAITWEN3; /*!< (@ 0x40005264) Selects the delay from chip select n to write enable. */
__IO uint32_t STATICWAITOEN3; /*!< (@ 0x40005268) Selects the delay from chip select n or address change, whichever is later, to output enable. */
__IO uint32_t STATICWAITRD3; /*!< (@ 0x4000526C) Selects the delay from chip select n to a read access. */
__IO uint32_t STATICWAITPAG3; /*!< (@ 0x40005270) Selects the delay for asynchronous page mode sequential accesses for chip select n. */
__IO uint32_t STATICWAITWR3; /*!< (@ 0x40005274) Selects the delay from chip select n to a write access. */
__IO uint32_t STATICWAITTURN3; /*!< (@ 0x40005278) Selects bus turnaround cycles */
} LPC_EMC_Type;
// ------------------------------------------------------------------------------------------------
// ----- USB0 -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx USB0 Host/Device/OTG controller Modification date=1/19/2011 Major revision=0 Minor revision=7 (USB0)
*/
typedef struct { /*!< (@ 0x40006000) USB0 Structure */
__I uint32_t RESERVED0[64];
__I uint32_t CAPLENGTH; /*!< (@ 0x40006100) Capability register length */
__I uint32_t HCSPARAMS; /*!< (@ 0x40006104) Host controller structural parameters */
__I uint32_t HCCPARAMS; /*!< (@ 0x40006108) Host controller capability parameters */
__I uint32_t RESERVED1[5];
__I uint32_t DCIVERSION; /*!< (@ 0x40006120) Device interface version number */
__I uint32_t RESERVED2[7];
union {
__IO uint32_t USBCMD_H; /*!< (@ 0x40006140) USB command (host mode) */
__IO uint32_t USBCMD_D; /*!< (@ 0x40006140) USB command (device mode) */
};
union {
__IO uint32_t USBSTS_H; /*!< (@ 0x40006144) USB status (host mode) */
__IO uint32_t USBSTS_D; /*!< (@ 0x40006144) USB status (device mode) */
};
union {
__IO uint32_t USBINTR_H; /*!< (@ 0x40006148) USB interrupt enable (host mode) */
__IO uint32_t USBINTR_D; /*!< (@ 0x40006148) USB interrupt enable (device mode) */
};
union {
__IO uint32_t FRINDEX_H; /*!< (@ 0x4000614C) USB frame index (host mode) */
__IO uint32_t FRINDEX_D; /*!< (@ 0x4000614C) USB frame index (device mode) */
};
__I uint32_t RESERVED3;
union {
__IO uint32_t PERIODICLISTBASE; /*!< (@ 0x40006154) Frame list base address (host mode) */
__IO uint32_t DEVICEADDR; /*!< (@ 0x40006154) USB device address (device mode) */
};
union {
__IO uint32_t ASYNCLISTADDR; /*!< (@ 0x40006158) Address of endpoint list in memory */
__IO uint32_t ENDPOINTLISTADDR; /*!< (@ 0x40006158) Address of endpoint list in memory */
};
__IO uint32_t TTCTRL; /*!< (@ 0x4000615C) Asynchronous buffer status for embedded TT (host mode) */
__IO uint32_t BURSTSIZE; /*!< (@ 0x40006160) Programmable burst size */
__IO uint32_t TXFILLTUNING; /*!< (@ 0x40006164) Host transmit pre-buffer packet tuning (host mode) */
__I uint32_t RESERVED4[3];
__IO uint32_t BINTERVAL; /*!< (@ 0x40006174) Length of virtual frame */
__IO uint32_t ENDPTNAK; /*!< (@ 0x40006178) Endpoint NAK (device mode) */
__IO uint32_t ENDPTNAKEN; /*!< (@ 0x4000617C) Endpoint NAK Enable (device mode) */
__I uint32_t RESERVED5;
union {
__IO uint32_t PORTSC1_H; /*!< (@ 0x40006184) Port 1 status/control (host mode) */
__IO uint32_t PORTSC1_D; /*!< (@ 0x40006184) Port 1 status/control (device mode) */
};
__I uint32_t RESERVED6[7];
__IO uint32_t OTGSC; /*!< (@ 0x400061A4) OTG status and control */
union {
__IO uint32_t USBMODE_H; /*!< (@ 0x400061A8) USB mode (host mode) */
__IO uint32_t USBMODE_D; /*!< (@ 0x400061A8) USB device mode (device mode) */
};
__IO uint32_t ENDPTSETUPSTAT; /*!< (@ 0x400061AC) Endpoint setup status */
__IO uint32_t ENDPTPRIME; /*!< (@ 0x400061B0) Endpoint initialization */
__IO uint32_t ENDPTFLUSH; /*!< (@ 0x400061B4) Endpoint de-initialization */
__I uint32_t ENDPTSTAT; /*!< (@ 0x400061B8) Endpoint status */
__IO uint32_t ENDPTCOMPLETE; /*!< (@ 0x400061BC) Endpoint complete */
__IO uint32_t ENDPTCTRL0; /*!< (@ 0x400061C0) Endpoint control 0 */
__IO uint32_t ENDPTCTRL1; /*!< (@ 0x400061C4) Endpoint control */
__IO uint32_t ENDPTCTRL2; /*!< (@ 0x400061C8) Endpoint control */
__IO uint32_t ENDPTCTRL3; /*!< (@ 0x400061CC) Endpoint control */
__IO uint32_t ENDPTCTRL4; /*!< (@ 0x400061D0) Endpoint control */
__IO uint32_t ENDPTCTRL5; /*!< (@ 0x400061D4) Endpoint control */
} LPC_USB0_Type;
// ------------------------------------------------------------------------------------------------
// ----- USB1 -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx USB1 Host/Device controller Modification date=1/19/2011 Major revision=0 Minor revision=7 (USB1)
*/
typedef struct { /*!< (@ 0x40007000) USB1 Structure */
__I uint32_t RESERVED0[64];
__I uint32_t CAPLENGTH; /*!< (@ 0x40007100) Capability register length */
__I uint32_t HCSPARAMS; /*!< (@ 0x40007104) Host controller structural parameters */
__I uint32_t HCCPARAMS; /*!< (@ 0x40007108) Host controller capability parameters */
__I uint32_t RESERVED1[5];
__I uint32_t DCIVERSION; /*!< (@ 0x40007120) Device interface version number */
__I uint32_t RESERVED2[7];
union {
__IO uint32_t USBCMD_H; /*!< (@ 0x40007140) USB command (host mode) */
__IO uint32_t USBCMD_D; /*!< (@ 0x40007140) USB command (device mode) */
};
union {
__IO uint32_t USBSTS_H; /*!< (@ 0x40007144) USB status (host mode) */
__IO uint32_t USBSTS_D; /*!< (@ 0x40007144) USB status (device mode) */
};
union {
__IO uint32_t USBINTR_H; /*!< (@ 0x40007148) USB interrupt enable (host mode) */
__IO uint32_t USBINTR_D; /*!< (@ 0x40007148) USB interrupt enable (device mode) */
};
union {
__IO uint32_t FRINDEX_H; /*!< (@ 0x4000714C) USB frame index (host mode) */
__I uint32_t FRINDEX_D; /*!< (@ 0x4000714C) USB frame index (device mode) */
};
__I uint32_t RESERVED3;
union {
__IO uint32_t PERIODICLISTBASE; /*!< (@ 0x40007154) Frame list base address */
__IO uint32_t DEVICEADDR; /*!< (@ 0x40007154) USB device address */
};
union {
__IO uint32_t ASYNCLISTADDR; /*!< (@ 0x40007158) Address of endpoint list in memory (host mode) */
__IO uint32_t ENDPOINTLISTADDR; /*!< (@ 0x40007158) Address of endpoint list in memory (device mode) */
};
__IO uint32_t TTCTRL; /*!< (@ 0x4000715C) Asynchronous buffer status for embedded TT (host mode) */
__IO uint32_t BURSTSIZE; /*!< (@ 0x40007160) Programmable burst size */
__IO uint32_t TXFILLTUNING; /*!< (@ 0x40007164) Host transmit pre-buffer packet tuning (host mode) */
__I uint32_t RESERVED4[2];
__IO uint32_t ULPIVIEWPORT; /*!< (@ 0x40007170) ULPI viewport */
__IO uint32_t BINTERVAL; /*!< (@ 0x40007174) Length of virtual frame */
__IO uint32_t ENDPTNAK; /*!< (@ 0x40007178) Endpoint NAK (device mode) */
__IO uint32_t ENDPTNAKEN; /*!< (@ 0x4000717C) Endpoint NAK Enable (device mode) */
__I uint32_t RESERVED5;
union {
__IO uint32_t PORTSC1_H; /*!< (@ 0x40007184) Port 1 status/control (host mode) */
__IO uint32_t PORTSC1_D; /*!< (@ 0x40007184) Port 1 status/control (device mode) */
};
__I uint32_t RESERVED6[8];
union {
__IO uint32_t USBMODE_H; /*!< (@ 0x400071A8) USB mode (host mode) */
__IO uint32_t USBMODE_D; /*!< (@ 0x400071A8) USB mode (device mode) */
};
__IO uint32_t ENDPTSETUPSTAT; /*!< (@ 0x400071AC) Endpoint setup status */
__IO uint32_t ENDPTPRIME; /*!< (@ 0x400071B0) Endpoint initialization */
__IO uint32_t ENDPTFLUSH; /*!< (@ 0x400071B4) Endpoint de-initialization */
__I uint32_t ENDPTSTAT; /*!< (@ 0x400071B8) Endpoint status */
__IO uint32_t ENDPTCOMPLETE; /*!< (@ 0x400071BC) Endpoint complete */
__IO uint32_t ENDPTCTRL0; /*!< (@ 0x400071C0) Endpoint control 0 */
__IO uint32_t ENDPTCTRL1; /*!< (@ 0x400071C4) Endpoint control */
__IO uint32_t ENDPTCTRL2; /*!< (@ 0x400071C8) Endpoint control */
__IO uint32_t ENDPTCTRL3; /*!< (@ 0x400071CC) Endpoint control */
} LPC_USB1_Type;
// ------------------------------------------------------------------------------------------------
// ----- LCD -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx LCD Modification date=1/19/2011 Major revision=0 Minor revision=7 (LCD)
*/
typedef struct { /*!< (@ 0x40008000) LCD Structure */
__IO uint32_t TIMH; /*!< (@ 0x40008000) Horizontal Timing Control register */
__IO uint32_t TIMV; /*!< (@ 0x40008004) Vertical Timing Control register */
__IO uint32_t POL; /*!< (@ 0x40008008) Clock and Signal Polarity Control register */
__IO uint32_t LE; /*!< (@ 0x4000800C) Line End Control register */
__IO uint32_t UPBASE; /*!< (@ 0x40008010) Upper Panel Frame Base Address register */
__IO uint32_t LPBASE; /*!< (@ 0x40008014) Lower Panel Frame Base Address register */
__IO uint32_t CTRL; /*!< (@ 0x40008018) LCD Control register */
__IO uint32_t INTMSK; /*!< (@ 0x4000801C) Interrupt Mask register */
__I uint32_t INTRAW; /*!< (@ 0x40008020) Raw Interrupt Status register */
__I uint32_t INTSTAT; /*!< (@ 0x40008024) Masked Interrupt Status register */
__O uint32_t INTCLR; /*!< (@ 0x40008028) Interrupt Clear register */
__I uint32_t UPCURR; /*!< (@ 0x4000802C) Upper Panel Current Address Value register */
__I uint32_t LPCURR; /*!< (@ 0x40008030) Lower Panel Current Address Value register */
__I uint32_t RESERVED0[115];
__IO uint32_t PAL[256]; /*!< (@ 0x40008200) 256x16-bit Color Palette registers */
__I uint32_t RESERVED1[128];
__IO uint32_t CRSR_IMG[256]; /*!< (@ 0x40008800) Cursor Image registers */
__IO uint32_t CRSR_CTRL; /*!< (@ 0x40008C00) Cursor Control register */
__IO uint32_t CRSR_CFG; /*!< (@ 0x40008C04) Cursor Configuration register */
__IO uint32_t CRSR_PAL0; /*!< (@ 0x40008C08) Cursor Palette register 0 */
__IO uint32_t CRSR_PAL1; /*!< (@ 0x40008C0C) Cursor Palette register 1 */
__IO uint32_t CRSR_XY; /*!< (@ 0x40008C10) Cursor XY Position register */
__IO uint32_t CRSR_CLIP; /*!< (@ 0x40008C14) Cursor Clip Position register */
__I uint32_t RESERVED2[2];
__IO uint32_t CRSR_INTMSK; /*!< (@ 0x40008C20) Cursor Interrupt Mask register */
__O uint32_t CRSR_INTCLR; /*!< (@ 0x40008C24) Cursor Interrupt Clear register */
__I uint32_t CRSR_INTRAW; /*!< (@ 0x40008C28) Cursor Raw Interrupt Status register */
__I uint32_t CRSR_INTSTAT; /*!< (@ 0x40008C2C) Cursor Masked Interrupt Status register */
} LPC_LCD_Type;
// ------------------------------------------------------------------------------------------------
// ----- ETHERNET -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Ethernet Modification date=1/20/2011 Major revision=0 Minor revision=7 (ETHERNET)
*/
typedef struct { /*!< (@ 0x40010000) ETHERNET Structure */
__IO uint32_t MAC_CONFIG; /*!< (@ 0x40010000) MAC configuration register */
__IO uint32_t MAC_FRAME_FILTER; /*!< (@ 0x40010004) MAC frame filter */
__IO uint32_t MAC_HASHTABLE_HIGH; /*!< (@ 0x40010008) Hash table high register */
__IO uint32_t MAC_HASHTABLE_LOW; /*!< (@ 0x4001000C) Hash table low register */
__IO uint32_t MAC_MII_ADDR; /*!< (@ 0x40010010) MII address register */
__IO uint32_t MAC_MII_DATA; /*!< (@ 0x40010014) MII data register */
__IO uint32_t MAC_FLOW_CTRL; /*!< (@ 0x40010018) Flow control register */
__IO uint32_t MAC_VLAN_TAG; /*!< (@ 0x4001001C) VLAN tag register */
__I uint32_t RESERVED0;
__IO uint32_t MAC_DEBUG; /*!< (@ 0x40010024) Debug register */
__IO uint32_t MAC_RWAKE_FRFLT; /*!< (@ 0x40010028) Remote wake-up frame filter */
__IO uint32_t MAC_PMT_CTRL_STAT; /*!< (@ 0x4001002C) PMT control and status */
__I uint32_t RESERVED1[2];
__IO uint32_t MAC_INTR; /*!< (@ 0x40010038) Interrupt status register */
__IO uint32_t MAC_INTR_MASK; /*!< (@ 0x4001003C) Interrupt mask register */
__IO uint32_t MAC_ADDR0_HIGH; /*!< (@ 0x40010040) MAC address 0 high register */
__IO uint32_t MAC_ADDR0_LOW; /*!< (@ 0x40010044) MAC address 0 low register */
__I uint32_t RESERVED2[430];
__IO uint32_t MAC_TIMESTP_CTRL; /*!< (@ 0x40010700) Time stamp control register */
__I uint32_t RESERVED3[575];
__IO uint32_t DMA_BUS_MODE; /*!< (@ 0x40011000) Bus Mode Register */
__IO uint32_t DMA_TRANS_POLL_DEMAND; /*!< (@ 0x40011004) Transmit poll demand register */
__IO uint32_t DMA_REC_POLL_DEMAND; /*!< (@ 0x40011008) Receive poll demand register */
__IO uint32_t DMA_REC_DES_ADDR; /*!< (@ 0x4001100C) Receive descriptor list address register */
__IO uint32_t DMA_TRANS_DES_ADDR; /*!< (@ 0x40011010) Transmit descriptor list address register */
__IO uint32_t DMA_STAT; /*!< (@ 0x40011014) Status register */
__IO uint32_t DMA_OP_MODE; /*!< (@ 0x40011018) Operation mode register */
__IO uint32_t DMA_INT_EN; /*!< (@ 0x4001101C) Interrupt enable register */
__IO uint32_t DMA_MFRM_BUFOF; /*!< (@ 0x40011020) Missed frame and buffer overflow register */
__IO uint32_t DMA_REC_INT_WDT; /*!< (@ 0x40011024) Receive interrupt watchdog timer register */
__I uint32_t RESERVED4[8];
__IO uint32_t DMA_CURHOST_TRANS_DES; /*!< (@ 0x40011048) Current host transmit descriptor register */
__IO uint32_t DMA_CURHOST_REC_DES; /*!< (@ 0x4001104C) Current host receive descriptor register */
__IO uint32_t DMA_CURHOST_TRANS_BUF; /*!< (@ 0x40011050) Current host transmit buffer address register */
__IO uint32_t DMA_CURHOST_REC_BUF; /*!< (@ 0x40011054) Current host receive buffer address register */
} LPC_ETHERNET_Type;
// ------------------------------------------------------------------------------------------------
// ----- ATIMER -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Alarm timer Modification date=1/7/2011 Major revision=0 Minor revision=6 (ATIMER)
*/
typedef struct { /*!< (@ 0x40040000) ATIMER Structure */
__IO uint32_t DOWNCOUNTER; /*!< (@ 0x40040000) Downcounter register */
__IO uint32_t PRESET; /*!< (@ 0x40040004) Preset value register */
__I uint32_t RESERVED0[1012];
__O uint32_t CLR_EN; /*!< (@ 0x40040FD8) Interrupt clear enable register */
__O uint32_t SET_EN; /*!< (@ 0x40040FDC) Interrupt set enable register */
__I uint32_t STATUS; /*!< (@ 0x40040FE0) Status register */
__I uint32_t ENABLE; /*!< (@ 0x40040FE4) Enable register */
__O uint32_t CLR_STAT; /*!< (@ 0x40040FE8) Clear register */
__O uint32_t SET_STAT; /*!< (@ 0x40040FEC) Set register */
} LPC_ATIMER_Type;
// ------------------------------------------------------------------------------------------------
// ----- REGFILE -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx rtc/REGFILE date=1/20/2011 Major revision=0 Minor revision=7 (REGFILE)
*/
typedef struct { /*!< (@ 0x40041000) REGFILE Structure */
__IO uint32_t REGFILE[64]; /*!< (@ 0x40041000) General purpose storage register */
} LPC_REGFILE_Type;
// ------------------------------------------------------------------------------------------------
// ----- PMC -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Power Management Controller (PMC) Modification date=1/20/2011 Major revision=0 Minor revision=7 (PMC)
*/
typedef struct { /*!< (@ 0x40042000) PMC Structure */
__IO uint32_t PD0_SLEEP0_HW_ENA; /*!< (@ 0x40042000) Hardware sleep event enable register */
__I uint32_t RESERVED0[6];
__IO uint32_t PD0_SLEEP0_MODE; /*!< (@ 0x4004201C) Sleep power mode register */
} LPC_PMC_Type;
// ------------------------------------------------------------------------------------------------
// ----- CREG -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Configuration Registers (CREG) Modification date=8/19/2011 Major revision=0 Minor revision=14 (CREG)
*/
typedef struct { /*!< (@ 0x40043000) CREG Structure */
__I uint32_t IRCTRM; /*!< (@ 0x40043000) IRC trim register */
__IO uint32_t CREG0; /*!< (@ 0x40043004) Chip configuration register 32 kHz oscillator output and BOD control register. */
__IO uint32_t PMUCON; /*!< (@ 0x40043008) Power mode control register. */
__I uint32_t RESERVED0[61];
__IO uint32_t M3MEMMAP; /*!< (@ 0x40043100) ARM Cortex-M3 memory mapping */
__I uint32_t RESERVED1[5];
__IO uint32_t CREG5; /*!< (@ 0x40043118) Chip configuration register 5. Controls JTAG access. */
__IO uint32_t DMAMUX; /*!< (@ 0x4004311C) DMA muxing control */
__I uint32_t RESERVED2[2];
__IO uint32_t ETBCFG; /*!< (@ 0x40043128) ETB RAM configuration */
__IO uint32_t CREG6; /*!< (@ 0x4004312C) Chip configuration register 6 */
__I uint32_t RESERVED3[52];
__I uint32_t CHIPID; /*!< (@ 0x40043200) Part ID */
} LPC_CREG_Type;
// ------------------------------------------------------------------------------------------------
// ----- EVENTROUTER -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Event router Modification date=1/20/2011 Major revision=0 Minor revision=7 (EVENTROUTER)
*/
typedef struct { /*!< (@ 0x40044000) EVENTROUTER Structure */
__IO uint32_t HILO; /*!< (@ 0x40044000) Level configuration register */
__IO uint32_t EDGE; /*!< (@ 0x40044004) Edge configuration */
__I uint32_t RESERVED0[1012];
__O uint32_t CLR_EN; /*!< (@ 0x40044FD8) Event clear enable register */
__O uint32_t SET_EN; /*!< (@ 0x40044FDC) Event set enable register */
__I uint32_t STATUS; /*!< (@ 0x40044FE0) Status register */
__I uint32_t ENABLE; /*!< (@ 0x40044FE4) Enable register */
__O uint32_t CLR_STAT; /*!< (@ 0x40044FE8) Clear register */
__O uint32_t SET_STAT; /*!< (@ 0x40044FEC) Set register */
} LPC_EVENTROUTER_Type;
// ------------------------------------------------------------------------------------------------
// ----- RTC -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Real-Time Clock (RTC) Modification date=1/20/2011 Major revision=0 Minor revision=7 (RTC)
*/
typedef struct { /*!< (@ 0x40046000) RTC Structure */
__O uint32_t ILR; /*!< (@ 0x40046000) Interrupt Location Register */
__I uint32_t RESERVED0;
__IO uint32_t CCR; /*!< (@ 0x40046008) Clock Control Register */
__IO uint32_t CIIR; /*!< (@ 0x4004600C) Counter Increment Interrupt Register */
__IO uint32_t AMR; /*!< (@ 0x40046010) Alarm Mask Register */
__I uint32_t CTIME0; /*!< (@ 0x40046014) Consolidated Time Register 0 */
__I uint32_t CTIME1; /*!< (@ 0x40046018) Consolidated Time Register 1 */
__I uint32_t CTIME2; /*!< (@ 0x4004601C) Consolidated Time Register 2 */
__IO uint32_t SEC; /*!< (@ 0x40046020) Seconds Register */
__IO uint32_t MIN; /*!< (@ 0x40046024) Minutes Register */
__IO uint32_t HRS; /*!< (@ 0x40046028) Hours Register */
__IO uint32_t DOM; /*!< (@ 0x4004602C) Day of Month Register */
__IO uint32_t DOW; /*!< (@ 0x40046030) Day of Week Register */
__IO uint32_t DOY; /*!< (@ 0x40046034) Day of Year Register */
__IO uint32_t MONTH; /*!< (@ 0x40046038) Months Register */
__IO uint32_t YEAR; /*!< (@ 0x4004603C) Years Register */
__IO uint32_t CALIBRATION; /*!< (@ 0x40046040) Calibration Value Register */
__I uint32_t RESERVED1[7];
__IO uint32_t ASEC; /*!< (@ 0x40046060) Alarm value for Seconds */
__IO uint32_t AMIN; /*!< (@ 0x40046064) Alarm value for Minutes */
__IO uint32_t AHRS; /*!< (@ 0x40046068) Alarm value for Hours */
__IO uint32_t ADOM; /*!< (@ 0x4004606C) Alarm value for Day of Month */
__IO uint32_t ADOW; /*!< (@ 0x40046070) Alarm value for Day of Week */
__IO uint32_t ADOY; /*!< (@ 0x40046074) Alarm value for Day of Year */
__IO uint32_t AMON; /*!< (@ 0x40046078) Alarm value for Months */
__IO uint32_t AYRS; /*!< (@ 0x4004607C) Alarm value for Year */
} LPC_RTC_Type;
// ------------------------------------------------------------------------------------------------
// ----- CGU -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10462 Chapter title=LPC18xx Clock Generation Unit (CGU) Modification date=6/1/2011 Major revision=0 Minor revision=1 (CGU)
*/
typedef struct { /*!< (@ 0x40050000) CGU Structure */
__I uint32_t RESERVED0[5];
__IO uint32_t FREQ_MON; /*!< (@ 0x40050014) Frequency monitor register */
__IO uint32_t XTAL_OSC_CTRL; /*!< (@ 0x40050018) Crystal oscillator control register */
__I uint32_t PLL0USB_STAT; /*!< (@ 0x4005001C) PLL0 (USB) status register */
__IO uint32_t PLL0USB_CTRL; /*!< (@ 0x40050020) PLL0 (USB) control register */
__IO uint32_t PLL0USB_MDIV; /*!< (@ 0x40050024) PLL0 (USB) M-divider register */
__IO uint32_t PLL0USB_NP_DIV; /*!< (@ 0x40050028) PLL0 (USB) N/P-divider register */
__I uint32_t PLL0AUDIO_STAT; /*!< (@ 0x4005002C) PLL0 (audio) status register */
__IO uint32_t PLL0AUDIO_CTRL; /*!< (@ 0x40050030) PLL0 (audio) control register */
__IO uint32_t PLL0AUDIO_MDIV; /*!< (@ 0x40050034) PLL0 (audio) M-divider register */
__IO uint32_t PLL0AUDIO_NP_DIV; /*!< (@ 0x40050038) PLL0 (audio) N/P-divider register */
__IO uint32_t PLL0AUDIO_FRAC; /*!< (@ 0x4005003C) PLL0 (audio) */
__I uint32_t PLL1_STAT; /*!< (@ 0x40050040) PLL1 status register */
__IO uint32_t PLL1_CTRL; /*!< (@ 0x40050044) PLL1 control register */
__IO uint32_t IDIVA_CTRL; /*!< (@ 0x40050048) Integer divider A control register */
__IO uint32_t IDIVB_CTRL; /*!< (@ 0x4005004C) Integer divider B control register */
__IO uint32_t IDIVC_CTRL; /*!< (@ 0x40050050) Integer divider C control register */
__IO uint32_t IDIVD_CTRL; /*!< (@ 0x40050054) Integer divider D control register */
__IO uint32_t IDIVE_CTRL; /*!< (@ 0x40050058) Integer divider E control register */
__IO uint32_t BASE_SAFE_CLK; /*!< (@ 0x4005005C) Output stage 0 control register for base clock BASE_SAFE_CLK */
__IO uint32_t BASE_USB0_CLK; /*!< (@ 0x40050060) Output stage 1 control register for base clock BASE_USB0_CLK */
__IO uint32_t BASE_PERIPH_CLK; /*!< (@ 0x40050064) Output stage 2 control register for base clock BASE_PERIPH_CLK */
__IO uint32_t BASE_USB1_CLK; /*!< (@ 0x40050068) Output stage 3 control register for base clock BASE_USB1_CLK */
__IO uint32_t BASE_M3_CLK; /*!< (@ 0x4005006C) Output stage control register */
__IO uint32_t BASE_SPIFI_CLK; /*!< (@ 0x40050070) Output stage control register */
__IO uint32_t BASE_SPI_CLK; /*!< (@ 0x40050074) Output stage control register */
__IO uint32_t BASE_PHY_RX_CLK; /*!< (@ 0x40050078) Output stage control register */
__IO uint32_t BASE_PHY_TX_CLK; /*!< (@ 0x4005007C) Output stage control register */
__IO uint32_t BASE_APB1_CLK; /*!< (@ 0x40050080) Output stage control register */
__IO uint32_t BASE_APB3_CLK; /*!< (@ 0x40050084) Output stage control register */
__IO uint32_t BASE_LCD_CLK; /*!< (@ 0x40050088) Output stage control register */
__IO uint32_t RESERVED2;
__IO uint32_t BASE_SDIO_CLK; /*!< (@ 0x40050090) Output stage control register */
__IO uint32_t BASE_SSP0_CLK; /*!< (@ 0x40050094) Output stage control register */
__IO uint32_t BASE_SSP1_CLK; /*!< (@ 0x40050098) Output stage control register */
__IO uint32_t BASE_UART0_CLK; /*!< (@ 0x4005009C) Output stage control register */
__IO uint32_t BASE_UART1_CLK; /*!< (@ 0x400500A0) Output stage control register */
__IO uint32_t BASE_UART2_CLK; /*!< (@ 0x400500A4) Output stage control register */
__IO uint32_t BASE_UART3_CLK; /*!< (@ 0x400500A8) Output stage control register */
__IO uint32_t BASE_OUT_CLK; /*!< (@ 0x400500AC) Output stage 20 control register for base clock BASE_OUT_CLK */
__I uint32_t RESERVED3[4];
__IO uint32_t BASE_APLL_CLK; /*!< (@ 0x400500C0) Output stage 25 control register for base clock BASE_APLL_CLK */
__IO uint32_t BASE_CGU_OUT0_CLK; /*!< (@ 0x400500C4) Output stage 26 control register for base clock BASE_CGU_OUT0_CLK */
__IO uint32_t BASE_CGU_OUT1_CLK; /*!< (@ 0x400500C8) Output stage 27 control register for base clock BASE_CGU_OUT1_CLK */
} LPC_CGU_Type;
// ------------------------------------------------------------------------------------------------
// ----- CCU1 -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Clock Control Unit (CCU) Modification date=1/21/2011 Major revision=0 Minor revision=7 (CCU1)
*/
typedef struct { /*!< (@ 0x40051000) CCU1 Structure */
__IO uint32_t PM; /*!< (@ 0x40051000) CCU1 power mode register */
__I uint32_t BASE_STAT; /*!< (@ 0x40051004) CCU1 base clocks status register */
__I uint32_t RESERVED0[62];
__IO uint32_t CLK_APB3_BUS_CFG; /*!< (@ 0x40051100) CLK_APB3_BUS clock configuration register */
__I uint32_t CLK_APB3_BUS_STAT; /*!< (@ 0x40051104) CLK_APB3_BUS clock status register */
__IO uint32_t CLK_APB3_I2C1_CFG; /*!< (@ 0x40051108) CLK_APB3_I2C1 clock configuration register */
__I uint32_t CLK_APB3_I2C1_STAT; /*!< (@ 0x4005110C) CLK_APB3_I2C1 clock status register */
__IO uint32_t CLK_APB3_DAC_CFG; /*!< (@ 0x40051110) CLK_APB3_DAC clock configuration register */
__I uint32_t CLK_APB3_DAC_STAT; /*!< (@ 0x40051114) CLK_APB3_DAC clock status register */
__IO uint32_t CLK_APB3_ADC0_CFG; /*!< (@ 0x40051118) CLK_APB3_ADC0 clock configuration register */
__I uint32_t CLK_APB3_ADC0_STAT; /*!< (@ 0x4005111C) CLK_APB3_ADC0 clock status register */
__IO uint32_t CLK_APB3_ADC1_CFG; /*!< (@ 0x40051120) CLK_APB3_ADC1 clock configuration register */
__I uint32_t CLK_APB3_ADC1_STAT; /*!< (@ 0x40051124) CLK_APB3_ADC1 clock status register */
__IO uint32_t CLK_APB3_CAN0_CFG; /*!< (@ 0x40051128) CLK_APB3_CAN0 clock configuration register */
__I uint32_t CLK_APB3_CAN0_STAT; /*!< (@ 0x4005112C) CLK_APB3_CAN0 clock status register */
__I uint32_t RESERVED1[52];
__IO uint32_t CLK_APB1_BUS_CFG; /*!< (@ 0x40051200) CLK_APB1_BUS clock configuration register */
__I uint32_t CLK_APB1_BUS_STAT; /*!< (@ 0x40051204) CLK_APB1_BUS clock status register */
__IO uint32_t CLK_APB1_MOTOCONPWM_CFG; /*!< (@ 0x40051208) CLK_APB1_MOTOCONPWM clock configuration register */
__I uint32_t CLK_APB1_MOTOCONPWM_STAT; /*!< (@ 0x4005120C) CLK_APB1_MOTOCONPWM clock status register */
__IO uint32_t CLK_ABP1_I2C0_CFG; /*!< (@ 0x40051210) CLK_ABP1_I2C0 clock configuration register */
__I uint32_t CLK_APB1_I2C0_STAT; /*!< (@ 0x40051214) CLK_APB1_I2C0 clock status register */
__IO uint32_t CLK_APB1_I2S_CFG; /*!< (@ 0x40051218) CLK_APB1_I2S clock configuration register */
__I uint32_t CLK_APB1_I2S_STAT; /*!< (@ 0x4005121C) CLK_APB1_I2S clock status register */
__IO uint32_t CLK_APB1_CAN1_CFG; /*!< (@ 0x40051220) CLK_APB1_CAN1 clock configuration register */
__I uint32_t CLK_APB1_CAN1_STAT; /*!< (@ 0x40051224) CLK_APB1_CAN1 clock status register */
__I uint32_t RESERVED2[54];
__IO uint32_t CLK_SPIFI_CFG; /*!< (@ 0x40051300) CLK_SPIFI clock configuration register */
__I uint32_t CLK_SPIFI_STAT; /*!< (@ 0x40051304) CLK_APB1_SPIFI clock status register */
__I uint32_t RESERVED3[62];
__IO uint32_t CLK_M3_BUS_CFG; /*!< (@ 0x40051400) CLK_M3_BUS clock configuration register */
__I uint32_t CLK_M3_BUS_STAT; /*!< (@ 0x40051404) CLK_M3_BUSclock status register */
__IO uint32_t CLK_M3_SPIFI_CFG; /*!< (@ 0x40051408) CLK_M3_SPIFI clock configuration register */
__I uint32_t CLK_M3_SPIFI_STAT; /*!< (@ 0x4005140C) CLK_M3_SPIFI clock status register */
__IO uint32_t CLK_M3_GPIO_CFG; /*!< (@ 0x40051410) CLK_M3_GPIO clock configuration register */
__I uint32_t CLK_M3_GPIO_STAT; /*!< (@ 0x40051414) CLK_M3_GPIO clock status register */
__IO uint32_t CLK_M3_LCD_CFG; /*!< (@ 0x40051418) CLK_M3_LCD clock configuration register */
__I uint32_t CLK_M3_LCD_STAT; /*!< (@ 0x4005141C) CLK_M3_LCD clock status register */
__IO uint32_t CLK_M3_ETHERNET_CFG; /*!< (@ 0x40051420) CLK_M3_ETHERNET clock configuration register */
__I uint32_t CLK_M3_ETHERNET_STAT; /*!< (@ 0x40051424) CLK_M3_ETHERNET clock status register */
__IO uint32_t CLK_M3_USB0_CFG; /*!< (@ 0x40051428) CLK_M3_USB0 clock configuration register */
__I uint32_t CLK_M3_USB0_STAT; /*!< (@ 0x4005142C) CLK_M3_USB0 clock status register */
__IO uint32_t CLK_M3_EMC_CFG; /*!< (@ 0x40051430) CLK_M3_EMC clock configuration register */
__I uint32_t CLK_M3_EMC_STAT; /*!< (@ 0x40051434) CLK_M3_EMC clock status register */
__IO uint32_t CLK_M3_SDIO_CFG; /*!< (@ 0x40051438) CLK_M3_SDIO clock configuration register */
__I uint32_t CLK_M3_SDIO_STAT; /*!< (@ 0x4005143C) CLK_M3_SDIO clock status register */
__IO uint32_t CLK_M3_DMA_CFG; /*!< (@ 0x40051440) CLK_M3_DMA clock configuration register */
__I uint32_t CLK_M3_DMA_STAT; /*!< (@ 0x40051444) CLK_M3_DMA clock status register */
__IO uint32_t CLK_M3_M3CORE_CFG; /*!< (@ 0x40051448) CLK_M3_M3CORE clock configuration register */
__I uint32_t CLK_M3_M3CORE_STAT; /*!< (@ 0x4005144C) CLK_M3_M3CORE clock status register */
__I uint32_t RESERVED4[6];
__IO uint32_t CLK_M3_SCT_CFG; /*!< (@ 0x40051468) CLK_M3_SCT clock configuration register */
__I uint32_t CLK_M3_SCT_STAT; /*!< (@ 0x4005146C) CLK_M3_SCT clock status register */
__IO uint32_t CLK_M3_USB1_CFG; /*!< (@ 0x40051470) CLK_M3_USB1 clock configuration register */
__I uint32_t CLK_M3_USB1_STAT; /*!< (@ 0x40051474) CLK_M3_USB1 clock status register */
__IO uint32_t CLK_M3_EMCDIV_CFG; /*!< (@ 0x40051478) CLK_M3_EMCDIV clock configuration register */
__I uint32_t CLK_M3_EMCDIV_STAT; /*!< (@ 0x4005147C) CLK_M3_EMCDIV clock status register */
__I uint32_t RESERVED5[32];
__IO uint32_t CLK_M3_WWDT_CFG; /*!< (@ 0x40051500) CLK_M3_WWDT clock configuration register */
__I uint32_t CLK_M3_WWDT_STAT; /*!< (@ 0x40051504) CLK_M3_WWDT clock status register */
__IO uint32_t CLK_M3_USART0_CFG; /*!< (@ 0x40051508) CLK_M3_USART0 clock configuration register */
__I uint32_t CLK_M3_USART0_STAT; /*!< (@ 0x4005150C) CLK_M3_USART0 clock status register */
__IO uint32_t CLK_M3_UART1_CFG; /*!< (@ 0x40051510) CLK_M3_UART1 clock configuration register */
__I uint32_t CLK_M3_UART1_STAT; /*!< (@ 0x40051514) CLK_M3_UART1 clock status register */
__IO uint32_t CLK_M3_SSP0_CFG; /*!< (@ 0x40051518) CLK_M3_SSP0 clock configuration register */
__I uint32_t CLK_M3_SSP0_STAT; /*!< (@ 0x4005151C) CLK_M3_SSP0 clock status register */
__IO uint32_t CLK_M3_TIMER0_CFG; /*!< (@ 0x40051520) CLK_M3_TIMER0 clock configuration register */
__I uint32_t CLK_M3_TIMER0_STAT; /*!< (@ 0x40051524) CLK_M3_TIMER0 clock status register */
__IO uint32_t CLK_M3_TIMER1_CFG; /*!< (@ 0x40051528) CLK_M3_TIMER1clock configuration register */
__I uint32_t CLK_M3_TIMER1_STAT; /*!< (@ 0x4005152C) CLK_M3_TIMER1 clock status register */
__IO uint32_t CLK_M3_SCU_CFG; /*!< (@ 0x40051530) CLK_M3_SCU clock configuration register */
__I uint32_t CLK_M3_SCU_STAT; /*!< (@ 0x40051534) CLK_SCU_XXX clock status register */
__IO uint32_t CLK_M3_CREG_CFG; /*!< (@ 0x40051538) CLK_M3_CREGclock configuration register */
__I uint32_t CLK_M3_CREG_STAT; /*!< (@ 0x4005153C) CLK_M3_CREG clock status register */
__I uint32_t RESERVED6[48];
__IO uint32_t CLK_M3_RITIMER_CFG; /*!< (@ 0x40051600) CLK_M3_RITIMER clock configuration register */
__I uint32_t CLK_M3_RITIMER_STAT; /*!< (@ 0x40051604) CLK_M3_RITIMER clock status register */
__IO uint32_t CLK_M3_USART2_CFG; /*!< (@ 0x40051608) CLK_M3_USART2 clock configuration register */
__I uint32_t CLK_M3_USART2_STAT; /*!< (@ 0x4005160C) CLK_M3_USART2 clock status register */
__IO uint32_t CLK_M3_USART3_CFG; /*!< (@ 0x40051610) CLK_M3_USART3 clock configuration register */
__I uint32_t CLK_M3_USART3_STAT; /*!< (@ 0x40051614) CLK_M3_USART3 clock status register */
__IO uint32_t CLK_M3_TIMER2_CFG; /*!< (@ 0x40051618) CLK_M3_TIMER2 clock configuration register */
__I uint32_t CLK_M3_TIMER2_STAT; /*!< (@ 0x4005161C) CLK_M3_TIMER2 clock status register */
__IO uint32_t CLK_M3_TIMER3_CFG; /*!< (@ 0x40051620) CLK_M3_TIMER3 clock configuration register */
__I uint32_t CLK_M3_TIMER3_STAT; /*!< (@ 0x40051624) CLK_M3_TIMER3 clock status register */
__IO uint32_t CLK_M3_SSP1_CFG; /*!< (@ 0x40051628) CLK_M3_SSP1 clock configuration register */
__I uint32_t CLK_M3_SSP1_STAT; /*!< (@ 0x4005162C) CLK_M3_SSP1 clock status register */
__IO uint32_t CLK_M3_QEI_CFG; /*!< (@ 0x40051630) CLK_M3_QEIclock configuration register */
__I uint32_t CLK_M3_QEI_STAT; /*!< (@ 0x40051634) CLK_M3_QEI clock status register */
__I uint32_t RESERVED7[114];
__IO uint32_t CLK_USB0_CFG; /*!< (@ 0x40051800) CLK_M3_USB0 clock configuration register */
__I uint32_t CLK_USB0_STAT; /*!< (@ 0x40051804) CLK_USB0 clock status register */
__I uint32_t RESERVED8[62];
__IO uint32_t CLK_USB1_CFG; /*!< (@ 0x40051900) CLK_USB1 clock configuration register */
__I uint32_t CLK_USB1_STAT; /*!< (@ 0x40051904) CLK_USB1 clock status register */
__I uint32_t RESERVED9[126];
__IO uint32_t CLK_VADC_CFG; /*!< (@ 0x40051B00) CLK_VADC clock configuration register */
__I uint32_t CLK_VADC_STAT; /*!< (@ 0x40051B04) CLK_VADC clock status register */
} LPC_CCU1_Type;
// ------------------------------------------------------------------------------------------------
// ----- CCU2 -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Clock Control Unit (CCU) Modification date=1/21/2011 Major revision=0 Minor revision=7 (CCU2)
*/
typedef struct { /*!< (@ 0x40052000) CCU2 Structure */
__IO uint32_t PM; /*!< (@ 0x40052000) Power mode register */
__I uint32_t BASE_STAT; /*!< (@ 0x40052004) CCU base clocks status register */
__I uint32_t RESERVED0[62];
__IO uint32_t CLK_APLL_CFG; /*!< (@ 0x40052100) CLK_APLL clock configuration register */
__I uint32_t CLK_APLL_STAT; /*!< (@ 0x40052104) CLK_APLL clock status register */
__I uint32_t RESERVED1[62];
__IO uint32_t CLK_APB2_USART3_CFG; /*!< (@ 0x40052200) CLK_APB2_USART3 clock configuration register */
__I uint32_t CLK_APB2_USART3_STAT; /*!< (@ 0x40052204) CLK_APB2_USART3 clock status register */
__I uint32_t RESERVED2[62];
__IO uint32_t CLK_APB2_USART2_CFG; /*!< (@ 0x40052300) CLK_APB2_USART2 clock configuration register */
__I uint32_t CLK_APB2_USART2_STAT; /*!< (@ 0x40052304) CLK_APB2_USART clock status register */
__I uint32_t RESERVED3[62];
__IO uint32_t CLK_APB0_UART1_CFG; /*!< (@ 0x40052400) CLK_APB2_UART1 clock configuration register */
__I uint32_t CLK_APB0_UART1_STAT; /*!< (@ 0x40052404) CLK_APB0_UART1 clock status register */
__I uint32_t RESERVED4[62];
__IO uint32_t CLK_APB0_USART0_CFG; /*!< (@ 0x40052500) CLK_APB2_USART0 clock configuration register */
__I uint32_t CLK_APB0_USART0_STAT; /*!< (@ 0x40052504) CLK_APB0_USART0 clock status register */
__I uint32_t RESERVED5[62];
__IO uint32_t CLK_APB2_SSP1_CFG; /*!< (@ 0x40052600) CLK_APB2_SSP1 clock configuration register */
__I uint32_t CLK_APB2_SSP1_STAT; /*!< (@ 0x40052604) CLK_APB2_SSP1 clock status register */
__I uint32_t RESERVED6[62];
__IO uint32_t CLK_APB0_SSP0_CFG; /*!< (@ 0x40052700) CLK_APB0_SSP0 clock configuration register */
__I uint32_t CLK_APB0_SSP0_STAT; /*!< (@ 0x40052704) CLK_APB0_SSP0 clock status register */
__I uint32_t RESERVED7[62];
__IO uint32_t CLK_SDIO_CFG; /*!< (@ 0x40052800) CLK_SDIO clock configuration register */
__I uint32_t CLK_SDIO_STAT; /*!< (@ 0x40052804) CLK_SDIO clock status register */
} LPC_CCU2_Type;
// ------------------------------------------------------------------------------------------------
// ----- RGU -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Reset GenerationUnit (RGU) Modification date=7/20/2011 Major revision=0 Minor revision=13 (RGU)
*/
typedef struct { /*!< (@ 0x40053000) RGU Structure */
__I uint32_t RESERVED0[64];
__O uint32_t RESET_CTRL0; /*!< (@ 0x40053100) Reset control register 0 */
__O uint32_t RESET_CTRL1; /*!< (@ 0x40053104) Reset control register 1 */
__I uint32_t RESERVED1[2];
__IO uint32_t RESET_STATUS0; /*!< (@ 0x40053110) Reset status register 0 */
__IO uint32_t RESET_STATUS1; /*!< (@ 0x40053114) Reset status register 1 */
__IO uint32_t RESET_STATUS2; /*!< (@ 0x40053118) Reset status register 2 */
__IO uint32_t RESET_STATUS3; /*!< (@ 0x4005311C) Reset status register 3 */
__I uint32_t RESERVED2[12];
__I uint32_t RESET_ACTIVE_STATUS0; /*!< (@ 0x40053150) Reset active status register 0 */
__I uint32_t RESET_ACTIVE_STATUS1; /*!< (@ 0x40053154) Reset active status register 1 */
__I uint32_t RESERVED3[170];
__IO uint32_t RESET_EXT_STAT0; /*!< (@ 0x40053400) Reset external status register 0 for CORE_RST */
__IO uint32_t RESET_EXT_STAT1; /*!< (@ 0x40053404) Reset external status register 1 for PERIPH_RST */
__IO uint32_t RESET_EXT_STAT2; /*!< (@ 0x40053408) Reset external status register 2 for MASTER_RST */
__I uint32_t RESERVED4;
__IO uint32_t RESET_EXT_STAT4; /*!< (@ 0x40053410) Reset external status register 4 for WWDT_RST */
__IO uint32_t RESET_EXT_STAT5; /*!< (@ 0x40053414) Reset external status register 5 for CREG_RST */
__I uint32_t RESERVED5[2];
__IO uint32_t RESET_EXT_STAT8; /*!< (@ 0x40053420) Reset external status register */
__IO uint32_t RESET_EXT_STAT9; /*!< (@ 0x40053424) Reset external status register */
__I uint32_t RESERVED6[3];
__IO uint32_t RESET_EXT_STAT13; /*!< (@ 0x40053434) Reset external status register */
__I uint32_t RESERVED7[2];
__IO uint32_t RESET_EXT_STAT16; /*!< (@ 0x40053440) Reset external status register */
__IO uint32_t RESET_EXT_STAT17; /*!< (@ 0x40053444) Reset external status register */
__IO uint32_t RESET_EXT_STAT18; /*!< (@ 0x40053448) Reset external status register */
__IO uint32_t RESET_EXT_STAT19; /*!< (@ 0x4005344C) Reset external status register */
__IO uint32_t RESET_EXT_STAT20; /*!< (@ 0x40053450) Reset external status register */
__IO uint32_t RESET_EXT_STAT21; /*!< (@ 0x40053454) Reset external status register */
__IO uint32_t RESET_EXT_STAT22; /*!< (@ 0x40053458) Reset external status register */
__IO uint32_t RESET_EXT_STAT23; /*!< (@ 0x4005345C) Reset external status register */
__I uint32_t RESERVED8[4];
__IO uint32_t RESET_EXT_STAT28; /*!< (@ 0x40053470) Reset external status register */
__I uint32_t RESERVED9[3];
__IO uint32_t RESET_EXT_STAT32; /*!< (@ 0x40053480) Reset external status register */
__IO uint32_t RESET_EXT_STAT33; /*!< (@ 0x40053484) Reset external status register */
__IO uint32_t RESET_EXT_STAT34; /*!< (@ 0x40053488) Reset external status register */
__IO uint32_t RESET_EXT_STAT35; /*!< (@ 0x4005348C) Reset external status register */
__IO uint32_t RESET_EXT_STAT36; /*!< (@ 0x40053490) Reset external status register */
__IO uint32_t RESET_EXT_STAT37; /*!< (@ 0x40053494) Reset external status register */
__IO uint32_t RESET_EXT_STAT38; /*!< (@ 0x40053498) Reset external status register */
__IO uint32_t RESET_EXT_STAT39; /*!< (@ 0x4005349C) Reset external status register */
__IO uint32_t RESET_EXT_STAT40; /*!< (@ 0x400534A0) Reset external status register */
__IO uint32_t RESET_EXT_STAT41; /*!< (@ 0x400534A4) Reset external status register */
__IO uint32_t RESET_EXT_STAT42; /*!< (@ 0x400534A8) Reset external status register */
__I uint32_t RESERVED10;
__IO uint32_t RESET_EXT_STAT44; /*!< (@ 0x400534B0) Reset external status register */
__IO uint32_t RESET_EXT_STAT45; /*!< (@ 0x400534B4) Reset external status register */
__IO uint32_t RESET_EXT_STAT46; /*!< (@ 0x400534B8) Reset external status register */
__IO uint32_t RESET_EXT_STAT47; /*!< (@ 0x400534BC) Reset external status register */
__IO uint32_t RESET_EXT_STAT48; /*!< (@ 0x400534C0) Reset external status register */
__IO uint32_t RESET_EXT_STAT49; /*!< (@ 0x400534C4) Reset external status register */
__IO uint32_t RESET_EXT_STAT50; /*!< (@ 0x400534C8) Reset external status register */
__IO uint32_t RESET_EXT_STAT51; /*!< (@ 0x400534CC) Reset external status register */
__IO uint32_t RESET_EXT_STAT52; /*!< (@ 0x400534D0) Reset external status register */
__IO uint32_t RESET_EXT_STAT53; /*!< (@ 0x400534D4) Reset external status register */
__IO uint32_t RESET_EXT_STAT54; /*!< (@ 0x400534D8) Reset external status register */
__IO uint32_t RESET_EXT_STAT55; /*!< (@ 0x400534DC) Reset external status register */
} LPC_RGU_Type;
// ------------------------------------------------------------------------------------------------
// ----- WWDT -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Windowed Watchdog timer (WWDT) Modification date=1/14/2011 Major revision=0 Minor revision=7 (WWDT)
*/
typedef struct { /*!< (@ 0x40080000) WWDT Structure */
__IO uint32_t MOD; /*!< (@ 0x40080000) Watchdog mode register. This register contains the basic mode and status of the Watchdog Timer. */
__IO uint32_t TC; /*!< (@ 0x40080004) Watchdog timer constant register. This register determines the time-out value. */
__O uint32_t FEED; /*!< (@ 0x40080008) Watchdog feed sequence register. Writing 0xAA followed by 0x55 to this register reloads the Watchdog timer with the value contained in WDTC. */
__I uint32_t TV; /*!< (@ 0x4008000C) Watchdog timer value register. This register reads out the current value of the Watchdog timer. */
__I uint32_t RESERVED0;
__IO uint32_t WARNINT; /*!< (@ 0x40080014) Watchdog warning interrupt register. This register contains the Watchdog warning interrupt compare value. */
__IO uint32_t WINDOW; /*!< (@ 0x40080018) Watchdog timer window register. This register contains the Watchdog window value. */
} LPC_WWDT_Type;
// ------------------------------------------------------------------------------------------------
// ----- USARTn -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx USART0_2_3 Modification date=1/14/2011 Major revision=0 Minor revision=7 (USARTn)
*/
typedef struct { /*!< (@ 0x400xx000) USARTn Structure */
union {
__IO uint32_t DLL; /*!< (@ 0x400xx000) Divisor Latch LSB. Least significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider (DLAB = 1). */
__O uint32_t THR; /*!< (@ 0x400xx000) Transmit Holding Register. The next character to be transmitted is written here (DLAB = 0). */
__I uint32_t RBR; /*!< (@ 0x400xx000) Receiver Buffer Register. Contains the next received character to be read (DLAB = 0). */
};
union {
__IO uint32_t IER; /*!< (@ 0x400xx004) Interrupt Enable Register. Contains individual interrupt enable bits for the 7 potential UART interrupts (DLAB = 0). */
__IO uint32_t DLM; /*!< (@ 0x400xx004) Divisor Latch MSB. Most significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider (DLAB = 1). */
};
union {
__O uint32_t FCR; /*!< (@ 0x400xx008) FIFO Control Register. Controls UART FIFO usage and modes. */
__I uint32_t IIR; /*!< (@ 0x400xx008) Interrupt ID Register. Identifies which interrupt(s) are pending. */
};
__IO uint32_t LCR; /*!< (@ 0x400xx00C) Line Control Register. Contains controls for frame formatting and break generation. */
__I uint32_t RESERVED0[1];
__I uint32_t LSR; /*!< (@ 0x400xx014) Line Status Register. Contains flags for transmit and receive status, including line errors. */
__I uint32_t RESERVED1[1];
__IO uint32_t SCR; /*!< (@ 0x400xx01C) Scratch Pad Register. Eight-bit temporary storage for software. */
__IO uint32_t ACR; /*!< (@ 0x400xx020) Auto-baud Control Register. Contains controls for the auto-baud feature. */
__IO uint32_t ICR; /*!< (@ 0x400xx024) IrDA control register (UART3 only) */
__IO uint32_t FDR; /*!< (@ 0x400xx028) Fractional Divider Register. Generates a clock input for the baud rate divider. */
__IO uint32_t OSR; /*!< (@ 0x400xx02C) Oversampling Register. Controls the degree of oversampling during each bit time. */
__I uint32_t RESERVED2[4];
__IO uint32_t HDEN; /*!< (@ 0x400xx03C) Half-duplex enable Register */
__I uint32_t RESERVED3[1];
__IO uint32_t SCICTRL; /*!< (@ 0x400xx048) Smart card interface control register */
__IO uint32_t RS485CTRL; /*!< (@ 0x400xx04C) RS-485/EIA-485 Control. Contains controls to configure various aspects of RS-485/EIA-485 modes. */
__IO uint32_t RS485ADRMATCH; /*!< (@ 0x400xx050) RS-485/EIA-485 address match. Contains the address match value for RS-485/EIA-485 mode. */
__IO uint32_t RS485DLY; /*!< (@ 0x400xx054) RS-485/EIA-485 direction control delay. */
__IO uint32_t SYNCCTRL; /*!< (@ 0x400xx058) Synchronous mode control register. */
__IO uint32_t TER; /*!< (@ 0x400xx05C) Transmit Enable Register. Turns off UART transmitter for use with software flow control. */
} LPC_USARTn_Type;
// ------------------------------------------------------------------------------------------------
// ----- UART1 -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx UART1 Modification date=1/14/2011 Major revision=0 Minor revision=7 (UART1)
*/
typedef struct { /*!< (@ 0x40082000) UART1 Structure */
union {
__IO uint32_t DLL; /*!< (@ 0x40082000) Divisor Latch LSB. Least significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider. (DLAB=1) */
__O uint32_t THR; /*!< (@ 0x40082000) Transmit Holding Register. The next character to be transmitted is written here. (DLAB=0) */
__I uint32_t RBR; /*!< (@ 0x40082000) Receiver Buffer Register. Contains the next received character to be read. (DLAB=0) */
};
union {
__IO uint32_t IER; /*!< (@ 0x40082004) Interrupt Enable Register. Contains individual interrupt enable bits for the 7 potential UART1 interrupts. (DLAB=0) */
__IO uint32_t DLM; /*!< (@ 0x40082004) Divisor Latch MSB. Most significant byte of the baud rate divisor value. The full divisor is used to generate a baud rate from the fractional rate divider.(DLAB=1) */
};
union {
__O uint32_t FCR; /*!< (@ 0x40082008) FIFO Control Register. Controls UART1 FIFO usage and modes. */
__I uint32_t IIR; /*!< (@ 0x40082008) Interrupt ID Register. Identifies which interrupt(s) are pending. */
};
__IO uint32_t LCR; /*!< (@ 0x4008200C) Line Control Register. Contains controls for frame formatting and break generation. */
__IO uint32_t MCR; /*!< (@ 0x40082010) Modem Control Register. Contains controls for flow control handshaking and loopback mode. */
__I uint32_t LSR; /*!< (@ 0x40082014) Line Status Register. Contains flags for transmit and receive status, including line errors. */
__I uint32_t MSR; /*!< (@ 0x40082018) Modem Status Register. Contains handshake signal status flags. */
__IO uint32_t SCR; /*!< (@ 0x4008201C) Scratch Pad Register. 8-bit temporary storage for software. */
__IO uint32_t ACR; /*!< (@ 0x40082020) Auto-baud Control Register. Contains controls for the auto-baud feature. */
__I uint32_t RESERVED0;
__IO uint32_t FDR; /*!< (@ 0x40082028) Fractional Divider Register. Generates a clock input for the baud rate divider. */
__I uint32_t RESERVED1;
__IO uint32_t TER; /*!< (@ 0x40082030) Transmit Enable Register. Turns off UART transmitter for use with software flow control. */
__I uint32_t RESERVED2[6];
__IO uint32_t RS485CTRL; /*!< (@ 0x4008204C) RS-485/EIA-485 Control. Contains controls to configure various aspects of RS-485/EIA-485 modes. */
__IO uint32_t RS485ADRMATCH; /*!< (@ 0x40082050) RS-485/EIA-485 address match. Contains the address match value for RS-485/EIA-485 mode. */
__IO uint32_t RS485DLY; /*!< (@ 0x40082054) RS-485/EIA-485 direction control delay. */
__I uint32_t FIFOLVL; /*!< (@ 0x40082058) FIFO Level register. Provides the current fill levels of the transmit and receive FIFOs. */
} LPC_UART1_Type;
// ------------------------------------------------------------------------------------------------
// ----- SSPn -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx SSP0/1 Modification date=1/14/2011 Major revision=0 Minor revision=7 (SSP0)
*/
typedef struct { /*!< (@ 0x400xx000) SSPn Structure */
__IO uint32_t CR0; /*!< (@ 0x400xx000) Control Register 0. Selects the serial clock rate, bus type, and data size. */
__IO uint32_t CR1; /*!< (@ 0x400xx004) Control Register 1. Selects master/slave and other modes. */
__IO uint32_t DR; /*!< (@ 0x400xx008) Data Register. Writes fill the transmit FIFO, and reads empty the receive FIFO. */
__I uint32_t SR; /*!< (@ 0x400xx00C) Status Register */
__IO uint32_t CPSR; /*!< (@ 0x400xx010) Clock Prescale Register */
__IO uint32_t IMSC; /*!< (@ 0x400xx014) Interrupt Mask Set and Clear Register */
__I uint32_t RIS; /*!< (@ 0x400xx018) Raw Interrupt Status Register */
__I uint32_t MIS; /*!< (@ 0x400xx01C) Masked Interrupt Status Register */
__O uint32_t ICR; /*!< (@ 0x400xx020) SSPICR Interrupt Clear Register */
__IO uint32_t DMACR; /*!< (@ 0x400xx024) SSPn DMA control register */
} LPC_SSPn_Type;
// ------------------------------------------------------------------------------------------------
// ----- TIMERn -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Timer0/1/2/3 Modification date=1/14/2011 Major revision=0 Minor revision=7 (TIMERn)
*/
typedef struct { /*!< (@ 0x400xx000) TIMERn Structure */
__IO uint32_t IR; /*!< (@ 0x400xx000) Interrupt Register. The IR can be written to clear interrupts. The IR can be read to identify which of eight possible interrupt sources are pending. */
__IO uint32_t TCR; /*!< (@ 0x400xx004) Timer Control Register. The TCR is used to control the Timer Counter functions. The Timer Counter can be disabled or reset through the TCR. */
__IO uint32_t TC; /*!< (@ 0x400xx008) Timer Counter. The 32 bit TC is incremented every PR+1 cycles of PCLK. The TC is controlled through the TCR. */
__IO uint32_t PR; /*!< (@ 0x400xx00C) Prescale Register. The Prescale Counter (below) is equal to this value, the next clock increments the TC and clears the PC. */
__IO uint32_t PC; /*!< (@ 0x400xx010) Prescale Counter. The 32 bit PC is a counter which is incremented to the value stored in PR. When the value in PR is reached, the TC is incremented and the PC is cleared. The PC is observable and controllable through the bus interface. */
__IO uint32_t MCR; /*!< (@ 0x400xx014) Match Control Register. The MCR is used to control if an interrupt is generated and if the TC is reset when a Match occurs. */
__IO uint32_t MR[4]; /*!< (@ 0x400xx018) Match Register. MR can be enabled through the MCR to reset the TC, stop both the TC and PC, and/or generate an interrupt every time MR matches the TC. */
__IO uint32_t CCR; /*!< (@ 0x400xx028) Capture Control Register. The CCR controls which edges of the capture inputs are used to load the Capture Registers and whether or not an interrupt is generated when a capture takes place. */
__IO uint32_t CR[4]; /*!< (@ 0x400xx02C) Capture Register. CR is loaded with the value of TC when there is an event on the CAPn.0 input. */
__IO uint32_t EMR; /*!< (@ 0x400xx03C) External Match Register. The EMR controls the external match pins MATn.0-3 (MAT0.0-3 and MAT1.0-3 respectively). */
__I uint32_t RESERVED0[12];
__IO uint32_t CTCR; /*!< (@ 0x400xx070) Count Control Register. The CTCR selects between Timer and Counter mode, and in Counter mode selects the signal and edge(s) for counting. */
} LPC_TIMERn_Type;
// ------------------------------------------------------------------------------------------------
// ----- SCU -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx System Control Unit (SCU) Modification date=6/8/2011 Major revision=0 Minor revision=10 (SCU)
*/
typedef struct { /*!< (@ 0x40086000) SCU Structure */
__IO uint32_t SFSP0_0; /*!< (@ 0x40086000) Pin configuration register for pins P0 */
__IO uint32_t SFSP0_1; /*!< (@ 0x40086004) Pin configuration register for pins P0 */
__I uint32_t RESERVED0[30];
__IO uint32_t SFSP1_0; /*!< (@ 0x40086080) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_1; /*!< (@ 0x40086084) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_2; /*!< (@ 0x40086088) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_3; /*!< (@ 0x4008608C) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_4; /*!< (@ 0x40086090) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_5; /*!< (@ 0x40086094) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_6; /*!< (@ 0x40086098) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_7; /*!< (@ 0x4008609C) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_8; /*!< (@ 0x400860A0) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_9; /*!< (@ 0x400860A4) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_10; /*!< (@ 0x400860A8) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_11; /*!< (@ 0x400860AC) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_12; /*!< (@ 0x400860B0) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_13; /*!< (@ 0x400860B4) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_14; /*!< (@ 0x400860B8) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_15; /*!< (@ 0x400860BC) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_16; /*!< (@ 0x400860C0) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_17; /*!< (@ 0x400860C4) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_18; /*!< (@ 0x400860C8) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_19; /*!< (@ 0x400860CC) Pin configuration register for pins P1 */
__IO uint32_t SFSP1_20; /*!< (@ 0x400860D0) Pin configuration register for pins P1 */
__I uint32_t RESERVED1[11];
__IO uint32_t SFSP2_0; /*!< (@ 0x40086100) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_1; /*!< (@ 0x40086104) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_2; /*!< (@ 0x40086108) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_3; /*!< (@ 0x4008610C) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_4; /*!< (@ 0x40086110) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_5; /*!< (@ 0x40086114) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_6; /*!< (@ 0x40086118) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_7; /*!< (@ 0x4008611C) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_8; /*!< (@ 0x40086120) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_9; /*!< (@ 0x40086124) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_10; /*!< (@ 0x40086128) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_11; /*!< (@ 0x4008612C) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_12; /*!< (@ 0x40086130) Pin configuration register for pins P2 */
__IO uint32_t SFSP2_13; /*!< (@ 0x40086134) Pin configuration register for pins P2 */
__I uint32_t RESERVED2[18];
__IO uint32_t SFSP3_0; /*!< (@ 0x40086180) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_1; /*!< (@ 0x40086184) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_2; /*!< (@ 0x40086188) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_3; /*!< (@ 0x4008618C) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_4; /*!< (@ 0x40086190) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_5; /*!< (@ 0x40086194) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_6; /*!< (@ 0x40086198) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_7; /*!< (@ 0x4008619C) Pin configuration register for pins P3 */
__IO uint32_t SFSP3_8; /*!< (@ 0x400861A0) Pin configuration register for pins P3 */
__I uint32_t RESERVED3[23];
__IO uint32_t SFSP4_0; /*!< (@ 0x40086200) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_1; /*!< (@ 0x40086204) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_2; /*!< (@ 0x40086208) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_3; /*!< (@ 0x4008620C) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_4; /*!< (@ 0x40086210) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_5; /*!< (@ 0x40086214) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_6; /*!< (@ 0x40086218) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_7; /*!< (@ 0x4008621C) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_8; /*!< (@ 0x40086220) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_9; /*!< (@ 0x40086224) Pin configuration register for pins P4 */
__IO uint32_t SFSP4_10; /*!< (@ 0x40086228) Pin configuration register for pins P4 */
__I uint32_t RESERVED4[21];
__IO uint32_t SFSP5_0; /*!< (@ 0x40086280) Pin configuration register for pins P5 */
__IO uint32_t SFSP5_1; /*!< (@ 0x40086284) Pin configuration register for pins P5 */
__IO uint32_t SFSP5_2; /*!< (@ 0x40086288) Pin configuration register for pins P5 */
__IO uint32_t SFSP5_3; /*!< (@ 0x4008628C) Pin configuration register for pins P5 */
__IO uint32_t SFSP5_4; /*!< (@ 0x40086290) Pin configuration register for pins P5 */
__IO uint32_t SFSP5_5; /*!< (@ 0x40086294) Pin configuration register for pins P5 */
__IO uint32_t SFSP5_6; /*!< (@ 0x40086298) Pin configuration register for pins P5 */
__IO uint32_t SFSP5_7; /*!< (@ 0x4008629C) Pin configuration register for pins P5 */
__I uint32_t RESERVED5[24];
__IO uint32_t SFSP6_0; /*!< (@ 0x40086300) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_1; /*!< (@ 0x40086304) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_2; /*!< (@ 0x40086308) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_3; /*!< (@ 0x4008630C) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_4; /*!< (@ 0x40086310) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_5; /*!< (@ 0x40086314) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_6; /*!< (@ 0x40086318) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_7; /*!< (@ 0x4008631C) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_8; /*!< (@ 0x40086320) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_9; /*!< (@ 0x40086324) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_10; /*!< (@ 0x40086328) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_11; /*!< (@ 0x4008632C) Pin configuration register for pins P6 */
__IO uint32_t SFSP6_12; /*!< (@ 0x40086330) Pin configuration register for pins P6 */
__I uint32_t RESERVED6[19];
__IO uint32_t SFSP7_0; /*!< (@ 0x40086380) Pin configuration register for pins P7 */
__IO uint32_t SFSP7_1; /*!< (@ 0x40086384) Pin configuration register for pins P7 */
__IO uint32_t SFSP7_2; /*!< (@ 0x40086388) Pin configuration register for pins P7 */
__IO uint32_t SFSP7_3; /*!< (@ 0x4008638C) Pin configuration register for pins P7 */
__IO uint32_t SFSP7_4; /*!< (@ 0x40086390) Pin configuration register for pins P7 */
__IO uint32_t SFSP7_5; /*!< (@ 0x40086394) Pin configuration register for pins P7 */
__IO uint32_t SFSP7_6; /*!< (@ 0x40086398) Pin configuration register for pins P7 */
__IO uint32_t SFSP7_7; /*!< (@ 0x4008639C) Pin configuration register for pins P7 */
__I uint32_t RESERVED7[24];
__IO uint32_t SFSP8_0; /*!< (@ 0x40086400) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_1; /*!< (@ 0x40086404) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_2; /*!< (@ 0x40086408) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_3; /*!< (@ 0x4008640C) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_4; /*!< (@ 0x40086410) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_5; /*!< (@ 0x40086414) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_6; /*!< (@ 0x40086418) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_7; /*!< (@ 0x4008641C) Pin configuration register for pins P8 */
__IO uint32_t SFSP8_8; /*!< (@ 0x40086420) Pin configuration register for pins P8 */
__I uint32_t RESERVED8[23];
__IO uint32_t SFSP9_0; /*!< (@ 0x40086480) Pin configuration register for pins P9 */
__IO uint32_t SFSP9_1; /*!< (@ 0x40086484) Pin configuration register for pins P9 */
__IO uint32_t SFSP9_2; /*!< (@ 0x40086488) Pin configuration register for pins P9 */
__IO uint32_t SFSP9_3; /*!< (@ 0x4008648C) Pin configuration register for pins P9 */
__IO uint32_t SFSP9_4; /*!< (@ 0x40086490) Pin configuration register for pins P9 */
__IO uint32_t SFSP9_5; /*!< (@ 0x40086494) Pin configuration register for pins P9 */
__IO uint32_t SFSP9_6; /*!< (@ 0x40086498) Pin configuration register for pins P9 */
__I uint32_t RESERVED9[25];
__IO uint32_t SFSPA_0; /*!< (@ 0x40086500) Pin configuration register for pins PA */
__IO uint32_t SFSPA_1; /*!< (@ 0x40086504) Pin configuration register for pins PA */
__IO uint32_t SFSPA_2; /*!< (@ 0x40086508) Pin configuration register for pins PA */
__IO uint32_t SFSPA_3; /*!< (@ 0x4008650C) Pin configuration register for pins PA */
__IO uint32_t SFSPA_4; /*!< (@ 0x40086510) Pin configuration register for pins PA */
__I uint32_t RESERVED10[27];
__IO uint32_t SFSPB_0; /*!< (@ 0x40086580) Pin configuration register for pins PB */
__IO uint32_t SFSPB_1; /*!< (@ 0x40086584) Pin configuration register for pins PB */
__IO uint32_t SFSPB_2; /*!< (@ 0x40086588) Pin configuration register for pins PB */
__IO uint32_t SFSPB_3; /*!< (@ 0x4008658C) Pin configuration register for pins PB */
__IO uint32_t SFSPB_4; /*!< (@ 0x40086590) Pin configuration register for pins PB */
__IO uint32_t SFSPB_5; /*!< (@ 0x40086594) Pin configuration register for pins PB */
__IO uint32_t SFSPB_6; /*!< (@ 0x40086598) Pin configuration register for pins PB */
__I uint32_t RESERVED11[25];
__IO uint32_t SFSPC_0; /*!< (@ 0x40086600) Pin configuration register for pins PC */
__IO uint32_t SFSPC_1; /*!< (@ 0x40086604) Pin configuration register for pins PC */
__IO uint32_t SFSPC_2; /*!< (@ 0x40086608) Pin configuration register for pins PC */
__IO uint32_t SFSPC_3; /*!< (@ 0x4008660C) Pin configuration register for pins PC */
__IO uint32_t SFSPC_4; /*!< (@ 0x40086610) Pin configuration register for pins PC */
__IO uint32_t SFSPC_5; /*!< (@ 0x40086614) Pin configuration register for pins PC */
__IO uint32_t SFSPC_6; /*!< (@ 0x40086618) Pin configuration register for pins PC */
__IO uint32_t SFSPC_7; /*!< (@ 0x4008661C) Pin configuration register for pins PC */
__IO uint32_t SFSPC_8; /*!< (@ 0x40086620) Pin configuration register for pins PC */
__IO uint32_t SFSPC_9; /*!< (@ 0x40086624) Pin configuration register for pins PC */
__IO uint32_t SFSPC_10; /*!< (@ 0x40086628) Pin configuration register for pins PC */
__IO uint32_t SFSPC_11; /*!< (@ 0x4008662C) Pin configuration register for pins PC */
__IO uint32_t SFSPC_12; /*!< (@ 0x40086630) Pin configuration register for pins PC */
__IO uint32_t SFSPC_13; /*!< (@ 0x40086634) Pin configuration register for pins PC */
__IO uint32_t SFSPC_14; /*!< (@ 0x40086638) Pin configuration register for pins PC */
__I uint32_t RESERVED12[17];
__IO uint32_t SFSPD_0; /*!< (@ 0x40086680) Pin configuration register for pins PD */
__IO uint32_t SFSPD_1; /*!< (@ 0x40086684) Pin configuration register for pins PD */
__IO uint32_t SFSPD_2; /*!< (@ 0x40086688) Pin configuration register for pins PD */
__IO uint32_t SFSPD_3; /*!< (@ 0x4008668C) Pin configuration register for pins PD */
__IO uint32_t SFSPD_4; /*!< (@ 0x40086690) Pin configuration register for pins PD */
__IO uint32_t SFSPD_5; /*!< (@ 0x40086694) Pin configuration register for pins PD */
__IO uint32_t SFSPD_6; /*!< (@ 0x40086698) Pin configuration register for pins PD */
__IO uint32_t SFSPD_7; /*!< (@ 0x4008669C) Pin configuration register for pins PD */
__IO uint32_t SFSPD_8; /*!< (@ 0x400866A0) Pin configuration register for pins PD */
__IO uint32_t SFSPD_9; /*!< (@ 0x400866A4) Pin configuration register for pins PD */
__IO uint32_t SFSPD_10; /*!< (@ 0x400866A8) Pin configuration register for pins PD */
__IO uint32_t SFSPD_11; /*!< (@ 0x400866AC) Pin configuration register for pins PD */
__IO uint32_t SFSPD_12; /*!< (@ 0x400866B0) Pin configuration register for pins PD */
__IO uint32_t SFSPD_13; /*!< (@ 0x400866B4) Pin configuration register for pins PD */
__IO uint32_t SFSPD_14; /*!< (@ 0x400866B8) Pin configuration register for pins PD */
__IO uint32_t SFSPD_15; /*!< (@ 0x400866BC) Pin configuration register for pins PD */
__IO uint32_t SFSPD_16; /*!< (@ 0x400866C0) Pin configuration register for pins PD */
__I uint32_t RESERVED13[15];
__IO uint32_t SFSPE_0; /*!< (@ 0x40086700) Pin configuration register for pins PE */
__IO uint32_t SFSPE_1; /*!< (@ 0x40086704) Pin configuration register for pins PE */
__IO uint32_t SFSPE_2; /*!< (@ 0x40086708) Pin configuration register for pins PE */
__IO uint32_t SFSPE_3; /*!< (@ 0x4008670C) Pin configuration register for pins PE */
__IO uint32_t SFSPE_4; /*!< (@ 0x40086710) Pin configuration register for pins PE */
__IO uint32_t SFSPE_5; /*!< (@ 0x40086714) Pin configuration register for pins PE */
__IO uint32_t SFSPE_6; /*!< (@ 0x40086718) Pin configuration register for pins PE */
__IO uint32_t SFSPE_7; /*!< (@ 0x4008671C) Pin configuration register for pins PE */
__IO uint32_t SFSPE_8; /*!< (@ 0x40086720) Pin configuration register for pins PE */
__IO uint32_t SFSPE_9; /*!< (@ 0x40086724) Pin configuration register for pins PE */
__IO uint32_t SFSPE_10; /*!< (@ 0x40086728) Pin configuration register for pins PE */
__IO uint32_t SFSPE_11; /*!< (@ 0x4008672C) Pin configuration register for pins PE */
__IO uint32_t SFSPE_12; /*!< (@ 0x40086730) Pin configuration register for pins PE */
__IO uint32_t SFSPE_13; /*!< (@ 0x40086734) Pin configuration register for pins PE */
__IO uint32_t SFSPE_14; /*!< (@ 0x40086738) Pin configuration register for pins PE */
__IO uint32_t SFSPE_15; /*!< (@ 0x4008673C) Pin configuration register for pins PE */
__I uint32_t RESERVED14[16];
__IO uint32_t SFSPF_0; /*!< (@ 0x40086780) Pin configuration register for pins PF */
__IO uint32_t SFSPF_1; /*!< (@ 0x40086784) Pin configuration register for pins PF */
__IO uint32_t SFSPF_2; /*!< (@ 0x40086788) Pin configuration register for pins PF */
__IO uint32_t SFSPF_3; /*!< (@ 0x4008678C) Pin configuration register for pins PF */
__IO uint32_t SFSPF_4; /*!< (@ 0x40086790) Pin configuration register for pins PF */
__IO uint32_t SFSPF_5; /*!< (@ 0x40086794) Pin configuration register for pins PF */
__IO uint32_t SFSPF_6; /*!< (@ 0x40086798) Pin configuration register for pins PF */
__IO uint32_t SFSPF_7; /*!< (@ 0x4008679C) Pin configuration register for pins PF */
__IO uint32_t SFSPF_8; /*!< (@ 0x400867A0) Pin configuration register for pins PF */
__IO uint32_t SFSPF_9; /*!< (@ 0x400867A4) Pin configuration register for pins PF */
__IO uint32_t SFSPF_10; /*!< (@ 0x400867A8) Pin configuration register for pins PF */
__IO uint32_t SFSPF_11; /*!< (@ 0x400867AC) Pin configuration register for pins PF */
__I uint32_t RESERVED15[276];
__IO uint32_t SFSCLK_0; /*!< (@ 0x40086C00) Pin configuration register for pin CLK0 */
__IO uint32_t SFSCLK_1; /*!< (@ 0x40086C04) Pin configuration register for pin CLK1 */
__IO uint32_t SFSCLK_2; /*!< (@ 0x40086C08) Pin configuration register for pin CLK2 */
__IO uint32_t SFSCLK_3; /*!< (@ 0x40086C0C) Pin configuration register for pin CLK3 */
__I uint32_t RESERVED16[28];
__IO uint32_t SFSUSB; /*!< (@ 0x40086C80) Pin configuration register for */
__IO uint32_t SFSI2C0; /*!< (@ 0x40086C84) Pin configuration register for I 2C0-bus pins */
__IO uint32_t ENAIO0; /*!< (@ 0x40086C88) ADC0 function select register */
__IO uint32_t ENAIO1; /*!< (@ 0x40086C8C) ADC1 function select register */
__IO uint32_t ENAIO2; /*!< (@ 0x40086C90) Analog function select register */
__I uint32_t RESERVED17[27];
__IO uint32_t EMCDELAYCLK; /*!< (@ 0x40086D00) EMC clock delay register */
__I uint32_t RESERVED18[63];
__IO uint32_t PINTSEL0; /*!< (@ 0x40086E00) Pin interrupt select register for pin interrupts 0 to 3. */
__IO uint32_t PINTSEL1; /*!< (@ 0x40086E04) Pin interrupt select register for pin interrupts 4 to 7. */
} LPC_SCU_Type;
// ------------------------------------------------------------------------------------------------
// ----- GPIO_PIN_INT -----
// ------------------------------------------------------------------------------------------------
/**
* @brief GPIO pin interrupt (GPIO_PIN_INT)
*/
typedef struct { /*!< (@ 0x40087000) GPIO_PIN_INT Structure */
__IO uint32_t ISEL; /*!< (@ 0x40087000) Pin Interrupt Mode register */
__IO uint32_t IENR; /*!< (@ 0x40087004) Pin Interrupt Enable (Rising) register */
__O uint32_t SIENR; /*!< (@ 0x40087008) Set Pin Interrupt Enable (Rising) register */
__O uint32_t CIENR; /*!< (@ 0x4008700C) Clear Pin Interrupt Enable (Rising) register */
__IO uint32_t IENF; /*!< (@ 0x40087010) Pin Interrupt Enable Falling Edge / Active Level register */
__O uint32_t SIENF; /*!< (@ 0x40087014) Set Pin Interrupt Enable Falling Edge / Active Level register */
__O uint32_t CIENF; /*!< (@ 0x40087018) Clear Pin Interrupt Enable Falling Edge / Active Level address */
__IO uint32_t RISE; /*!< (@ 0x4008701C) Pin Interrupt Rising Edge register */
__IO uint32_t FALL; /*!< (@ 0x40087020) Pin Interrupt Falling Edge register */
__IO uint32_t IST; /*!< (@ 0x40087024) Pin Interrupt Status register */
} LPC_GPIO_PIN_INT_Type;
// ------------------------------------------------------------------------------------------------
// ----- GPIO_GROUP_INTn -----
// ------------------------------------------------------------------------------------------------
/**
* @brief GPIO group interrupt 0 (GPIO_GROUP_INTn)
*/
typedef struct { /*!< (@ 0x40088000) GPIO_GROUP_INTn Structure */
__IO uint32_t CTRL; /*!< (@ 0x40088000) GPIO grouped interrupt control register */
__I uint32_t RESERVED0[7];
__IO uint32_t PORT_POL0; /*!< (@ 0x40088020) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_POL1; /*!< (@ 0x40088024) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_POL2; /*!< (@ 0x40088028) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_POL3; /*!< (@ 0x4008802C) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_POL4; /*!< (@ 0x40088030) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_POL5; /*!< (@ 0x40088034) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_POL6; /*!< (@ 0x40088038) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_POL7; /*!< (@ 0x4008803C) GPIO grouped interrupt port polarity register */
__IO uint32_t PORT_ENA0; /*!< (@ 0x40088040) GPIO grouped interrupt port m enable register */
__IO uint32_t PORT_ENA1; /*!< (@ 0x40088044) GPIO grouped interrupt port m enable register */
__IO uint32_t PORT_ENA2; /*!< (@ 0x40088048) GPIO grouped interrupt port m enable register */
__IO uint32_t PORT_ENA3; /*!< (@ 0x4008804C) GPIO grouped interrupt port m enable register */
__IO uint32_t PORT_ENA4; /*!< (@ 0x40088050) GPIO grouped interrupt port m enable register */
__IO uint32_t PORT_ENA5; /*!< (@ 0x40088054) GPIO grouped interrupt port m enable register */
__IO uint32_t PORT_ENA6; /*!< (@ 0x40088058) GPIO grouped interrupt port m enable register */
__IO uint32_t PORT_ENA7; /*!< (@ 0x4008805C) GPIO grouped interrupt port m enable register */
} LPC_GPIO_GROUP_INTn_Type;
// ------------------------------------------------------------------------------------------------
// ----- MCPWM -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Motor Control PWM (MOTOCONPWM) Modification date=1/14/2011 Major revision=0 Minor revision=7 (MCPWM)
*/
typedef struct { /*!< (@ 0x400A0000) MCPWM Structure */
__I uint32_t CON; /*!< (@ 0x400A0000) PWM Control read address */
__O uint32_t CON_SET; /*!< (@ 0x400A0004) PWM Control set address */
__O uint32_t CON_CLR; /*!< (@ 0x400A0008) PWM Control clear address */
__I uint32_t CAPCON; /*!< (@ 0x400A000C) Capture Control read address */
__O uint32_t CAPCON_SET; /*!< (@ 0x400A0010) Capture Control set address */
__O uint32_t CAPCON_CLR; /*!< (@ 0x400A0014) Event Control clear address */
__IO uint32_t TC[3]; /*!< (@ 0x400A0018) Timer Counter register */
__IO uint32_t LIM[3]; /*!< (@ 0x400A0024) Limit register */
__IO uint32_t MAT[3]; /*!< (@ 0x400A0030) Match register */
__IO uint32_t DT; /*!< (@ 0x400A003C) Dead time register */
__IO uint32_t CCP; /*!< (@ 0x400A0040) Communication Pattern register */
__I uint32_t CAP[3]; /*!< (@ 0x400A0044) Capture register */
__I uint32_t INTEN; /*!< (@ 0x400A0050) Interrupt Enable read address */
__O uint32_t INTEN_SET; /*!< (@ 0x400A0054) Interrupt Enable set address */
__O uint32_t INTEN_CLR; /*!< (@ 0x400A0058) Interrupt Enable clear address */
__I uint32_t CNTCON; /*!< (@ 0x400A005C) Count Control read address */
__O uint32_t CNTCON_SET; /*!< (@ 0x400A0060) Count Control set address */
__O uint32_t CNTCON_CLR; /*!< (@ 0x400A0064) Count Control clear address */
__I uint32_t INTF; /*!< (@ 0x400A0068) Interrupt flags read address */
__O uint32_t INTF_SET; /*!< (@ 0x400A006C) Interrupt flags set address */
__O uint32_t INTF_CLR; /*!< (@ 0x400A0070) Interrupt flags clear address */
__O uint32_t CAP_CLR; /*!< (@ 0x400A0074) Capture clear address */
} LPC_MCPWM_Type;
// ------------------------------------------------------------------------------------------------
// ----- I2C0 -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx I2C0/1-bus interface Modification date=1/14/2011 Major revision=0 Minor revision=7 (I2Cn)
*/
typedef struct { /*!< (@ 0x400xx000) I2C0 Structure */
__IO uint32_t CONSET; /*!< (@ 0x400xx000) I2C Control Set Register. When a one is written to a bit of this register, the corresponding bit in the I2C control register is set. Writing a zero has no effect on the corresponding bit in the I2C control register. */
__I uint32_t STAT; /*!< (@ 0x400xx004) I2C Status Register. During I2C operation, this register provides detailed status codes that allow software to determine the next action needed. */
__IO uint32_t DAT; /*!< (@ 0x400xx008) I2C Data Register. During master or slave transmit mode, data to be transmitted is written to this register. During master or slave receive mode, data that has been received may be read from this register. */
__IO uint32_t ADR0; /*!< (@ 0x400xx00C) I2C Slave Address Register 0. Contains the 7-bit slave address for operation of the I2C interface in slave mode, and is not used in master mode. The least significant bit determines whether a slave responds to the General Call address. */
__IO uint32_t SCLH; /*!< (@ 0x400xx010) SCH Duty Cycle Register High Half Word. Determines the high time of the I2C clock. */
__IO uint32_t SCLL; /*!< (@ 0x400xx014) SCL Duty Cycle Register Low Half Word. Determines the low time of the I2C clock. SCLL and SCLH together determine the clock frequency generated by an I2C master and certain times used in slave mode. */
__O uint32_t CONCLR; /*!< (@ 0x400xx018) I2C Control Clear Register. When a one is written to a bit of this register, the corresponding bit in the I2C control register is cleared. Writing a zero has no effect on the corresponding bit in the I2C control register. */
__IO uint32_t MMCTRL; /*!< (@ 0x400xx01C) Monitor mode control register. */
__IO uint32_t ADR1; /*!< (@ 0x400xx020) I2C Slave Address Register. Contains the 7-bit slave address for operation of the I2C interface in slave mode, and is not used in master mode. The least significant bit determines whether a slave responds to the General Call address. */
__IO uint32_t ADR2; /*!< (@ 0x400xx024) I2C Slave Address Register. Contains the 7-bit slave address for operation of the I2C interface in slave mode, and is not used in master mode. The least significant bit determines whether a slave responds to the General Call address. */
__IO uint32_t ADR3; /*!< (@ 0x400xx028) I2C Slave Address Register. Contains the 7-bit slave address for operation of the I2C interface in slave mode, and is not used in master mode. The least significant bit determines whether a slave responds to the General Call address. */
__I uint32_t DATA_BUFFER; /*!< (@ 0x400xx02C) Data buffer register. The contents of the 8 MSBs of the DAT shift register will be transferred to the DATA_BUFFER automatically after every nine bits (8 bits of data plus ACK or NACK) has been received on the bus. */
__IO uint32_t MASK[4]; /*!< (@ 0x400xx030) I2C Slave address mask register */
} LPC_I2Cn_Type;
// ------------------------------------------------------------------------------------------------
// ----- I2Sn -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx I2S interface Modification date=1/14/2011 Major revision=0 Minor revision=7 (I2Sn)
0x400A2000 / 0x400A3000
*/
typedef struct { /*!< (@ 0x400Ax000) I2S Structure */
__IO uint32_t DAO; /*!< (@ 0x400Ax000) I2S Digital Audio Output Register. Contains control bits for the I2S transmit channel. */
__IO uint32_t DAI; /*!< (@ 0x400Ax004) I2S Digital Audio Input Register. Contains control bits for the I2S receive channel. */
__O uint32_t TXFIFO; /*!< (@ 0x400Ax008) I2S Transmit FIFO. Access register for the 8 x 32-bit transmitter FIFO. */
__I uint32_t RXFIFO; /*!< (@ 0x400Ax00C) I2S Receive FIFO. Access register for the 8 x 32-bit receiver FIFO. */
__I uint32_t STATE; /*!< (@ 0x400Ax010) I2S Status Feedback Register. Contains status information about the I2S interface. */
__IO uint32_t DMA1; /*!< (@ 0x400Ax014) I2S DMA Configuration Register 1. Contains control information for DMA request 1. */
__IO uint32_t DMA2; /*!< (@ 0x400Ax018) I2S DMA Configuration Register 2. Contains control information for DMA request 2. */
__IO uint32_t IRQ; /*!< (@ 0x400Ax01C) I2S Interrupt Request Control Register. Contains bits that control how the I2S interrupt request is generated. */
__IO uint32_t TXRATE; /*!< (@ 0x400Ax020) I2S Transmit MCLK divider. This register determines the I2S TX MCLK rate by specifying the value to divide PCLK by in order to produce MCLK. */
__IO uint32_t RXRATE; /*!< (@ 0x400Ax024) I2S Receive MCLK divider. This register determines the I2S RX MCLK rate by specifying the value to divide PCLK by in order to produce MCLK. */
__IO uint32_t TXBITRATE; /*!< (@ 0x400Ax028) I2S Transmit bit rate divider. This register determines the I2S transmit bit rate by specifying the value to divide TX_MCLK by in order to produce the transmit bit clock. */
__IO uint32_t RXBITRATE; /*!< (@ 0x400Ax02C) I2S Receive bit rate divider. This register determines the I2S receive bit rate by specifying the value to divide RX_MCLK by in order to produce the receive bit clock. */
__IO uint32_t TXMODE; /*!< (@ 0x400Ax030) I2S Transmit mode control. */
__IO uint32_t RXMODE; /*!< (@ 0x400Ax034) I2S Receive mode control. */
} LPC_I2Sn_Type;
// ------------------------------------------------------------------------------------------------
// ----- C_CANn -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx C_CAN Modification date=1/18/2011 Major revision=0 Minor revision=7 (C_CANn)
0x400A4000 / 0x400E2000
*/
typedef struct { /*!< (@ 0x400E2000) C_CAN Structure */
__IO uint32_t CNTL; /*!< (@ 0x400E2000) CAN control */
__IO uint32_t STAT; /*!< (@ 0x400E2004) Status register */
__I uint32_t EC; /*!< (@ 0x400E2008) Error counter */
__IO uint32_t BT; /*!< (@ 0x400E200C) Bit timing register */
__I uint32_t INT; /*!< (@ 0x400E2010) Interrupt register */
__IO uint32_t TEST; /*!< (@ 0x400E2014) Test register */
__IO uint32_t BRPE; /*!< (@ 0x400E2018) Baud rate prescaler extension register */
__I uint32_t RESERVED0;
__IO uint32_t IF1_CMDREQ; /*!< (@ 0x400E2020) Message interface command request */
union {
__IO uint32_t IF1_CMDMSK_R; /*!< (@ 0x400E2024) Message interface command mask (read direction) */
__IO uint32_t IF1_CMDMSK_W; /*!< (@ 0x400E2024) Message interface command mask (write direction) */
};
__IO uint32_t IF1_MSK1; /*!< (@ 0x400E2028) Message interface mask 1 */
__IO uint32_t IF1_MSK2; /*!< (@ 0x400E202C) Message interface 1 mask 2 */
__IO uint32_t IF1_ARB1; /*!< (@ 0x400E2030) Message interface 1 arbitration 1 */
__IO uint32_t IF1_ARB2; /*!< (@ 0x400E2034) Message interface 1 arbitration 2 */
__IO uint32_t IF1_MCTRL; /*!< (@ 0x400E2038) Message interface 1 message control */
__IO uint32_t IF1_DA1; /*!< (@ 0x400E203C) Message interface data A1 */
__IO uint32_t IF1_DA2; /*!< (@ 0x400E2040) Message interface 1 data A2 */
__IO uint32_t IF1_DB1; /*!< (@ 0x400E2044) Message interface 1 data B1 */
__IO uint32_t IF1_DB2; /*!< (@ 0x400E2048) Message interface 1 data B2 */
__I uint32_t RESERVED1[13];
__IO uint32_t IF2_CMDREQ; /*!< (@ 0x400E2080) Message interface command request */
union {
__IO uint32_t IF2_CMDMSK_R; /*!< (@ 0x400E2084) Message interface command mask (read direction) */
__IO uint32_t IF2_CMDMSK_W; /*!< (@ 0x400E2084) Message interface command mask (write direction) */
};
__IO uint32_t IF2_MSK1; /*!< (@ 0x400E2088) Message interface mask 1 */
__IO uint32_t IF2_MSK2; /*!< (@ 0x400E208C) Message interface 1 mask 2 */
__IO uint32_t IF2_ARB1; /*!< (@ 0x400E2090) Message interface 1 arbitration 1 */
__IO uint32_t IF2_ARB2; /*!< (@ 0x400E2094) Message interface 1 arbitration 2 */
__IO uint32_t IF2_MCTRL; /*!< (@ 0x400E2098) Message interface 1 message control */
__IO uint32_t IF2_DA1; /*!< (@ 0x400E209C) Message interface data A1 */
__IO uint32_t IF2_DA2; /*!< (@ 0x400E20A0) Message interface 1 data A2 */
__IO uint32_t IF2_DB1; /*!< (@ 0x400E20A4) Message interface 1 data B1 */
__IO uint32_t IF2_DB2; /*!< (@ 0x400E20A8) Message interface 1 data B2 */
__I uint32_t RESERVED2[21];
__I uint32_t TXREQ1; /*!< (@ 0x400E2100) Transmission request 1 */
__I uint32_t TXREQ2; /*!< (@ 0x400E2104) Transmission request 2 */
__I uint32_t RESERVED3[6];
__I uint32_t ND1; /*!< (@ 0x400E2120) New data 1 */
__I uint32_t ND2; /*!< (@ 0x400E2124) New data 2 */
__I uint32_t RESERVED4[6];
__I uint32_t IR1; /*!< (@ 0x400E2140) Interrupt pending 1 */
__I uint32_t IR2; /*!< (@ 0x400E2144) Interrupt pending 2 */
__I uint32_t RESERVED5[6];
__I uint32_t MSGV1; /*!< (@ 0x400E2160) Message valid 1 */
__I uint32_t MSGV2; /*!< (@ 0x400E2164) Message valid 2 */
__I uint32_t RESERVED6[6];
__IO uint32_t CLKDIV; /*!< (@ 0x400E2180) CAN clock divider register */
} LPC_C_CANn_Type;
// ------------------------------------------------------------------------------------------------
// ----- RITIMER -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Repetitive Interrupt Timer (RIT) Modification date=1/14/2011 Major revision=0 Minor revision=7 (RITIMER)
*/
typedef struct { /*!< (@ 0x400C0000) RITIMER Structure */
__IO uint32_t COMPVAL; /*!< (@ 0x400C0000) Compare register */
__IO uint32_t MASK; /*!< (@ 0x400C0004) Mask register. This register holds the 32-bit mask value. A 1 written to any bit will force a compare on the corresponding bit of the counter and compare register. */
__IO uint32_t CTRL; /*!< (@ 0x400C0008) Control register. */
__IO uint32_t COUNTER; /*!< (@ 0x400C000C) 32-bit counter */
} LPC_RITIMER_Type;
// ------------------------------------------------------------------------------------------------
// ----- QEI -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx Quadrature Encoder Interface (QEI) Modification date=1/18/2011 Major revision=0 Minor revision=7 (QEI)
*/
typedef struct { /*!< (@ 0x400C6000) QEI Structure */
__O uint32_t CON; /*!< (@ 0x400C6000) Control register */
__I uint32_t STAT; /*!< (@ 0x400C6004) Encoder status register */
__IO uint32_t CONF; /*!< (@ 0x400C6008) Configuration register */
__I uint32_t POS; /*!< (@ 0x400C600C) Position register */
__IO uint32_t MAXPOS; /*!< (@ 0x400C6010) Maximum position register */
__IO uint32_t CMPOS0; /*!< (@ 0x400C6014) position compare register 0 */
__IO uint32_t CMPOS1; /*!< (@ 0x400C6018) position compare register 1 */
__IO uint32_t CMPOS2; /*!< (@ 0x400C601C) position compare register 2 */
__I uint32_t INXCNT; /*!< (@ 0x400C6020) Index count register */
__IO uint32_t INXCMP0; /*!< (@ 0x400C6024) Index compare register 0 */
__IO uint32_t LOAD; /*!< (@ 0x400C6028) Velocity timer reload register */
__I uint32_t TIME; /*!< (@ 0x400C602C) Velocity timer register */
__I uint32_t VEL; /*!< (@ 0x400C6030) Velocity counter register */
__I uint32_t CAP; /*!< (@ 0x400C6034) Velocity capture register */
__IO uint32_t VELCOMP; /*!< (@ 0x400C6038) Velocity compare register */
__IO uint32_t FILTERPHA; /*!< (@ 0x400C603C) Digital filter register on input phase A (QEI_A) */
__IO uint32_t FILTERPHB; /*!< (@ 0x400C6040) Digital filter register on input phase B (QEI_B) */
__IO uint32_t FILTERINX; /*!< (@ 0x400C6044) Digital filter register on input index (QEI_IDX) */
__IO uint32_t WINDOW; /*!< (@ 0x400C6048) Index acceptance window register */
__IO uint32_t INXCMP1; /*!< (@ 0x400C604C) Index compare register 1 */
__IO uint32_t INXCMP2; /*!< (@ 0x400C6050) Index compare register 2 */
__I uint32_t RESERVED0[993];
__O uint32_t IEC; /*!< (@ 0x400C6FD8) Interrupt enable clear register */
__O uint32_t IES; /*!< (@ 0x400C6FDC) Interrupt enable set register */
__I uint32_t INTSTAT; /*!< (@ 0x400C6FE0) Interrupt status register */
__I uint32_t IE; /*!< (@ 0x400C6FE4) Interrupt enable register */
__O uint32_t CLR; /*!< (@ 0x400C6FE8) Interrupt status clear register */
__O uint32_t SET; /*!< (@ 0x400C6FEC) Interrupt status set register */
} LPC_QEI_Type;
// ------------------------------------------------------------------------------------------------
// ----- GIMA -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=Falcon Chapter title=Global Input Multiplexer Array (GIMA) Modification date=3/25/2011 Major revision=0 Minor revision=4 (GIMA)
*/
typedef struct { /*!< (@ 0x400C7000) GIMA Structure */
__IO uint32_t CAP0_0_IN; /*!< (@ 0x400C7000) Timer 0 CAP0_0 capture input multiplexer (GIMA output 0) */
__IO uint32_t CAP0_1_IN; /*!< (@ 0x400C7004) Timer 0 CAP0_1 capture input multiplexer (GIMA output 1) */
__IO uint32_t CAP0_2_IN; /*!< (@ 0x400C7008) Timer 0 CAP0_2 capture input multiplexer (GIMA output 2) */
__IO uint32_t CAP0_3_IN; /*!< (@ 0x400C700C) Timer 0 CAP0_3 capture input multiplexer (GIMA output 3) */
__IO uint32_t CAP1_0_IN; /*!< (@ 0x400C7010) Timer 1 CAP1_0 capture input multiplexer (GIMA output 4) */
__IO uint32_t CAP1_1_IN; /*!< (@ 0x400C7014) Timer 1 CAP1_1 capture input multiplexer (GIMA output 5) */
__IO uint32_t CAP1_2_IN; /*!< (@ 0x400C7018) Timer 1 CAP1_2 capture input multiplexer (GIMA output 6) */
__IO uint32_t CAP1_3_IN; /*!< (@ 0x400C701C) Timer 1 CAP1_3 capture input multiplexer (GIMA output 7) */
__IO uint32_t CAP2_0_IN; /*!< (@ 0x400C7020) Timer 2 CAP2_0 capture input multiplexer (GIMA output 8) */
__IO uint32_t CAP2_1_IN; /*!< (@ 0x400C7024) Timer 2 CAP2_1 capture input multiplexer (GIMA output 9) */
__IO uint32_t CAP2_2_IN; /*!< (@ 0x400C7028) Timer 2 CAP2_2 capture input multiplexer (GIMA output 10) */
__IO uint32_t CAP2_3_IN; /*!< (@ 0x400C702C) Timer 2 CAP2_3 capture input multiplexer (GIMA output 11) */
__IO uint32_t CAP3_0_IN; /*!< (@ 0x400C7030) Timer 3 CAP3_0 capture input multiplexer (GIMA output 12) */
__IO uint32_t CAP3_1_IN; /*!< (@ 0x400C7034) Timer 3 CAP3_1 capture input multiplexer (GIMA output 13) */
__IO uint32_t CAP3_2_IN; /*!< (@ 0x400C7038) Timer 3 CAP3_2 capture input multiplexer (GIMA output 14) */
__IO uint32_t CAP3_3_IN; /*!< (@ 0x400C703C) Timer 3 CAP3_3 capture input multiplexer (GIMA output 15) */
__IO uint32_t CTIN_0_IN; /*!< (@ 0x400C7040) SCT CTIN_0 capture input multiplexer (GIMA output 16) */
__IO uint32_t CTIN_1_IN; /*!< (@ 0x400C7044) SCT CTIN_1 capture input multiplexer (GIMA output 17) */
__IO uint32_t CTIN_2_IN; /*!< (@ 0x400C7048) SCT CTIN_2 capture input multiplexer (GIMA output 18) */
__IO uint32_t CTIN_3_IN; /*!< (@ 0x400C704C) SCT CTIN_3 capture input multiplexer (GIMA output 19) */
__IO uint32_t CTIN_4_IN; /*!< (@ 0x400C7050) SCT CTIN_4 capture input multiplexer (GIMA output 20) */
__IO uint32_t CTIN_5_IN; /*!< (@ 0x400C7054) SCT CTIN_5 capture input multiplexer (GIMA output 21) */
__IO uint32_t CTIN_6_IN; /*!< (@ 0x400C7058) SCT CTIN_6 capture input multiplexer (GIMA output 22) */
__IO uint32_t CTIN_7_IN; /*!< (@ 0x400C705C) SCT CTIN_7 capture input multiplexer (GIMA output 23) */
__IO uint32_t VADC_TRIGGER_IN; /*!< (@ 0x400C7060) VADC trigger input multiplexer (GIMA output 24) */
__IO uint32_t EVENTROUTER_13_IN; /*!< (@ 0x400C7064) Event router input 13 multiplexer (GIMA output 25) */
__IO uint32_t EVENTROUTER_14_IN; /*!< (@ 0x400C7068) Event router input 14 multiplexer (GIMA output 26) */
__IO uint32_t EVENTROUTER_16_IN; /*!< (@ 0x400C706C) Event router input 16 multiplexer (GIMA output 27) */
__IO uint32_t ADCSTART0_IN; /*!< (@ 0x400C7070) ADC start0 input multiplexer (GIMA output 28) */
__IO uint32_t ADCSTART1_IN; /*!< (@ 0x400C7074) ADC start1 input multiplexer (GIMA output 29) */
} LPC_GIMA_Type;
// ------------------------------------------------------------------------------------------------
// ----- DAC -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx DAC Modification date=1/18/2011 Major revision=0 Minor revision=7 (DAC)
*/
typedef struct { /*!< (@ 0x400E1000) DAC Structure */
__IO uint32_t CR; /*!< (@ 0x400E1000) DAC register. Holds the conversion data. */
__IO uint32_t CTRL; /*!< (@ 0x400E1004) DAC control register. */
__IO uint32_t CNTVAL; /*!< (@ 0x400E1008) DAC counter value register. */
} LPC_DAC_Type;
// ------------------------------------------------------------------------------------------------
// ----- ADCn -----
// ------------------------------------------------------------------------------------------------
/**
* @brief Product name title=UM10430 Chapter title=LPC18xx 10-bit ADC0/1 Modification date=1/18/2011 Major revision=0 Minor revision=7 (ADCn)
0x400E3000 / 0x400E4000
*/
typedef struct { /*!< (@ 0x400Ex000) ADCn Structure */
__IO uint32_t CR; /*!< (@ 0x400Ex000) A/D Control Register. The AD0CR register must be written to select the operating mode before A/D conversion can occur. */
__I uint32_t GDR; /*!< (@ 0x400Ex004) A/D Global Data Register. Contains the result of the most recent A/D conversion. */
__I uint32_t RESERVED0;
__IO uint32_t INTEN; /*!< (@ 0x400Ex00C) A/D Interrupt Enable Register. This register contains enable bits that allow the DONE flag of each A/D channel to be included or excluded from contributing to the generation of an A/D interrupt. */
__I uint32_t DR[8]; /*!< (@ 0x400Ex010) A/D Channel Data Register. This register contains the result of the most recent conversion completed on channel n. */
__I uint32_t STAT; /*!< (@ 0x400Ex030) A/D Status Register. This register contains DONE and OVERRUN flags for all of the A/D channels, as well as the A/D interrupt flag. */
} LPC_ADCn_Type;
// ------------------------------------------------------------------------------------------------
// ----- GPIO_PORT -----
// ------------------------------------------------------------------------------------------------
/**
* @brief GPIO port (GPIO_PORT)
*/
typedef struct { /*!< (@ 0x400F4000) GPIO_PORT Structure */
__IO uint8_t B[256]; /*!< (@ 0x400F4000) Byte pin registers port 0 to 5; pins PIOn_0 to PIOn_31 */
__I uint32_t RESERVED0[960];
__IO uint32_t W[256]; /*!< (@ 0x400F5000) Word pin registers port 0 to 5 */
__I uint32_t RESERVED1[768];
__IO uint32_t DIR[8]; /*!< (@ 0x400F6000) Direction registers port n */
__I uint32_t RESERVED2[24];
__IO uint32_t MASK[8]; /*!< (@ 0x400F6080) Mask register port n */
__I uint32_t RESERVED3[24];
__IO uint32_t PIN[8]; /*!< (@ 0x400F6100) Portpin register port n */
__I uint32_t RESERVED4[24];
__IO uint32_t MPIN[8]; /*!< (@ 0x400F6180) Masked port register port n */
__I uint32_t RESERVED5[24];
__IO uint32_t SET[8]; /*!< (@ 0x400F6200) Write: Set register for port n Read: output bits for port n */
__I uint32_t RESERVED6[24];
__O uint32_t CLR[8]; /*!< (@ 0x400F6280) Clear port n */
__I uint32_t RESERVED7[24];
__O uint32_t NOT[8]; /*!< (@ 0x400F6300) Toggle port n */
} LPC_GPIO_PORT_Type;
/********************************************
** End of section using anonymous unions **
*********************************************/
#if defined(__ARMCC_VERSION)
#pragma pop
#elif defined(__CWCC__)
#pragma pop
#elif defined(__GNUC__)
/* leave anonymous unions enabled */
#elif defined(__IAR_SYSTEMS_ICC__)
#pragma pop
#else
#error Not supported compiler type
#endif
#ifdef CMSIS_BITPOSITIONS
// ------------------------------------------------------------------------------------------------
// ----- SCT Position & Mask -----
// ------------------------------------------------------------------------------------------------
// --------------------------------------- SCT_CONFIG -------------------------------------------
#define SCT_CONFIG_UNIFY_Pos 0 /*!< SCT CONFIG: UNIFY Position */
#define SCT_CONFIG_UNIFY_Msk (0x01UL << SCT_CONFIG_UNIFY_Pos) /*!< SCT CONFIG: UNIFY Mask */
#define SCT_CONFIG_CLKMODE_Pos 1 /*!< SCT CONFIG: CLKMODE Position */
#define SCT_CONFIG_CLKMODE_Msk (0x03UL << SCT_CONFIG_CLKMODE_Pos) /*!< SCT CONFIG: CLKMODE Mask */
#define SCT_CONFIG_CLKSEL_Pos 3 /*!< SCT CONFIG: CLKSEL Position */
#define SCT_CONFIG_CLKSEL_Msk (0x0fUL << SCT_CONFIG_CLKSEL_Pos) /*!< SCT CONFIG: CLKSEL Mask */
#define SCT_CONFIG_NORELAODL_NORELOADU_Pos 7 /*!< SCT CONFIG: NORELAODL_NORELOADU Position */
#define SCT_CONFIG_NORELAODL_NORELOADU_Msk (0x01UL << SCT_CONFIG_NORELAODL_NORELOADU_Pos) /*!< SCT CONFIG: NORELAODL_NORELOADU Mask */
#define SCT_CONFIG_NORELOADH_Pos 8 /*!< SCT CONFIG: NORELOADH Position */
#define SCT_CONFIG_NORELOADH_Msk (0x01UL << SCT_CONFIG_NORELOADH_Pos) /*!< SCT CONFIG: NORELOADH Mask */
#define SCT_CONFIG_INSYNCn_Pos 9 /*!< SCT CONFIG: INSYNCn Position */
#define SCT_CONFIG_INSYNCn_Msk (0x000000ffUL << SCT_CONFIG_INSYNCn_Pos) /*!< SCT CONFIG: INSYNCn Mask */
// ---------------------------------------- SCT_CTRL --------------------------------------------
#define SCT_CTRL_DOWN_L_Pos 0 /*!< SCT CTRL: DOWN_L Position */
#define SCT_CTRL_DOWN_L_Msk (0x01UL << SCT_CTRL_DOWN_L_Pos) /*!< SCT CTRL: DOWN_L Mask */
#define SCT_CTRL_STOP_L_Pos 1 /*!< SCT CTRL: STOP_L Position */
#define SCT_CTRL_STOP_L_Msk (0x01UL << SCT_CTRL_STOP_L_Pos) /*!< SCT CTRL: STOP_L Mask */
#define SCT_CTRL_HALT_L_Pos 2 /*!< SCT CTRL: HALT_L Position */
#define SCT_CTRL_HALT_L_Msk (0x01UL << SCT_CTRL_HALT_L_Pos) /*!< SCT CTRL: HALT_L Mask */
#define SCT_CTRL_CLRCTR_L_Pos 3 /*!< SCT CTRL: CLRCTR_L Position */
#define SCT_CTRL_CLRCTR_L_Msk (0x01UL << SCT_CTRL_CLRCTR_L_Pos) /*!< SCT CTRL: CLRCTR_L Mask */
#define SCT_CTRL_BIDIR_L_Pos 4 /*!< SCT CTRL: BIDIR_L Position */
#define SCT_CTRL_BIDIR_L_Msk (0x01UL << SCT_CTRL_BIDIR_L_Pos) /*!< SCT CTRL: BIDIR_L Mask */
#define SCT_CTRL_PRE_L_Pos 5 /*!< SCT CTRL: PRE_L Position */
#define SCT_CTRL_PRE_L_Msk (0x000000ffUL << SCT_CTRL_PRE_L_Pos) /*!< SCT CTRL: PRE_L Mask */
#define SCT_CTRL_DOWN_H_Pos 16 /*!< SCT CTRL: DOWN_H Position */
#define SCT_CTRL_DOWN_H_Msk (0x01UL << SCT_CTRL_DOWN_H_Pos) /*!< SCT CTRL: DOWN_H Mask */
#define SCT_CTRL_STOP_H_Pos 17 /*!< SCT CTRL: STOP_H Position */
#define SCT_CTRL_STOP_H_Msk (0x01UL << SCT_CTRL_STOP_H_Pos) /*!< SCT CTRL: STOP_H Mask */
#define SCT_CTRL_HALT_H_Pos 18 /*!< SCT CTRL: HALT_H Position */
#define SCT_CTRL_HALT_H_Msk (0x01UL << SCT_CTRL_HALT_H_Pos) /*!< SCT CTRL: HALT_H Mask */
#define SCT_CTRL_CLRCTR_H_Pos 19 /*!< SCT CTRL: CLRCTR_H Position */
#define SCT_CTRL_CLRCTR_H_Msk (0x01UL << SCT_CTRL_CLRCTR_H_Pos) /*!< SCT CTRL: CLRCTR_H Mask */
#define SCT_CTRL_BIDIR_H_Pos 20 /*!< SCT CTRL: BIDIR_H Position */
#define SCT_CTRL_BIDIR_H_Msk (0x01UL << SCT_CTRL_BIDIR_H_Pos) /*!< SCT CTRL: BIDIR_H Mask */
#define SCT_CTRL_PRE_H_Pos 21 /*!< SCT CTRL: PRE_H Position */
#define SCT_CTRL_PRE_H_Msk (0x000000ffUL << SCT_CTRL_PRE_H_Pos) /*!< SCT CTRL: PRE_H Mask */
// ---------------------------------------- SCT_LIMIT -------------------------------------------
#define SCT_LIMIT_LIMMSK_L_Pos 0 /*!< SCT LIMIT: LIMMSK_L Position */
#define SCT_LIMIT_LIMMSK_L_Msk (0x0000ffffUL << SCT_LIMIT_LIMMSK_L_Pos) /*!< SCT LIMIT: LIMMSK_L Mask */
#define SCT_LIMIT_LIMMSK_H_Pos 16 /*!< SCT LIMIT: LIMMSK_H Position */
#define SCT_LIMIT_LIMMSK_H_Msk (0x0000ffffUL << SCT_LIMIT_LIMMSK_H_Pos) /*!< SCT LIMIT: LIMMSK_H Mask */
// ---------------------------------------- SCT_HALT --------------------------------------------
#define SCT_HALT_HALTMSK_L_Pos 0 /*!< SCT HALT: HALTMSK_L Position */
#define SCT_HALT_HALTMSK_L_Msk (0x0000ffffUL << SCT_HALT_HALTMSK_L_Pos) /*!< SCT HALT: HALTMSK_L Mask */
#define SCT_HALT_HALTMSK_H_Pos 16 /*!< SCT HALT: HALTMSK_H Position */
#define SCT_HALT_HALTMSK_H_Msk (0x0000ffffUL << SCT_HALT_HALTMSK_H_Pos) /*!< SCT HALT: HALTMSK_H Mask */
// ---------------------------------------- SCT_STOP --------------------------------------------
#define SCT_STOP_STOPMSK_L_Pos 0 /*!< SCT STOP: STOPMSK_L Position */
#define SCT_STOP_STOPMSK_L_Msk (0x0000ffffUL << SCT_STOP_STOPMSK_L_Pos) /*!< SCT STOP: STOPMSK_L Mask */
#define SCT_STOP_STOPMSK_H_Pos 16 /*!< SCT STOP: STOPMSK_H Position */
#define SCT_STOP_STOPMSK_H_Msk (0x0000ffffUL << SCT_STOP_STOPMSK_H_Pos) /*!< SCT STOP: STOPMSK_H Mask */
// ---------------------------------------- SCT_START -------------------------------------------
#define SCT_START_STARTMSK_L_Pos 0 /*!< SCT START: STARTMSK_L Position */
#define SCT_START_STARTMSK_L_Msk (0x0000ffffUL << SCT_START_STARTMSK_L_Pos) /*!< SCT START: STARTMSK_L Mask */
#define SCT_START_STARTMSK_H_Pos 16 /*!< SCT START: STARTMSK_H Position */
#define SCT_START_STARTMSK_H_Msk (0x0000ffffUL << SCT_START_STARTMSK_H_Pos) /*!< SCT START: STARTMSK_H Mask */
// ---------------------------------------- SCT_COUNT -------------------------------------------
#define SCT_COUNT_CTR_L_Pos 0 /*!< SCT COUNT: CTR_L Position */
#define SCT_COUNT_CTR_L_Msk (0x0000ffffUL << SCT_COUNT_CTR_L_Pos) /*!< SCT COUNT: CTR_L Mask */
#define SCT_COUNT_CTR_H_Pos 16 /*!< SCT COUNT: CTR_H Position */
#define SCT_COUNT_CTR_H_Msk (0x0000ffffUL << SCT_COUNT_CTR_H_Pos) /*!< SCT COUNT: CTR_H Mask */
// ---------------------------------------- SCT_STATE -------------------------------------------
#define SCT_STATE_STATE_L_Pos 0 /*!< SCT STATE: STATE_L Position */
#define SCT_STATE_STATE_L_Msk (0x1fUL << SCT_STATE_STATE_L_Pos) /*!< SCT STATE: STATE_L Mask */
#define SCT_STATE_STATE_H_Pos 16 /*!< SCT STATE: STATE_H Position */
#define SCT_STATE_STATE_H_Msk (0x1fUL << SCT_STATE_STATE_H_Pos) /*!< SCT STATE: STATE_H Mask */
// ---------------------------------------- SCT_INPUT -------------------------------------------
#define SCT_INPUT_AIN0_Pos 0 /*!< SCT INPUT: AIN0 Position */
#define SCT_INPUT_AIN0_Msk (0x01UL << SCT_INPUT_AIN0_Pos) /*!< SCT INPUT: AIN0 Mask */
#define SCT_INPUT_AIN1_Pos 1 /*!< SCT INPUT: AIN1 Position */
#define SCT_INPUT_AIN1_Msk (0x01UL << SCT_INPUT_AIN1_Pos) /*!< SCT INPUT: AIN1 Mask */
#define SCT_INPUT_AIN2_Pos 2 /*!< SCT INPUT: AIN2 Position */
#define SCT_INPUT_AIN2_Msk (0x01UL << SCT_INPUT_AIN2_Pos) /*!< SCT INPUT: AIN2 Mask */
#define SCT_INPUT_AIN3_Pos 3 /*!< SCT INPUT: AIN3 Position */
#define SCT_INPUT_AIN3_Msk (0x01UL << SCT_INPUT_AIN3_Pos) /*!< SCT INPUT: AIN3 Mask */
#define SCT_INPUT_AIN4_Pos 4 /*!< SCT INPUT: AIN4 Position */
#define SCT_INPUT_AIN4_Msk (0x01UL << SCT_INPUT_AIN4_Pos) /*!< SCT INPUT: AIN4 Mask */
#define SCT_INPUT_AIN5_Pos 5 /*!< SCT INPUT: AIN5 Position */
#define SCT_INPUT_AIN5_Msk (0x01UL << SCT_INPUT_AIN5_Pos) /*!< SCT INPUT: AIN5 Mask */
#define SCT_INPUT_AIN6_Pos 6 /*!< SCT INPUT: AIN6 Position */
#define SCT_INPUT_AIN6_Msk (0x01UL << SCT_INPUT_AIN6_Pos) /*!< SCT INPUT: AIN6 Mask */
#define SCT_INPUT_AIN7_Pos 7 /*!< SCT INPUT: AIN7 Position */
#define SCT_INPUT_AIN7_Msk (0x01UL << SCT_INPUT_AIN7_Pos) /*!< SCT INPUT: AIN7 Mask */
#define SCT_INPUT_SIN0_Pos 16 /*!< SCT INPUT: SIN0 Position */
#define SCT_INPUT_SIN0_Msk (0x01UL << SCT_INPUT_SIN0_Pos) /*!< SCT INPUT: SIN0 Mask */
#define SCT_INPUT_SIN1_Pos 17 /*!< SCT INPUT: SIN1 Position */
#define SCT_INPUT_SIN1_Msk (0x01UL << SCT_INPUT_SIN1_Pos) /*!< SCT INPUT: SIN1 Mask */
#define SCT_INPUT_SIN2_Pos 18 /*!< SCT INPUT: SIN2 Position */
#define SCT_INPUT_SIN2_Msk (0x01UL << SCT_INPUT_SIN2_Pos) /*!< SCT INPUT: SIN2 Mask */
#define SCT_INPUT_SIN3_Pos 19 /*!< SCT INPUT: SIN3 Position */
#define SCT_INPUT_SIN3_Msk (0x01UL << SCT_INPUT_SIN3_Pos) /*!< SCT INPUT: SIN3 Mask */
#define SCT_INPUT_SIN4_Pos 20 /*!< SCT INPUT: SIN4 Position */
#define SCT_INPUT_SIN4_Msk (0x01UL << SCT_INPUT_SIN4_Pos) /*!< SCT INPUT: SIN4 Mask */
#define SCT_INPUT_SIN5_Pos 21 /*!< SCT INPUT: SIN5 Position */
#define SCT_INPUT_SIN5_Msk (0x01UL << SCT_INPUT_SIN5_Pos) /*!< SCT INPUT: SIN5 Mask */
#define SCT_INPUT_SIN6_Pos 22 /*!< SCT INPUT: SIN6 Position */
#define SCT_INPUT_SIN6_Msk (0x01UL << SCT_INPUT_SIN6_Pos) /*!< SCT INPUT: SIN6 Mask */
#define SCT_INPUT_SIN7_Pos 23 /*!< SCT INPUT: SIN7 Position */
#define SCT_INPUT_SIN7_Msk (0x01UL << SCT_INPUT_SIN7_Pos) /*!< SCT INPUT: SIN7 Mask */
// --------------------------------------- SCT_REGMODE ------------------------------------------
#define SCT_REGMODE_REGMOD_L0_Pos 0 /*!< SCT REGMODE: REGMOD_L0 Position */
#define SCT_REGMODE_REGMOD_L0_Msk (0x01UL << SCT_REGMODE_REGMOD_L0_Pos) /*!< SCT REGMODE: REGMOD_L0 Mask */
#define SCT_REGMODE_REGMOD_L1_Pos 1 /*!< SCT REGMODE: REGMOD_L1 Position */
#define SCT_REGMODE_REGMOD_L1_Msk (0x01UL << SCT_REGMODE_REGMOD_L1_Pos) /*!< SCT REGMODE: REGMOD_L1 Mask */
#define SCT_REGMODE_REGMOD_L2_Pos 2 /*!< SCT REGMODE: REGMOD_L2 Position */
#define SCT_REGMODE_REGMOD_L2_Msk (0x01UL << SCT_REGMODE_REGMOD_L2_Pos) /*!< SCT REGMODE: REGMOD_L2 Mask */
#define SCT_REGMODE_REGMOD_L3_Pos 3 /*!< SCT REGMODE: REGMOD_L3 Position */
#define SCT_REGMODE_REGMOD_L3_Msk (0x01UL << SCT_REGMODE_REGMOD_L3_Pos) /*!< SCT REGMODE: REGMOD_L3 Mask */
#define SCT_REGMODE_REGMOD_L4_Pos 4 /*!< SCT REGMODE: REGMOD_L4 Position */
#define SCT_REGMODE_REGMOD_L4_Msk (0x01UL << SCT_REGMODE_REGMOD_L4_Pos) /*!< SCT REGMODE: REGMOD_L4 Mask */
#define SCT_REGMODE_REGMOD_L5_Pos 5 /*!< SCT REGMODE: REGMOD_L5 Position */
#define SCT_REGMODE_REGMOD_L5_Msk (0x01UL << SCT_REGMODE_REGMOD_L5_Pos) /*!< SCT REGMODE: REGMOD_L5 Mask */
#define SCT_REGMODE_REGMOD_L6_Pos 6 /*!< SCT REGMODE: REGMOD_L6 Position */
#define SCT_REGMODE_REGMOD_L6_Msk (0x01UL << SCT_REGMODE_REGMOD_L6_Pos) /*!< SCT REGMODE: REGMOD_L6 Mask */
#define SCT_REGMODE_REGMOD_L7_Pos 7 /*!< SCT REGMODE: REGMOD_L7 Position */
#define SCT_REGMODE_REGMOD_L7_Msk (0x01UL << SCT_REGMODE_REGMOD_L7_Pos) /*!< SCT REGMODE: REGMOD_L7 Mask */
#define SCT_REGMODE_REGMOD_L8_Pos 8 /*!< SCT REGMODE: REGMOD_L8 Position */
#define SCT_REGMODE_REGMOD_L8_Msk (0x01UL << SCT_REGMODE_REGMOD_L8_Pos) /*!< SCT REGMODE: REGMOD_L8 Mask */
#define SCT_REGMODE_REGMOD_L9_Pos 9 /*!< SCT REGMODE: REGMOD_L9 Position */
#define SCT_REGMODE_REGMOD_L9_Msk (0x01UL << SCT_REGMODE_REGMOD_L9_Pos) /*!< SCT REGMODE: REGMOD_L9 Mask */
#define SCT_REGMODE_REGMOD_L10_Pos 10 /*!< SCT REGMODE: REGMOD_L10 Position */
#define SCT_REGMODE_REGMOD_L10_Msk (0x01UL << SCT_REGMODE_REGMOD_L10_Pos) /*!< SCT REGMODE: REGMOD_L10 Mask */
#define SCT_REGMODE_REGMOD_L11_Pos 11 /*!< SCT REGMODE: REGMOD_L11 Position */
#define SCT_REGMODE_REGMOD_L11_Msk (0x01UL << SCT_REGMODE_REGMOD_L11_Pos) /*!< SCT REGMODE: REGMOD_L11 Mask */
#define SCT_REGMODE_REGMOD_L12_Pos 12 /*!< SCT REGMODE: REGMOD_L12 Position */
#define SCT_REGMODE_REGMOD_L12_Msk (0x01UL << SCT_REGMODE_REGMOD_L12_Pos) /*!< SCT REGMODE: REGMOD_L12 Mask */
#define SCT_REGMODE_REGMOD_L13_Pos 13 /*!< SCT REGMODE: REGMOD_L13 Position */
#define SCT_REGMODE_REGMOD_L13_Msk (0x01UL << SCT_REGMODE_REGMOD_L13_Pos) /*!< SCT REGMODE: REGMOD_L13 Mask */
#define SCT_REGMODE_REGMOD_L14_Pos 14 /*!< SCT REGMODE: REGMOD_L14 Position */
#define SCT_REGMODE_REGMOD_L14_Msk (0x01UL << SCT_REGMODE_REGMOD_L14_Pos) /*!< SCT REGMODE: REGMOD_L14 Mask */
#define SCT_REGMODE_REGMOD_L15_Pos 15 /*!< SCT REGMODE: REGMOD_L15 Position */
#define SCT_REGMODE_REGMOD_L15_Msk (0x01UL << SCT_REGMODE_REGMOD_L15_Pos) /*!< SCT REGMODE: REGMOD_L15 Mask */
#define SCT_REGMODE_REGMOD_H16_Pos 16 /*!< SCT REGMODE: REGMOD_H16 Position */
#define SCT_REGMODE_REGMOD_H16_Msk (0x01UL << SCT_REGMODE_REGMOD_H16_Pos) /*!< SCT REGMODE: REGMOD_H16 Mask */
#define SCT_REGMODE_REGMOD_H17_Pos 17 /*!< SCT REGMODE: REGMOD_H17 Position */
#define SCT_REGMODE_REGMOD_H17_Msk (0x01UL << SCT_REGMODE_REGMOD_H17_Pos) /*!< SCT REGMODE: REGMOD_H17 Mask */
#define SCT_REGMODE_REGMOD_H18_Pos 18 /*!< SCT REGMODE: REGMOD_H18 Position */
#define SCT_REGMODE_REGMOD_H18_Msk (0x01UL << SCT_REGMODE_REGMOD_H18_Pos) /*!< SCT REGMODE: REGMOD_H18 Mask */
#define SCT_REGMODE_REGMOD_H19_Pos 19 /*!< SCT REGMODE: REGMOD_H19 Position */
#define SCT_REGMODE_REGMOD_H19_Msk (0x01UL << SCT_REGMODE_REGMOD_H19_Pos) /*!< SCT REGMODE: REGMOD_H19 Mask */
#define SCT_REGMODE_REGMOD_H20_Pos 20 /*!< SCT REGMODE: REGMOD_H20 Position */
#define SCT_REGMODE_REGMOD_H20_Msk (0x01UL << SCT_REGMODE_REGMOD_H20_Pos) /*!< SCT REGMODE: REGMOD_H20 Mask */
#define SCT_REGMODE_REGMOD_H21_Pos 21 /*!< SCT REGMODE: REGMOD_H21 Position */
#define SCT_REGMODE_REGMOD_H21_Msk (0x01UL << SCT_REGMODE_REGMOD_H21_Pos) /*!< SCT REGMODE: REGMOD_H21 Mask */
#define SCT_REGMODE_REGMOD_H22_Pos 22 /*!< SCT REGMODE: REGMOD_H22 Position */
#define SCT_REGMODE_REGMOD_H22_Msk (0x01UL << SCT_REGMODE_REGMOD_H22_Pos) /*!< SCT REGMODE: REGMOD_H22 Mask */
#define SCT_REGMODE_REGMOD_H23_Pos 23 /*!< SCT REGMODE: REGMOD_H23 Position */
#define SCT_REGMODE_REGMOD_H23_Msk (0x01UL << SCT_REGMODE_REGMOD_H23_Pos) /*!< SCT REGMODE: REGMOD_H23 Mask */
#define SCT_REGMODE_REGMOD_H24_Pos 24 /*!< SCT REGMODE: REGMOD_H24 Position */
#define SCT_REGMODE_REGMOD_H24_Msk (0x01UL << SCT_REGMODE_REGMOD_H24_Pos) /*!< SCT REGMODE: REGMOD_H24 Mask */
#define SCT_REGMODE_REGMOD_H25_Pos 25 /*!< SCT REGMODE: REGMOD_H25 Position */
#define SCT_REGMODE_REGMOD_H25_Msk (0x01UL << SCT_REGMODE_REGMOD_H25_Pos) /*!< SCT REGMODE: REGMOD_H25 Mask */
#define SCT_REGMODE_REGMOD_H26_Pos 26 /*!< SCT REGMODE: REGMOD_H26 Position */
#define SCT_REGMODE_REGMOD_H26_Msk (0x01UL << SCT_REGMODE_REGMOD_H26_Pos) /*!< SCT REGMODE: REGMOD_H26 Mask */
#define SCT_REGMODE_REGMOD_H27_Pos 27 /*!< SCT REGMODE: REGMOD_H27 Position */
#define SCT_REGMODE_REGMOD_H27_Msk (0x01UL << SCT_REGMODE_REGMOD_H27_Pos) /*!< SCT REGMODE: REGMOD_H27 Mask */
#define SCT_REGMODE_REGMOD_H28_Pos 28 /*!< SCT REGMODE: REGMOD_H28 Position */
#define SCT_REGMODE_REGMOD_H28_Msk (0x01UL << SCT_REGMODE_REGMOD_H28_Pos) /*!< SCT REGMODE: REGMOD_H28 Mask */
#define SCT_REGMODE_REGMOD_H29_Pos 29 /*!< SCT REGMODE: REGMOD_H29 Position */
#define SCT_REGMODE_REGMOD_H29_Msk (0x01UL << SCT_REGMODE_REGMOD_H29_Pos) /*!< SCT REGMODE: REGMOD_H29 Mask */
#define SCT_REGMODE_REGMOD_H30_Pos 30 /*!< SCT REGMODE: REGMOD_H30 Position */
#define SCT_REGMODE_REGMOD_H30_Msk (0x01UL << SCT_REGMODE_REGMOD_H30_Pos) /*!< SCT REGMODE: REGMOD_H30 Mask */
#define SCT_REGMODE_REGMOD_H31_Pos 31 /*!< SCT REGMODE: REGMOD_H31 Position */
#define SCT_REGMODE_REGMOD_H31_Msk (0x01UL << SCT_REGMODE_REGMOD_H31_Pos) /*!< SCT REGMODE: REGMOD_H31 Mask */
// --------------------------------------- SCT_OUTPUT -------------------------------------------
#define SCT_OUTPUT_OUT0_Pos 0 /*!< SCT OUTPUT: OUT0 Position */
#define SCT_OUTPUT_OUT0_Msk (0x01UL << SCT_OUTPUT_OUT0_Pos) /*!< SCT OUTPUT: OUT0 Mask */
#define SCT_OUTPUT_OUT1_Pos 1 /*!< SCT OUTPUT: OUT1 Position */
#define SCT_OUTPUT_OUT1_Msk (0x01UL << SCT_OUTPUT_OUT1_Pos) /*!< SCT OUTPUT: OUT1 Mask */
#define SCT_OUTPUT_OUT2_Pos 2 /*!< SCT OUTPUT: OUT2 Position */
#define SCT_OUTPUT_OUT2_Msk (0x01UL << SCT_OUTPUT_OUT2_Pos) /*!< SCT OUTPUT: OUT2 Mask */
#define SCT_OUTPUT_OUT3_Pos 3 /*!< SCT OUTPUT: OUT3 Position */
#define SCT_OUTPUT_OUT3_Msk (0x01UL << SCT_OUTPUT_OUT3_Pos) /*!< SCT OUTPUT: OUT3 Mask */
#define SCT_OUTPUT_OUT4_Pos 4 /*!< SCT OUTPUT: OUT4 Position */
#define SCT_OUTPUT_OUT4_Msk (0x01UL << SCT_OUTPUT_OUT4_Pos) /*!< SCT OUTPUT: OUT4 Mask */
#define SCT_OUTPUT_OUT5_Pos 5 /*!< SCT OUTPUT: OUT5 Position */
#define SCT_OUTPUT_OUT5_Msk (0x01UL << SCT_OUTPUT_OUT5_Pos) /*!< SCT OUTPUT: OUT5 Mask */
#define SCT_OUTPUT_OUT6_Pos 6 /*!< SCT OUTPUT: OUT6 Position */
#define SCT_OUTPUT_OUT6_Msk (0x01UL << SCT_OUTPUT_OUT6_Pos) /*!< SCT OUTPUT: OUT6 Mask */
#define SCT_OUTPUT_OUT7_Pos 7 /*!< SCT OUTPUT: OUT7 Position */
#define SCT_OUTPUT_OUT7_Msk (0x01UL << SCT_OUTPUT_OUT7_Pos) /*!< SCT OUTPUT: OUT7 Mask */
#define SCT_OUTPUT_OUT8_Pos 8 /*!< SCT OUTPUT: OUT8 Position */
#define SCT_OUTPUT_OUT8_Msk (0x01UL << SCT_OUTPUT_OUT8_Pos) /*!< SCT OUTPUT: OUT8 Mask */
#define SCT_OUTPUT_OUT9_Pos 9 /*!< SCT OUTPUT: OUT9 Position */
#define SCT_OUTPUT_OUT9_Msk (0x01UL << SCT_OUTPUT_OUT9_Pos) /*!< SCT OUTPUT: OUT9 Mask */
#define SCT_OUTPUT_OUT10_Pos 10 /*!< SCT OUTPUT: OUT10 Position */
#define SCT_OUTPUT_OUT10_Msk (0x01UL << SCT_OUTPUT_OUT10_Pos) /*!< SCT OUTPUT: OUT10 Mask */
#define SCT_OUTPUT_OUT11_Pos 11 /*!< SCT OUTPUT: OUT11 Position */
#define SCT_OUTPUT_OUT11_Msk (0x01UL << SCT_OUTPUT_OUT11_Pos) /*!< SCT OUTPUT: OUT11 Mask */
#define SCT_OUTPUT_OUT12_Pos 12 /*!< SCT OUTPUT: OUT12 Position */
#define SCT_OUTPUT_OUT12_Msk (0x01UL << SCT_OUTPUT_OUT12_Pos) /*!< SCT OUTPUT: OUT12 Mask */
#define SCT_OUTPUT_OUT13_Pos 13 /*!< SCT OUTPUT: OUT13 Position */
#define SCT_OUTPUT_OUT13_Msk (0x01UL << SCT_OUTPUT_OUT13_Pos) /*!< SCT OUTPUT: OUT13 Mask */
#define SCT_OUTPUT_OUT14_Pos 14 /*!< SCT OUTPUT: OUT14 Position */
#define SCT_OUTPUT_OUT14_Msk (0x01UL << SCT_OUTPUT_OUT14_Pos) /*!< SCT OUTPUT: OUT14 Mask */
#define SCT_OUTPUT_OUT15_Pos 15 /*!< SCT OUTPUT: OUT15 Position */
#define SCT_OUTPUT_OUT15_Msk (0x01UL << SCT_OUTPUT_OUT15_Pos) /*!< SCT OUTPUT: OUT15 Mask */
// ------------------------------------ SCT_OUTPUTDIRCTRL ---------------------------------------
#define SCT_OUTPUTDIRCTRL_SETCLR0_Pos 0 /*!< SCT OUTPUTDIRCTRL: SETCLR0 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR0_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR0_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR0 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR1_Pos 2 /*!< SCT OUTPUTDIRCTRL: SETCLR1 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR1_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR1_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR1 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR2_Pos 4 /*!< SCT OUTPUTDIRCTRL: SETCLR2 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR2_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR2_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR2 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR3_Pos 6 /*!< SCT OUTPUTDIRCTRL: SETCLR3 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR3_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR3_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR3 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR4_Pos 8 /*!< SCT OUTPUTDIRCTRL: SETCLR4 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR4_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR4_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR4 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR5_Pos 10 /*!< SCT OUTPUTDIRCTRL: SETCLR5 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR5_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR5_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR5 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR6_Pos 12 /*!< SCT OUTPUTDIRCTRL: SETCLR6 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR6_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR6_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR6 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR7_Pos 14 /*!< SCT OUTPUTDIRCTRL: SETCLR7 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR7_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR7_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR7 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR8_Pos 16 /*!< SCT OUTPUTDIRCTRL: SETCLR8 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR8_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR8_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR8 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR9_Pos 18 /*!< SCT OUTPUTDIRCTRL: SETCLR9 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR9_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR9_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR9 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR10_Pos 20 /*!< SCT OUTPUTDIRCTRL: SETCLR10 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR10_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR10_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR10 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR11_Pos 22 /*!< SCT OUTPUTDIRCTRL: SETCLR11 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR11_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR11_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR11 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR12_Pos 24 /*!< SCT OUTPUTDIRCTRL: SETCLR12 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR12_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR12_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR12 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR13_Pos 26 /*!< SCT OUTPUTDIRCTRL: SETCLR13 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR13_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR13_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR13 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR14_Pos 28 /*!< SCT OUTPUTDIRCTRL: SETCLR14 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR14_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR14_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR14 Mask */
#define SCT_OUTPUTDIRCTRL_SETCLR15_Pos 30 /*!< SCT OUTPUTDIRCTRL: SETCLR15 Position */
#define SCT_OUTPUTDIRCTRL_SETCLR15_Msk (0x03UL << SCT_OUTPUTDIRCTRL_SETCLR15_Pos) /*!< SCT OUTPUTDIRCTRL: SETCLR15 Mask */
// ----------------------------------------- SCT_RES --------------------------------------------
#define SCT_RES_O0RES_Pos 0 /*!< SCT RES: O0RES Position */
#define SCT_RES_O0RES_Msk (0x03UL << SCT_RES_O0RES_Pos) /*!< SCT RES: O0RES Mask */
#define SCT_RES_O1RES_Pos 2 /*!< SCT RES: O1RES Position */
#define SCT_RES_O1RES_Msk (0x03UL << SCT_RES_O1RES_Pos) /*!< SCT RES: O1RES Mask */
#define SCT_RES_O2RES_Pos 4 /*!< SCT RES: O2RES Position */
#define SCT_RES_O2RES_Msk (0x03UL << SCT_RES_O2RES_Pos) /*!< SCT RES: O2RES Mask */
#define SCT_RES_O3RES_Pos 6 /*!< SCT RES: O3RES Position */
#define SCT_RES_O3RES_Msk (0x03UL << SCT_RES_O3RES_Pos) /*!< SCT RES: O3RES Mask */
#define SCT_RES_O4RES_Pos 8 /*!< SCT RES: O4RES Position */
#define SCT_RES_O4RES_Msk (0x03UL << SCT_RES_O4RES_Pos) /*!< SCT RES: O4RES Mask */
#define SCT_RES_O5RES_Pos 10 /*!< SCT RES: O5RES Position */
#define SCT_RES_O5RES_Msk (0x03UL << SCT_RES_O5RES_Pos) /*!< SCT RES: O5RES Mask */
#define SCT_RES_O6RES_Pos 12 /*!< SCT RES: O6RES Position */
#define SCT_RES_O6RES_Msk (0x03UL << SCT_RES_O6RES_Pos) /*!< SCT RES: O6RES Mask */
#define SCT_RES_O7RES_Pos 14 /*!< SCT RES: O7RES Position */
#define SCT_RES_O7RES_Msk (0x03UL << SCT_RES_O7RES_Pos) /*!< SCT RES: O7RES Mask */
#define SCT_RES_O8RES_Pos 16 /*!< SCT RES: O8RES Position */
#define SCT_RES_O8RES_Msk (0x03UL << SCT_RES_O8RES_Pos) /*!< SCT RES: O8RES Mask */
#define SCT_RES_O9RES_Pos 18 /*!< SCT RES: O9RES Position */
#define SCT_RES_O9RES_Msk (0x03UL << SCT_RES_O9RES_Pos) /*!< SCT RES: O9RES Mask */
#define SCT_RES_O10RES_Pos 20 /*!< SCT RES: O10RES Position */
#define SCT_RES_O10RES_Msk (0x03UL << SCT_RES_O10RES_Pos) /*!< SCT RES: O10RES Mask */
#define SCT_RES_O11RES_Pos 22 /*!< SCT RES: O11RES Position */
#define SCT_RES_O11RES_Msk (0x03UL << SCT_RES_O11RES_Pos) /*!< SCT RES: O11RES Mask */
#define SCT_RES_O12RES_Pos 24 /*!< SCT RES: O12RES Position */
#define SCT_RES_O12RES_Msk (0x03UL << SCT_RES_O12RES_Pos) /*!< SCT RES: O12RES Mask */
#define SCT_RES_O13RES_Pos 26 /*!< SCT RES: O13RES Position */
#define SCT_RES_O13RES_Msk (0x03UL << SCT_RES_O13RES_Pos) /*!< SCT RES: O13RES Mask */
#define SCT_RES_O14RES_Pos 28 /*!< SCT RES: O14RES Position */
#define SCT_RES_O14RES_Msk (0x03UL << SCT_RES_O14RES_Pos) /*!< SCT RES: O14RES Mask */
#define SCT_RES_O15RES_Pos 30 /*!< SCT RES: O15RES Position */
#define SCT_RES_O15RES_Msk (0x03UL << SCT_RES_O15RES_Pos) /*!< SCT RES: O15RES Mask */
// --------------------------------------- SCT_DMAREQ0 ------------------------------------------
#define SCT_DMAREQ0_DEV_0_0_Pos 0 /*!< SCT DMAREQ0: DEV_0_0 Position */
#define SCT_DMAREQ0_DEV_0_0_Msk (0x01UL << SCT_DMAREQ0_DEV_0_0_Pos) /*!< SCT DMAREQ0: DEV_0_0 Mask */
#define SCT_DMAREQ0_DEV_0_1_Pos 1 /*!< SCT DMAREQ0: DEV_0_1 Position */
#define SCT_DMAREQ0_DEV_0_1_Msk (0x01UL << SCT_DMAREQ0_DEV_0_1_Pos) /*!< SCT DMAREQ0: DEV_0_1 Mask */
#define SCT_DMAREQ0_DEV_0_2_Pos 2 /*!< SCT DMAREQ0: DEV_0_2 Position */
#define SCT_DMAREQ0_DEV_0_2_Msk (0x01UL << SCT_DMAREQ0_DEV_0_2_Pos) /*!< SCT DMAREQ0: DEV_0_2 Mask */
#define SCT_DMAREQ0_DEV_0_3_Pos 3 /*!< SCT DMAREQ0: DEV_0_3 Position */
#define SCT_DMAREQ0_DEV_0_3_Msk (0x01UL << SCT_DMAREQ0_DEV_0_3_Pos) /*!< SCT DMAREQ0: DEV_0_3 Mask */
#define SCT_DMAREQ0_DEV_0_4_Pos 4 /*!< SCT DMAREQ0: DEV_0_4 Position */
#define SCT_DMAREQ0_DEV_0_4_Msk (0x01UL << SCT_DMAREQ0_DEV_0_4_Pos) /*!< SCT DMAREQ0: DEV_0_4 Mask */
#define SCT_DMAREQ0_DEV_0_5_Pos 5 /*!< SCT DMAREQ0: DEV_0_5 Position */
#define SCT_DMAREQ0_DEV_0_5_Msk (0x01UL << SCT_DMAREQ0_DEV_0_5_Pos) /*!< SCT DMAREQ0: DEV_0_5 Mask */
#define SCT_DMAREQ0_DEV_0_6_Pos 6 /*!< SCT DMAREQ0: DEV_0_6 Position */
#define SCT_DMAREQ0_DEV_0_6_Msk (0x01UL << SCT_DMAREQ0_DEV_0_6_Pos) /*!< SCT DMAREQ0: DEV_0_6 Mask */
#define SCT_DMAREQ0_DEV_0_7_Pos 7 /*!< SCT DMAREQ0: DEV_0_7 Position */
#define SCT_DMAREQ0_DEV_0_7_Msk (0x01UL << SCT_DMAREQ0_DEV_0_7_Pos) /*!< SCT DMAREQ0: DEV_0_7 Mask */
#define SCT_DMAREQ0_DEV_0_8_Pos 8 /*!< SCT DMAREQ0: DEV_0_8 Position */
#define SCT_DMAREQ0_DEV_0_8_Msk (0x01UL << SCT_DMAREQ0_DEV_0_8_Pos) /*!< SCT DMAREQ0: DEV_0_8 Mask */
#define SCT_DMAREQ0_DEV_0_9_Pos 9 /*!< SCT DMAREQ0: DEV_0_9 Position */
#define SCT_DMAREQ0_DEV_0_9_Msk (0x01UL << SCT_DMAREQ0_DEV_0_9_Pos) /*!< SCT DMAREQ0: DEV_0_9 Mask */
#define SCT_DMAREQ0_DEV_0_10_Pos 10 /*!< SCT DMAREQ0: DEV_0_10 Position */
#define SCT_DMAREQ0_DEV_0_10_Msk (0x01UL << SCT_DMAREQ0_DEV_0_10_Pos) /*!< SCT DMAREQ0: DEV_0_10 Mask */
#define SCT_DMAREQ0_DEV_0_11_Pos 11 /*!< SCT DMAREQ0: DEV_0_11 Position */
#define SCT_DMAREQ0_DEV_0_11_Msk (0x01UL << SCT_DMAREQ0_DEV_0_11_Pos) /*!< SCT DMAREQ0: DEV_0_11 Mask */
#define SCT_DMAREQ0_DEV_0_12_Pos 12 /*!< SCT DMAREQ0: DEV_0_12 Position */
#define SCT_DMAREQ0_DEV_0_12_Msk (0x01UL << SCT_DMAREQ0_DEV_0_12_Pos) /*!< SCT DMAREQ0: DEV_0_12 Mask */
#define SCT_DMAREQ0_DEV_0_13_Pos 13 /*!< SCT DMAREQ0: DEV_0_13 Position */
#define SCT_DMAREQ0_DEV_0_13_Msk (0x01UL << SCT_DMAREQ0_DEV_0_13_Pos) /*!< SCT DMAREQ0: DEV_0_13 Mask */
#define SCT_DMAREQ0_DEV_0_14_Pos 14 /*!< SCT DMAREQ0: DEV_0_14 Position */
#define SCT_DMAREQ0_DEV_0_14_Msk (0x01UL << SCT_DMAREQ0_DEV_0_14_Pos) /*!< SCT DMAREQ0: DEV_0_14 Mask */
#define SCT_DMAREQ0_DEV_0_15_Pos 15 /*!< SCT DMAREQ0: DEV_0_15 Position */
#define SCT_DMAREQ0_DEV_0_15_Msk (0x01UL << SCT_DMAREQ0_DEV_0_15_Pos) /*!< SCT DMAREQ0: DEV_0_15 Mask */
#define SCT_DMAREQ0_DRL0_Pos 30 /*!< SCT DMAREQ0: DRL0 Position */
#define SCT_DMAREQ0_DRL0_Msk (0x01UL << SCT_DMAREQ0_DRL0_Pos) /*!< SCT DMAREQ0: DRL0 Mask */
#define SCT_DMAREQ0_DRQ0_Pos 31 /*!< SCT DMAREQ0: DRQ0 Position */
#define SCT_DMAREQ0_DRQ0_Msk (0x01UL << SCT_DMAREQ0_DRQ0_Pos) /*!< SCT DMAREQ0: DRQ0 Mask */
// --------------------------------------- SCT_DMAREQ1 ------------------------------------------
#define SCT_DMAREQ1_DEV_1_0_Pos 0 /*!< SCT DMAREQ1: DEV_1_0 Position */
#define SCT_DMAREQ1_DEV_1_0_Msk (0x01UL << SCT_DMAREQ1_DEV_1_0_Pos) /*!< SCT DMAREQ1: DEV_1_0 Mask */
#define SCT_DMAREQ1_DEV_1_1_Pos 1 /*!< SCT DMAREQ1: DEV_1_1 Position */
#define SCT_DMAREQ1_DEV_1_1_Msk (0x01UL << SCT_DMAREQ1_DEV_1_1_Pos) /*!< SCT DMAREQ1: DEV_1_1 Mask */
#define SCT_DMAREQ1_DEV_1_2_Pos 2 /*!< SCT DMAREQ1: DEV_1_2 Position */
#define SCT_DMAREQ1_DEV_1_2_Msk (0x01UL << SCT_DMAREQ1_DEV_1_2_Pos) /*!< SCT DMAREQ1: DEV_1_2 Mask */
#define SCT_DMAREQ1_DEV_1_3_Pos 3 /*!< SCT DMAREQ1: DEV_1_3 Position */
#define SCT_DMAREQ1_DEV_1_3_Msk (0x01UL << SCT_DMAREQ1_DEV_1_3_Pos) /*!< SCT DMAREQ1: DEV_1_3 Mask */
#define SCT_DMAREQ1_DEV_1_4_Pos 4 /*!< SCT DMAREQ1: DEV_1_4 Position */
#define SCT_DMAREQ1_DEV_1_4_Msk (0x01UL << SCT_DMAREQ1_DEV_1_4_Pos) /*!< SCT DMAREQ1: DEV_1_4 Mask */
#define SCT_DMAREQ1_DEV_1_5_Pos 5 /*!< SCT DMAREQ1: DEV_1_5 Position */
#define SCT_DMAREQ1_DEV_1_5_Msk (0x01UL << SCT_DMAREQ1_DEV_1_5_Pos) /*!< SCT DMAREQ1: DEV_1_5 Mask */
#define SCT_DMAREQ1_DEV_1_6_Pos 6 /*!< SCT DMAREQ1: DEV_1_6 Position */
#define SCT_DMAREQ1_DEV_1_6_Msk (0x01UL << SCT_DMAREQ1_DEV_1_6_Pos) /*!< SCT DMAREQ1: DEV_1_6 Mask */
#define SCT_DMAREQ1_DEV_1_7_Pos 7 /*!< SCT DMAREQ1: DEV_1_7 Position */
#define SCT_DMAREQ1_DEV_1_7_Msk (0x01UL << SCT_DMAREQ1_DEV_1_7_Pos) /*!< SCT DMAREQ1: DEV_1_7 Mask */
#define SCT_DMAREQ1_DEV_1_8_Pos 8 /*!< SCT DMAREQ1: DEV_1_8 Position */
#define SCT_DMAREQ1_DEV_1_8_Msk (0x01UL << SCT_DMAREQ1_DEV_1_8_Pos) /*!< SCT DMAREQ1: DEV_1_8 Mask */
#define SCT_DMAREQ1_DEV_1_9_Pos 9 /*!< SCT DMAREQ1: DEV_1_9 Position */
#define SCT_DMAREQ1_DEV_1_9_Msk (0x01UL << SCT_DMAREQ1_DEV_1_9_Pos) /*!< SCT DMAREQ1: DEV_1_9 Mask */
#define SCT_DMAREQ1_DEV_1_10_Pos 10 /*!< SCT DMAREQ1: DEV_1_10 Position */
#define SCT_DMAREQ1_DEV_1_10_Msk (0x01UL << SCT_DMAREQ1_DEV_1_10_Pos) /*!< SCT DMAREQ1: DEV_1_10 Mask */
#define SCT_DMAREQ1_DEV_1_11_Pos 11 /*!< SCT DMAREQ1: DEV_1_11 Position */
#define SCT_DMAREQ1_DEV_1_11_Msk (0x01UL << SCT_DMAREQ1_DEV_1_11_Pos) /*!< SCT DMAREQ1: DEV_1_11 Mask */
#define SCT_DMAREQ1_DEV_1_12_Pos 12 /*!< SCT DMAREQ1: DEV_1_12 Position */
#define SCT_DMAREQ1_DEV_1_12_Msk (0x01UL << SCT_DMAREQ1_DEV_1_12_Pos) /*!< SCT DMAREQ1: DEV_1_12 Mask */
#define SCT_DMAREQ1_DEV_1_13_Pos 13 /*!< SCT DMAREQ1: DEV_1_13 Position */
#define SCT_DMAREQ1_DEV_1_13_Msk (0x01UL << SCT_DMAREQ1_DEV_1_13_Pos) /*!< SCT DMAREQ1: DEV_1_13 Mask */
#define SCT_DMAREQ1_DEV_1_14_Pos 14 /*!< SCT DMAREQ1: DEV_1_14 Position */
#define SCT_DMAREQ1_DEV_1_14_Msk (0x01UL << SCT_DMAREQ1_DEV_1_14_Pos) /*!< SCT DMAREQ1: DEV_1_14 Mask */
#define SCT_DMAREQ1_DEV_1_15_Pos 15 /*!< SCT DMAREQ1: DEV_1_15 Position */
#define SCT_DMAREQ1_DEV_1_15_Msk (0x01UL << SCT_DMAREQ1_DEV_1_15_Pos) /*!< SCT DMAREQ1: DEV_1_15 Mask */
#define SCT_DMAREQ1_DRL1_Pos 30 /*!< SCT DMAREQ1: DRL1 Position */
#define SCT_DMAREQ1_DRL1_Msk (0x01UL << SCT_DMAREQ1_DRL1_Pos) /*!< SCT DMAREQ1: DRL1 Mask */
#define SCT_DMAREQ1_DRQ1_Pos 31 /*!< SCT DMAREQ1: DRQ1 Position */
#define SCT_DMAREQ1_DRQ1_Msk (0x01UL << SCT_DMAREQ1_DRQ1_Pos) /*!< SCT DMAREQ1: DRQ1 Mask */
// ---------------------------------------- SCT_EVEN --------------------------------------------
#define SCT_EVEN_IEN0_Pos 0 /*!< SCT EVEN: IEN0 Position */
#define SCT_EVEN_IEN0_Msk (0x01UL << SCT_EVEN_IEN0_Pos) /*!< SCT EVEN: IEN0 Mask */
#define SCT_EVEN_IEN1_Pos 1 /*!< SCT EVEN: IEN1 Position */
#define SCT_EVEN_IEN1_Msk (0x01UL << SCT_EVEN_IEN1_Pos) /*!< SCT EVEN: IEN1 Mask */
#define SCT_EVEN_IEN2_Pos 2 /*!< SCT EVEN: IEN2 Position */
#define SCT_EVEN_IEN2_Msk (0x01UL << SCT_EVEN_IEN2_Pos) /*!< SCT EVEN: IEN2 Mask */
#define SCT_EVEN_IEN3_Pos 3 /*!< SCT EVEN: IEN3 Position */
#define SCT_EVEN_IEN3_Msk (0x01UL << SCT_EVEN_IEN3_Pos) /*!< SCT EVEN: IEN3 Mask */
#define SCT_EVEN_IEN4_Pos 4 /*!< SCT EVEN: IEN4 Position */
#define SCT_EVEN_IEN4_Msk (0x01UL << SCT_EVEN_IEN4_Pos) /*!< SCT EVEN: IEN4 Mask */
#define SCT_EVEN_IEN5_Pos 5 /*!< SCT EVEN: IEN5 Position */
#define SCT_EVEN_IEN5_Msk (0x01UL << SCT_EVEN_IEN5_Pos) /*!< SCT EVEN: IEN5 Mask */
#define SCT_EVEN_IEN6_Pos 6 /*!< SCT EVEN: IEN6 Position */
#define SCT_EVEN_IEN6_Msk (0x01UL << SCT_EVEN_IEN6_Pos) /*!< SCT EVEN: IEN6 Mask */
#define SCT_EVEN_IEN7_Pos 7 /*!< SCT EVEN: IEN7 Position */
#define SCT_EVEN_IEN7_Msk (0x01UL << SCT_EVEN_IEN7_Pos) /*!< SCT EVEN: IEN7 Mask */
#define SCT_EVEN_IEN8_Pos 8 /*!< SCT EVEN: IEN8 Position */
#define SCT_EVEN_IEN8_Msk (0x01UL << SCT_EVEN_IEN8_Pos) /*!< SCT EVEN: IEN8 Mask */
#define SCT_EVEN_IEN9_Pos 9 /*!< SCT EVEN: IEN9 Position */
#define SCT_EVEN_IEN9_Msk (0x01UL << SCT_EVEN_IEN9_Pos) /*!< SCT EVEN: IEN9 Mask */
#define SCT_EVEN_IEN10_Pos 10 /*!< SCT EVEN: IEN10 Position */
#define SCT_EVEN_IEN10_Msk (0x01UL << SCT_EVEN_IEN10_Pos) /*!< SCT EVEN: IEN10 Mask */
#define SCT_EVEN_IEN11_Pos 11 /*!< SCT EVEN: IEN11 Position */
#define SCT_EVEN_IEN11_Msk (0x01UL << SCT_EVEN_IEN11_Pos) /*!< SCT EVEN: IEN11 Mask */
#define SCT_EVEN_IEN12_Pos 12 /*!< SCT EVEN: IEN12 Position */
#define SCT_EVEN_IEN12_Msk (0x01UL << SCT_EVEN_IEN12_Pos) /*!< SCT EVEN: IEN12 Mask */
#define SCT_EVEN_IEN13_Pos 13 /*!< SCT EVEN: IEN13 Position */
#define SCT_EVEN_IEN13_Msk (0x01UL << SCT_EVEN_IEN13_Pos) /*!< SCT EVEN: IEN13 Mask */
#define SCT_EVEN_IEN14_Pos 14 /*!< SCT EVEN: IEN14 Position */
#define SCT_EVEN_IEN14_Msk (0x01UL << SCT_EVEN_IEN14_Pos) /*!< SCT EVEN: IEN14 Mask */
#define SCT_EVEN_IEN15_Pos 15 /*!< SCT EVEN: IEN15 Position */
#define SCT_EVEN_IEN15_Msk (0x01UL << SCT_EVEN_IEN15_Pos) /*!< SCT EVEN: IEN15 Mask */
// --------------------------------------- SCT_EVFLAG -------------------------------------------
#define SCT_EVFLAG_FLAG0_Pos 0 /*!< SCT EVFLAG: FLAG0 Position */
#define SCT_EVFLAG_FLAG0_Msk (0x01UL << SCT_EVFLAG_FLAG0_Pos) /*!< SCT EVFLAG: FLAG0 Mask */
#define SCT_EVFLAG_FLAG1_Pos 1 /*!< SCT EVFLAG: FLAG1 Position */
#define SCT_EVFLAG_FLAG1_Msk (0x01UL << SCT_EVFLAG_FLAG1_Pos) /*!< SCT EVFLAG: FLAG1 Mask */
#define SCT_EVFLAG_FLAG2_Pos 2 /*!< SCT EVFLAG: FLAG2 Position */
#define SCT_EVFLAG_FLAG2_Msk (0x01UL << SCT_EVFLAG_FLAG2_Pos) /*!< SCT EVFLAG: FLAG2 Mask */
#define SCT_EVFLAG_FLAG3_Pos 3 /*!< SCT EVFLAG: FLAG3 Position */
#define SCT_EVFLAG_FLAG3_Msk (0x01UL << SCT_EVFLAG_FLAG3_Pos) /*!< SCT EVFLAG: FLAG3 Mask */
#define SCT_EVFLAG_FLAG4_Pos 4 /*!< SCT EVFLAG: FLAG4 Position */
#define SCT_EVFLAG_FLAG4_Msk (0x01UL << SCT_EVFLAG_FLAG4_Pos) /*!< SCT EVFLAG: FLAG4 Mask */
#define SCT_EVFLAG_FLAG5_Pos 5 /*!< SCT EVFLAG: FLAG5 Position */
#define SCT_EVFLAG_FLAG5_Msk (0x01UL << SCT_EVFLAG_FLAG5_Pos) /*!< SCT EVFLAG: FLAG5 Mask */
#define SCT_EVFLAG_FLAG6_Pos 6 /*!< SCT EVFLAG: FLAG6 Position */
#define SCT_EVFLAG_FLAG6_Msk (0x01UL << SCT_EVFLAG_FLAG6_Pos) /*!< SCT EVFLAG: FLAG6 Mask */
#define SCT_EVFLAG_FLAG7_Pos 7 /*!< SCT EVFLAG: FLAG7 Position */
#define SCT_EVFLAG_FLAG7_Msk (0x01UL << SCT_EVFLAG_FLAG7_Pos) /*!< SCT EVFLAG: FLAG7 Mask */
#define SCT_EVFLAG_FLAG8_Pos 8 /*!< SCT EVFLAG: FLAG8 Position */
#define SCT_EVFLAG_FLAG8_Msk (0x01UL << SCT_EVFLAG_FLAG8_Pos) /*!< SCT EVFLAG: FLAG8 Mask */
#define SCT_EVFLAG_FLAG9_Pos 9 /*!< SCT EVFLAG: FLAG9 Position */
#define SCT_EVFLAG_FLAG9_Msk (0x01UL << SCT_EVFLAG_FLAG9_Pos) /*!< SCT EVFLAG: FLAG9 Mask */
#define SCT_EVFLAG_FLAG10_Pos 10 /*!< SCT EVFLAG: FLAG10 Position */
#define SCT_EVFLAG_FLAG10_Msk (0x01UL << SCT_EVFLAG_FLAG10_Pos) /*!< SCT EVFLAG: FLAG10 Mask */
#define SCT_EVFLAG_FLAG11_Pos 11 /*!< SCT EVFLAG: FLAG11 Position */
#define SCT_EVFLAG_FLAG11_Msk (0x01UL << SCT_EVFLAG_FLAG11_Pos) /*!< SCT EVFLAG: FLAG11 Mask */
#define SCT_EVFLAG_FLAG12_Pos 12 /*!< SCT EVFLAG: FLAG12 Position */
#define SCT_EVFLAG_FLAG12_Msk (0x01UL << SCT_EVFLAG_FLAG12_Pos) /*!< SCT EVFLAG: FLAG12 Mask */
#define SCT_EVFLAG_FLAG13_Pos 13 /*!< SCT EVFLAG: FLAG13 Position */
#define SCT_EVFLAG_FLAG13_Msk (0x01UL << SCT_EVFLAG_FLAG13_Pos) /*!< SCT EVFLAG: FLAG13 Mask */
#define SCT_EVFLAG_FLAG14_Pos 14 /*!< SCT EVFLAG: FLAG14 Position */
#define SCT_EVFLAG_FLAG14_Msk (0x01UL << SCT_EVFLAG_FLAG14_Pos) /*!< SCT EVFLAG: FLAG14 Mask */
#define SCT_EVFLAG_FLAG15_Pos 15 /*!< SCT EVFLAG: FLAG15 Position */
#define SCT_EVFLAG_FLAG15_Msk (0x01UL << SCT_EVFLAG_FLAG15_Pos) /*!< SCT EVFLAG: FLAG15 Mask */
// ---------------------------------------- SCT_CONEN -------------------------------------------
#define SCT_CONEN_NCEN0_Pos 0 /*!< SCT CONEN: NCEN0 Position */
#define SCT_CONEN_NCEN0_Msk (0x01UL << SCT_CONEN_NCEN0_Pos) /*!< SCT CONEN: NCEN0 Mask */
#define SCT_CONEN_NCEN1_Pos 1 /*!< SCT CONEN: NCEN1 Position */
#define SCT_CONEN_NCEN1_Msk (0x01UL << SCT_CONEN_NCEN1_Pos) /*!< SCT CONEN: NCEN1 Mask */
#define SCT_CONEN_NCEN2_Pos 2 /*!< SCT CONEN: NCEN2 Position */
#define SCT_CONEN_NCEN2_Msk (0x01UL << SCT_CONEN_NCEN2_Pos) /*!< SCT CONEN: NCEN2 Mask */
#define SCT_CONEN_NCEN3_Pos 3 /*!< SCT CONEN: NCEN3 Position */
#define SCT_CONEN_NCEN3_Msk (0x01UL << SCT_CONEN_NCEN3_Pos) /*!< SCT CONEN: NCEN3 Mask */
#define SCT_CONEN_NCEN4_Pos 4 /*!< SCT CONEN: NCEN4 Position */
#define SCT_CONEN_NCEN4_Msk (0x01UL << SCT_CONEN_NCEN4_Pos) /*!< SCT CONEN: NCEN4 Mask */
#define SCT_CONEN_NCEN5_Pos 5 /*!< SCT CONEN: NCEN5 Position */
#define SCT_CONEN_NCEN5_Msk (0x01UL << SCT_CONEN_NCEN5_Pos) /*!< SCT CONEN: NCEN5 Mask */
#define SCT_CONEN_NCEN6_Pos 6 /*!< SCT CONEN: NCEN6 Position */
#define SCT_CONEN_NCEN6_Msk (0x01UL << SCT_CONEN_NCEN6_Pos) /*!< SCT CONEN: NCEN6 Mask */
#define SCT_CONEN_NCEN7_Pos 7 /*!< SCT CONEN: NCEN7 Position */
#define SCT_CONEN_NCEN7_Msk (0x01UL << SCT_CONEN_NCEN7_Pos) /*!< SCT CONEN: NCEN7 Mask */
#define SCT_CONEN_NCEN8_Pos 8 /*!< SCT CONEN: NCEN8 Position */
#define SCT_CONEN_NCEN8_Msk (0x01UL << SCT_CONEN_NCEN8_Pos) /*!< SCT CONEN: NCEN8 Mask */
#define SCT_CONEN_NCEN9_Pos 9 /*!< SCT CONEN: NCEN9 Position */
#define SCT_CONEN_NCEN9_Msk (0x01UL << SCT_CONEN_NCEN9_Pos) /*!< SCT CONEN: NCEN9 Mask */
#define SCT_CONEN_NCEN10_Pos 10 /*!< SCT CONEN: NCEN10 Position */
#define SCT_CONEN_NCEN10_Msk (0x01UL << SCT_CONEN_NCEN10_Pos) /*!< SCT CONEN: NCEN10 Mask */
#define SCT_CONEN_NCEN11_Pos 11 /*!< SCT CONEN: NCEN11 Position */
#define SCT_CONEN_NCEN11_Msk (0x01UL << SCT_CONEN_NCEN11_Pos) /*!< SCT CONEN: NCEN11 Mask */
#define SCT_CONEN_NCEN12_Pos 12 /*!< SCT CONEN: NCEN12 Position */
#define SCT_CONEN_NCEN12_Msk (0x01UL << SCT_CONEN_NCEN12_Pos) /*!< SCT CONEN: NCEN12 Mask */
#define SCT_CONEN_NCEN13_Pos 13 /*!< SCT CONEN: NCEN13 Position */
#define SCT_CONEN_NCEN13_Msk (0x01UL << SCT_CONEN_NCEN13_Pos) /*!< SCT CONEN: NCEN13 Mask */
#define SCT_CONEN_NCEN14_Pos 14 /*!< SCT CONEN: NCEN14 Position */
#define SCT_CONEN_NCEN14_Msk (0x01UL << SCT_CONEN_NCEN14_Pos) /*!< SCT CONEN: NCEN14 Mask */
#define SCT_CONEN_NCEN15_Pos 15 /*!< SCT CONEN: NCEN15 Position */
#define SCT_CONEN_NCEN15_Msk (0x01UL << SCT_CONEN_NCEN15_Pos) /*!< SCT CONEN: NCEN15 Mask */
// --------------------------------------- SCT_CONFLAG ------------------------------------------
#define SCT_CONFLAG_NCFLAG0_Pos 0 /*!< SCT CONFLAG: NCFLAG0 Position */
#define SCT_CONFLAG_NCFLAG0_Msk (0x01UL << SCT_CONFLAG_NCFLAG0_Pos) /*!< SCT CONFLAG: NCFLAG0 Mask */
#define SCT_CONFLAG_NCFLAG1_Pos 1 /*!< SCT CONFLAG: NCFLAG1 Position */
#define SCT_CONFLAG_NCFLAG1_Msk (0x01UL << SCT_CONFLAG_NCFLAG1_Pos) /*!< SCT CONFLAG: NCFLAG1 Mask */
#define SCT_CONFLAG_NCFLAG2_Pos 2 /*!< SCT CONFLAG: NCFLAG2 Position */
#define SCT_CONFLAG_NCFLAG2_Msk (0x01UL << SCT_CONFLAG_NCFLAG2_Pos) /*!< SCT CONFLAG: NCFLAG2 Mask */
#define SCT_CONFLAG_NCFLAG3_Pos 3 /*!< SCT CONFLAG: NCFLAG3 Position */
#define SCT_CONFLAG_NCFLAG3_Msk (0x01UL << SCT_CONFLAG_NCFLAG3_Pos) /*!< SCT CONFLAG: NCFLAG3 Mask */
#define SCT_CONFLAG_NCFLAG4_Pos 4 /*!< SCT CONFLAG: NCFLAG4 Position */
#define SCT_CONFLAG_NCFLAG4_Msk (0x01UL << SCT_CONFLAG_NCFLAG4_Pos) /*!< SCT CONFLAG: NCFLAG4 Mask */
#define SCT_CONFLAG_NCFLAG5_Pos 5 /*!< SCT CONFLAG: NCFLAG5 Position */
#define SCT_CONFLAG_NCFLAG5_Msk (0x01UL << SCT_CONFLAG_NCFLAG5_Pos) /*!< SCT CONFLAG: NCFLAG5 Mask */
#define SCT_CONFLAG_NCFLAG6_Pos 6 /*!< SCT CONFLAG: NCFLAG6 Position */
#define SCT_CONFLAG_NCFLAG6_Msk (0x01UL << SCT_CONFLAG_NCFLAG6_Pos) /*!< SCT CONFLAG: NCFLAG6 Mask */
#define SCT_CONFLAG_NCFLAG7_Pos 7 /*!< SCT CONFLAG: NCFLAG7 Position */
#define SCT_CONFLAG_NCFLAG7_Msk (0x01UL << SCT_CONFLAG_NCFLAG7_Pos) /*!< SCT CONFLAG: NCFLAG7 Mask */
#define SCT_CONFLAG_NCFLAG8_Pos 8 /*!< SCT CONFLAG: NCFLAG8 Position */
#define SCT_CONFLAG_NCFLAG8_Msk (0x01UL << SCT_CONFLAG_NCFLAG8_Pos) /*!< SCT CONFLAG: NCFLAG8 Mask */
#define SCT_CONFLAG_NCFLAG9_Pos 9 /*!< SCT CONFLAG: NCFLAG9 Position */
#define SCT_CONFLAG_NCFLAG9_Msk (0x01UL << SCT_CONFLAG_NCFLAG9_Pos) /*!< SCT CONFLAG: NCFLAG9 Mask */
#define SCT_CONFLAG_NCFLAG10_Pos 10 /*!< SCT CONFLAG: NCFLAG10 Position */
#define SCT_CONFLAG_NCFLAG10_Msk (0x01UL