LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
DataRam.c File Reference
#include "DataRam.h"
#include "fatutil.h"

Go to the source code of this file.

int InitializedFlag = 1
 
uint8_t DiskImage []
 
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.
 

Detailed Description

Functions to manage the physical Dataflash media, including reading and writing of blocks of data. These functions are called by the SCSI layer when data must be stored or retrieved to/from the physical storage media. If a different media is used (such as a SD card or EEPROM), functions similar to these will need to be generated.

Definition in file DataRam.c.

Variable Documentation

uint8_t DiskImage[DATA_RAM_PHYSICAL_SIZE]

Definition at line 130 of file DataRam.c.

int InitializedFlag = 1

Definition at line 42 of file DataRam.c.