| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
IP: REGFILE register block and driver
IP drivers: Common drivers used on multiple NXP devices

## Detailed Description

Register File

## Data Structures
struct | IP_REGFILE_001_T
| Register File register block structure. More...

## Functions
STATIC INLINE void | IP_REGFILE_Write (IP_REGFILE_001_T *pREG, int index, uint32_t value)
| Write value to General purpose registers.
STATIC INLINE uint32_t | IP_REGFILE_Read (IP_REGFILE_001_T *pREG, int index)
| Read value from General purpose registers.

## Function Documentation

STATIC INLINE uint32_t IP_REGFILE_Read | ( | IP_REGFILE_001_T * | pREG,
|  | int | index
| ) |  |

Read value from General purpose registers.

Parameters

  pREG | : Pointer to regfile block
  index | : General purpose register index

Returns
  Read value

Note
  These General purpose registers can be used to store important information when the main power supply is off. The value in these registers is not affected by chip reset. These registers are usually powered in the RTC power domain.

Definition at line 85 of file regfile_001.h.

STATIC INLINE void IP_REGFILE_Write | ( | IP_REGFILE_001_T * | pREG,
|  | int | index,
|  | uint32_t | value
| ) |  |

Write value to General purpose registers.

Parameters

  pREG | : Pointer to regfile block
  index | : General purpose register index
  value | : Value to write

Returns
  None

Note
  These General purpose registers can be used to store important information when the main power supply is off. The value in these registers is not affected by chip reset. These registers are usually powered in the RTC power domain.

Definition at line 70 of file regfile_001.h.