Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SerialFlash by
Diff: SST25DeviceImpl.h
- Revision:
- 2:6f8ab876b516
- Parent:
- 0:d0117f54a7ee
--- a/SST25DeviceImpl.h Wed Mar 02 00:28:03 2011 +0000
+++ b/SST25DeviceImpl.h Wed Mar 02 16:09:09 2011 +0000
@@ -2,13 +2,13 @@
#include <string>
-class ISPI;
+class ISPICommand;
class SST25DeviceImpl
{
public:
- static bool IsSupported(ISPI* pSPI);
- static SST25DeviceImpl* Create(ISPI* pSPI);
+ static bool IsSupported(ISPICommand* pSPICommand);
+ static SST25DeviceImpl* Create(ISPICommand* pSPICommand);
~SST25DeviceImpl(void);
std::string GetDeviceName() const;
@@ -18,7 +18,7 @@
void ChipErase(void);
private:
- ISPI* const _pSPI;
+ ISPICommand* const _pSPICommand;
int _operationFrequency;
struct DeviceProperty
{
@@ -30,11 +30,11 @@
int operationClkHz;
} const& _property;
- static const DeviceProperty* findMatchDevice(ISPI* pSPI);
+ static const DeviceProperty* findMatchDevice(ISPICommand* pSPICommand);
- SST25DeviceImpl(ISPI* pSPI, const DeviceProperty& property);
- void writeAddress(int address);
- static void readId(ISPI* pSPI, int& manufacturersId, int& deviceId);
+ SST25DeviceImpl(ISPICommand* pSPICommand, const DeviceProperty& property);
+ static void readId(ISPICommand* pSPICommand, int& manufacturersId, int& deviceId);
+ static void fillAddress(char* pBuffer, int address);
int readStatusRegister(void);
void writeStatusRegister(int value);
