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

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

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
DataRam.h File Reference

## Detailed Description

Header file for DataflashManager.c.

Definition in file DataRam.h.

`#include "../MassStorage.h"`
`#include "../Descriptors.h"`
`#include "USB.h"`

Go to the source code of this file.

## Macros
#define | VIRTUAL_MEMORY_BYTES DATA_RAM_VIRTUAL_SIZE
#define | DATA_RAM_BLOCK_SIZE 0x200
#define | VIRTUAL_MEMORY_BLOCK_SIZE 512
#define | VIRTUAL_MEMORY_BLOCKS (VIRTUAL_MEMORY_BYTES / VIRTUAL_MEMORY_BLOCK_SIZE)

## Functions
void | DataRam_WriteBlocks (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo, const uint32_t BlockAddress, uint16_t TotalBlocks)
| DataRAM write blocks function.
void | DataRam_ReadBlocks (USB_ClassInfo_MS_Device_t *const MSInterfaceInfo, const uint32_t BlockAddress, uint16_t TotalBlocks)
| DataRAM read blocks function.
uint32_t | MassStorage_GetAddressInImage (uint32_t startblock, uint16_t requestblocks, uint16_t *availableblocks)
| DataRAM read blocks function.
void | DataRam_Initialize (void)
| DataRAM Initilisation function.

## Macro Definition Documentation

#define DATA_RAM_BLOCK_SIZE 0x200

Definition at line 72 of file DataRam.h.

#define VIRTUAL_MEMORY_BLOCK_SIZE 512

Block size of the device. This is kept at 512 to remain compatible with the OS despite the underlying storage media (Dataflash) using a different native block size. Do not change this value.

Definition at line 77 of file DataRam.h.

#define VIRTUAL_MEMORY_BLOCKS (VIRTUAL_MEMORY_BYTES / VIRTUAL_MEMORY_BLOCK_SIZE)

Total number of blocks of the virtual memory for reporting to the host as the device's total capacity. Do not change this value; change VIRTUAL_MEMORY_BYTES instead to alter the media size.

Definition at line 82 of file DataRam.h.

#define VIRTUAL_MEMORY_BYTES DATA_RAM_VIRTUAL_SIZE

Start address and size of RAM area which used for disk image Total number of bytes of the storage medium, comprised of one or more Dataflash ICs.

Definition at line 71 of file DataRam.h.