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

Go to the source code of this file.

Macros

#define M29_EPMP_CS_BASE_ADDRESS   GFX_EPMP_CS2_BASE_ADDRESS
 Flash memory device address.
#define M29W320_FLASH_SIZE   0x200000
 Capacity of flash memory device.
#define SST_ENABLE_STDOUT_ERRORS
 Allows this driver to report errors to stdout.

Functions

int m29w320_writeWord (uint32_t address, uint16_t data)
 Write a word (16 bit) to the flash memory.
int m29w320_writeBytes (uint32_t address, const uint8_t *data, size_t len)
 Write a series of bytes to the flash memory.
uint16_t m29w320_readWord (uint32_t address)
 Read a word (16 bit) from the flash memory.
void m29w320_readBytes (uint32_t address, uint8_t *buffer, size_t bufferLen)
 Read a series of bytes from the flash memory.
void m29w320_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 m29w320_eraseChip ()
 Erase everything in the flash memory.
void m29w320_eraseBlock (uint32_t address)
 Erase a given block in the flash memory.
int m29w320_size ()
 Get the size of the device.
int m29w320_test ()
 Checks the device's manufacture and device ID.

Detailed Description