CMemMap maps a region in the processor's physical memory space so a process can access it (read/write) directly.
More...
#include <memmap.h>
List of all members.
Public Member Functions |
| | CMemMap (unsigned int base, unsigned int size) |
| | Constructor.
|
| | ~CMemMap () |
| unsigned long | GetMap () |
| | Get base address.
|
| volatile unsigned int * | Uint (unsigned int offset=0) |
| | Get/set unsigned int.
|
| volatile unsigned short * | Ushort (unsigned int offset=0) |
| | Get/set unsigned short.
|
| volatile unsigned char * | Uchar (unsigned int offset=0) |
| | Get/set unsigned char.
|
Detailed Description
CMemMap maps a region in the processor's physical memory space so a process can access it (read/write) directly.
For example, this class allows direct and efficient interaction with the hardware peripherals. It is not typically used except at the lowest levels of this library.
Constructor & Destructor Documentation
| CMemMap::CMemMap |
( |
unsigned int |
base, |
|
|
unsigned int |
size | |
|
) |
| | |
Constructor.
- Parameters:
-
| base | physical address of the beginning of physical memory region |
| size | size of memory region in bytes |
Member Function Documentation
| unsigned long CMemMap::GetMap |
( |
|
) |
[inline] |
| volatile unsigned char* CMemMap::Uchar |
( |
unsigned int |
offset = 0 |
) |
[inline] |
Get/set unsigned char.
- Parameters:
-
| offset | offset into physical memory in bytes |
- Returns:
- address of physical memory at this location
| volatile unsigned int* CMemMap::Uint |
( |
unsigned int |
offset = 0 |
) |
[inline] |
Get/set unsigned int.
- Parameters:
-
| offset | offset into physical memory in bytes |
- Returns:
- mapped address of physical memory at this location
| volatile unsigned short* CMemMap::Ushort |
( |
unsigned int |
offset = 0 |
) |
[inline] |
Get/set unsigned short.
- Parameters:
-
| offset | offset into physical memory in bytes |
- Returns:
- address of physical memory at this location
The documentation for this class was generated from the following files: