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
ISPI.h
- Committer:
- s_ain
- Date:
- 2011-03-01
- Revision:
- 0:d0117f54a7ee
File content as of revision 0:d0117f54a7ee:
#pragma once
class ISPI
{
public:
enum PinLevel
{
High,
Low
};
virtual ~ISPI() {}
virtual void SetFrequency(int frequency) = 0;
virtual void ChangeCS(PinLevel pl) = 0;
virtual void Write(int value) = 0;
virtual int Read(void) = 0;
virtual void Write(const void* buffer, int length) = 0;
virtual void Read(void* buffer, int length) = 0;
};
