BayEOSArduino Library
Classes | Public Member Functions | List of all members
SPIFlash Class Reference

Public Member Functions

 SPIFlash (uint8_t cs=CS)
 
 SPIFlash (int8_t *SPIPinsArray)
 
bool begin (uint32_t flashChipSize=0)
 
void setClock (uint8_t clockdiv)
 
bool libver (uint8_t *b1, uint8_t *b2, uint8_t *b3)
 
bool sfdpPresent (void)
 
uint8_t error (bool verbosity=false)
 
uint16_t getManID (void)
 
uint32_t getJEDECID (void)
 
uint64_t getUniqueID (void)
 
uint32_t getAddress (uint16_t size)
 
uint16_t sizeofStr (String &inputStr)
 
uint32_t getCapacity (void)
 
uint32_t getMaxPage (void)
 
float functionRunTime (void)
 
bool writeByte (uint32_t _addr, uint8_t data, bool errorCheck=true)
 
uint8_t readByte (uint32_t _addr, bool fastRead=false)
 
bool writeByteArray (uint32_t _addr, uint8_t *data_buffer, size_t bufferSize, bool errorCheck=true)
 
bool readByteArray (uint32_t _addr, uint8_t *data_buffer, size_t bufferSize, bool fastRead=false)
 
bool writeChar (uint32_t _addr, int8_t data, bool errorCheck=true)
 
int8_t readChar (uint32_t _addr, bool fastRead=false)
 
bool writeCharArray (uint32_t _addr, char *data_buffer, size_t bufferSize, bool errorCheck=true)
 
bool readCharArray (uint32_t _addr, char *data_buffer, size_t buffer_size, bool fastRead=false)
 
bool writeShort (uint32_t _addr, int16_t data, bool errorCheck=true)
 
int16_t readShort (uint32_t _addr, bool fastRead=false)
 
bool writeWord (uint32_t _addr, uint16_t data, bool errorCheck=true)
 
uint16_t readWord (uint32_t _addr, bool fastRead=false)
 
bool writeLong (uint32_t _addr, int32_t data, bool errorCheck=true)
 
int32_t readLong (uint32_t _addr, bool fastRead=false)
 
bool writeULong (uint32_t _addr, uint32_t data, bool errorCheck=true)
 
uint32_t readULong (uint32_t _addr, bool fastRead=false)
 
bool writeFloat (uint32_t _addr, float data, bool errorCheck=true)
 
float readFloat (uint32_t _addr, bool fastRead=false)
 
bool writeStr (uint32_t _addr, String &data, bool errorCheck=true)
 
bool readStr (uint32_t _addr, String &data, bool fastRead=false)
 
template<class T >
bool writeAnything (uint32_t _addr, const T &data, bool errorCheck=true)
 
template<class T >
bool readAnything (uint32_t _addr, T &data, bool fastRead=false)
 
bool eraseSection (uint32_t _addr, uint32_t _sz)
 
bool eraseSector (uint32_t _addr)
 
bool eraseBlock32K (uint32_t _addr)
 
bool eraseBlock64K (uint32_t _addr)
 
bool eraseChip (void)
 
bool suspendProg (void)
 
bool resumeProg (void)
 
bool powerDown (void)
 
bool powerUp (void)
 

The documentation for this class was generated from the following files: