MCPcopy Create free account

hub / github.com/LowPowerLab/SPIFlash / functions

Functions20 in github.com/LowPowerLab/SPIFlash

MethodSPIFlash
Constructor. JedecID is optional but recommended, since this will ensure that the device is present and has a valid response get this from the datashe
SPIFlash.cpp:48
MethodblockErase32K
erase a 32Kbyte block
SPIFlash.cpp:278
MethodblockErase4K
erase a 4Kbyte block
SPIFlash.cpp:269
MethodblockErase64K
erase a 64Kbyte block
SPIFlash.cpp:287
Methodbusy
check if the chip is busy erasing/writing
SPIFlash.cpp:194
MethodchipErase
erase entire flash memory array may take several seconds depending on size, but is non blocking so you may wait for this to complete using busy() or c
SPIFlash.cpp:263
Methodcommand
Send a command to the flash chip, pass TRUE for isWrite when its a write command
SPIFlash.cpp:173
Methodend
cleanup
SPIFlash.cpp:306
Methodinitialize
setup SPI, read device ID etc...
SPIFlash.cpp:91
MethodreadByte
read 1 byte from flash memory
SPIFlash.cpp:150
MethodreadBytes
read unlimited # of bytes
SPIFlash.cpp:161
MethodreadDeviceId
Get the manufacturer and device ID bytes (as a short word)
SPIFlash.cpp:116
MethodreadStatus
return the STATUS register
SPIFlash.cpp:207
MethodreadUniqueId
Get the 64 bit unique identifier, stores it in UNIQUEID[8]. Only needs to be called once, ie after initialize Returns the byte pointer to the UNIQUEID
SPIFlash.cpp:136
Methodselect
Select the flash chip
SPIFlash.cpp:54
Methodsleep
SPIFlash.cpp:295
Methodunselect
UNselect the flash chip
SPIFlash.cpp:76
Methodwakeup
SPIFlash.cpp:300
MethodwriteByte
Write 1 byte to flash memory WARNING: you can only write to previously erased memory locations (see datasheet) use the block erase commands to first c
SPIFlash.cpp:220
MethodwriteBytes
write multiple bytes to flash memory (up to 64K) WARNING: you can only write to previously erased memory locations (see datasheet) use the block erase
SPIFlash.cpp:234