2012-12-19 09:30:18 +00:00
|
|
|
#pragma once
|
|
|
|
|
2015-12-13 07:07:03 +00:00
|
|
|
class CSram
|
2010-06-29 02:11:22 +00:00
|
|
|
{
|
|
|
|
public:
|
2015-12-13 07:07:03 +00:00
|
|
|
CSram(bool ReadOnly);
|
|
|
|
~CSram();
|
2010-06-29 02:11:22 +00:00
|
|
|
|
2021-01-19 05:58:59 +00:00
|
|
|
void DmaFromSram(uint8_t * dest, int32_t StartOffset, uint32_t len);
|
|
|
|
void DmaToSram(uint8_t * Source, int32_t StartOffset, uint32_t len);
|
2010-06-29 02:11:22 +00:00
|
|
|
|
|
|
|
private:
|
2016-04-18 21:29:24 +00:00
|
|
|
CSram(void); // Disable default constructor
|
|
|
|
CSram(const CSram&); // Disable copy constructor
|
|
|
|
CSram& operator=(const CSram&); // Disable assignment
|
|
|
|
|
2015-12-13 07:07:03 +00:00
|
|
|
bool LoadSram();
|
2010-06-29 02:11:22 +00:00
|
|
|
|
2016-04-18 21:29:24 +00:00
|
|
|
bool m_ReadOnly;
|
|
|
|
CFile m_File;
|
2015-01-31 19:27:27 +00:00
|
|
|
};
|