XMEGA Power Reduction Register Definitions
[Internal Register Definitions]

Collaboration diagram for XMEGA Power Reduction Register Definitions:

Register Offsets



#define XMEGA_PR_PRGEN   0x00
 General Power Reduction Register.
#define XMEGA_PR_PRPA   0x01
 Power Reduction Port A.
#define XMEGA_PR_PRPB   0x02
 Power Reduction Port B.
#define XMEGA_PR_PRPC   0x03
 Power Reduction Port C.
#define XMEGA_PR_PRPD   0x04
 Power Reduction Port D.
#define XMEGA_PR_PRPE   0x05
 Power Reduction Port E.
#define XMEGA_PR_PRPF   0x06
 Power Reduction Port F.

Bitfields in PRGEN



#define PR_DMA_BIT   0
 DMA Controller.
#define PR_EVSYS_BIT   1
 Event System.
#define PR_RTC_BIT   2
 Real-Time Counter.
#define PR_EBI_BIT   3
 External Bus Interface.
#define PR_AES_BIT   4
 AES Module.
#define PR_USB_BIT   6
 USB Module.

Bitfields in PRPA and PRPB



#define PR_AC_BIT   0
 Analog Comparator.
#define PR_ADC_BIT   1
 Analog/Digital Converter.
#define PR_DAC_BIT   2
 Digital/Analog Converter.

Bitfields in PRPC, PRPD, PRPE and PRPF



#define PR_TC0_BIT   0
 Timer/Counter 0.
#define PR_TC1_BIT   1
 Timer/Counter 1.
#define PR_HIRES_BIT   2
 Hi-Resolution Extension.
#define PR_SPI_BIT   3
 Serial Peripheral Interface.
#define PR_USART0_BIT   4
 USART 0.
#define PR_USART1_BIT   5
 USART 1.
#define PR_TWI_BIT   6
 Two-Wire Interface.

Bit manipulation macros



#define PR_BIT(name)   (1U << PR_##name##_BIT)
 Create a mask with bit name set.

Register access macros



#define pr_read_reg(reg)   _pr_read_reg(reg)
 Read the value of PR register reg.
#define _pr_read_reg(reg)   mmio_read8((void *)(PR_BASE + XMEGA_PR_##reg))
#define pr_write_reg(reg, value)   _pr_write_reg(reg, value)
 Write value to PR register reg.
#define _pr_write_reg(reg, value)   mmio_write8((void *)(PR_BASE + XMEGA_PR_##reg), (value))

Detailed Description

These are the XMEGA Power Reduction registers taken from the XMEGA A manual.


Define Documentation

#define PR_AC_BIT   0

Analog Comparator.

Definition at line 77 of file xmega_pr.h.

#define PR_ADC_BIT   1

Analog/Digital Converter.

Definition at line 78 of file xmega_pr.h.

#define PR_AES_BIT   4

AES Module.

Definition at line 71 of file xmega_pr.h.

#define PR_BIT ( name   )     (1U << PR_##name##_BIT)

Create a mask with bit name set.

Definition at line 96 of file xmega_pr.h.

#define PR_DAC_BIT   2

Digital/Analog Converter.

Definition at line 79 of file xmega_pr.h.

#define PR_DMA_BIT   0

DMA Controller.

Definition at line 67 of file xmega_pr.h.

#define PR_EBI_BIT   3

External Bus Interface.

Definition at line 70 of file xmega_pr.h.

#define PR_EVSYS_BIT   1

Event System.

Definition at line 68 of file xmega_pr.h.

#define PR_HIRES_BIT   2

Hi-Resolution Extension.

Definition at line 86 of file xmega_pr.h.

#define pr_read_reg ( reg   )     _pr_read_reg(reg)

Read the value of PR register reg.

Definition at line 102 of file xmega_pr.h.

#define PR_RTC_BIT   2

Real-Time Counter.

Definition at line 69 of file xmega_pr.h.

#define PR_SPI_BIT   3

Serial Peripheral Interface.

Definition at line 87 of file xmega_pr.h.

#define PR_TC0_BIT   0

Timer/Counter 0.

Definition at line 84 of file xmega_pr.h.

#define PR_TC1_BIT   1

Timer/Counter 1.

Definition at line 85 of file xmega_pr.h.

#define PR_TWI_BIT   6

Two-Wire Interface.

Definition at line 90 of file xmega_pr.h.

#define PR_USART0_BIT   4

USART 0.

Definition at line 88 of file xmega_pr.h.

#define PR_USART1_BIT   5

USART 1.

Definition at line 89 of file xmega_pr.h.

#define PR_USB_BIT   6

USB Module.

Definition at line 72 of file xmega_pr.h.

#define pr_write_reg ( reg,
value   )     _pr_write_reg(reg, value)

Write value to PR register reg.

Definition at line 107 of file xmega_pr.h.

#define XMEGA_PR_PRGEN   0x00

General Power Reduction Register.

Definition at line 56 of file xmega_pr.h.

#define XMEGA_PR_PRPA   0x01

Power Reduction Port A.

Definition at line 57 of file xmega_pr.h.

#define XMEGA_PR_PRPB   0x02

Power Reduction Port B.

Definition at line 58 of file xmega_pr.h.

#define XMEGA_PR_PRPC   0x03

Power Reduction Port C.

Definition at line 59 of file xmega_pr.h.

#define XMEGA_PR_PRPD   0x04

Power Reduction Port D.

Definition at line 60 of file xmega_pr.h.

#define XMEGA_PR_PRPE   0x05

Power Reduction Port E.

Definition at line 61 of file xmega_pr.h.

#define XMEGA_PR_PRPF   0x06

Power Reduction Port F.

Definition at line 62 of file xmega_pr.h.

Referenced by sysclk_init().

Generated on Thu Apr 29 14:09:43 2010 for uart-loopback by  doxygen 1.6.3