Out-of-office display, GFX
 All Classes Files Functions Variables Enumerations Enumerator Groups
Macros | Functions
sst39FlashDriver.h File Reference
#include <stdint.h>
#include <stddef.h>

Go to the source code of this file.

Macros

#define SST_EPMP_CS_BASE_ADDRESS   GFX_EPMP_CS2_BASE_ADDRESS
 Flash memory device address.
#define SST_FLASH_SIZE   0x40000
 Capacity of flash memory device.
#define SST_ENABLE_STDOUT_ERRORS
 Allows this driver to report errors to stdout.

Functions

int sst39_writeWord (uint32_t address, uint16_t data)
 Write a word (16 bit) to the flash memory.
int sst39_writeBytes (uint32_t address, const uint8_t *data, size_t len)
 Write a series of bytes to the flash memory.
uint16_t sst39_readWord (uint32_t address)
 Read a word (16 bit) from the flash memory.
void sst39_readBytes (uint32_t address, uint8_t *buffer, size_t bufferLen)
 Read a series of bytes from the flash memory.
void sst39_readBytesBlocking (uint32_t address, uint8_t *buffer, size_t bufferLen)
 Read a series of bytes from the flash memory, not re-enabling EPMP bypass mode between writes.
void sst39_eraseChip ()
 Erase everything in the flash memory.
void sst39_eraseSector (uint32_t address)
 Erase a given sector in the flash memory.
int sst39_size ()
 Get the size of the device.
int sst39_test ()
 Checks the device's manufacture and device ID.

Detailed Description