Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LowPowerLab/SPIFlash
/ functions
Functions
20 in github.com/LowPowerLab/SPIFlash
⨍
Functions
20
◇
Types & classes
1
Method
SPIFlash
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
Method
blockErase32K
erase a 32Kbyte block
SPIFlash.cpp:278
Method
blockErase4K
erase a 4Kbyte block
SPIFlash.cpp:269
Method
blockErase64K
erase a 64Kbyte block
SPIFlash.cpp:287
Method
busy
check if the chip is busy erasing/writing
SPIFlash.cpp:194
Method
chipErase
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
Method
command
Send a command to the flash chip, pass TRUE for isWrite when its a write command
SPIFlash.cpp:173
Method
end
cleanup
SPIFlash.cpp:306
Method
initialize
setup SPI, read device ID etc...
SPIFlash.cpp:91
Method
readByte
read 1 byte from flash memory
SPIFlash.cpp:150
Method
readBytes
read unlimited # of bytes
SPIFlash.cpp:161
Method
readDeviceId
Get the manufacturer and device ID bytes (as a short word)
SPIFlash.cpp:116
Method
readStatus
return the STATUS register
SPIFlash.cpp:207
Method
readUniqueId
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
Method
select
Select the flash chip
SPIFlash.cpp:54
Method
sleep
SPIFlash.cpp:295
Method
unselect
UNselect the flash chip
SPIFlash.cpp:76
Method
wakeup
SPIFlash.cpp:300
Method
writeByte
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
Method
writeBytes
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