Detailed Description
Board specific Dataflash driver header for the EVK527.
- Note:
- This file should not be included directly. It is automatically included as needed by the dataflash driver dispatch header located in LUFA/Drivers/Board/Dataflash.h.
Define Documentation
#define DATAFLASH_CHIP1 0 |
Mask for the first dataflash chip selected.
#define DATAFLASH_NO_CHIP DATAFLASH_CHIPCS_MASK |
Mask for no dataflash chip selected.
#define DATAFLASH_PAGE_SIZE 512 |
Internal main memory page size for the board's dataflash IC.
#define DATAFLASH_PAGES 8192 |
Total number of pages inside the board's dataflash IC.
#define DATAFLASH_TOTALCHIPS 1 |
Constant indicating the total number of dataflash ICs mounted on the selected board.
Function Documentation
static void Dataflash_SelectChipFromPage |
( |
const uint16_t |
PageAddress |
) |
[inline, static] |
Selects a dataflash IC from the given page number, which should range from 0 to ((DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS) - 1). For boards containing only one dataflash IC, this will select DATAFLASH_CHIP1. If the given page number is outside the total number of pages contained in the boards dataflash ICs, all dataflash ICs are deselected.
- Parameters:
-
[in] | PageAddress | Address of the page to manipulate, ranging from ((DATAFLASH_PAGES * DATAFLASH_TOTALCHIPS) - 1). |
static void Dataflash_SendAddressBytes |
( |
uint16_t |
PageAddress, |
|
|
const uint16_t |
BufferByte | |
|
) |
| | [inline, static] |
Sends a set of page and buffer address bytes to the currently selected dataflash IC, for use with dataflash commands which require a complete 24-byte address.
- Parameters:
-
[in] | PageAddress | Page address within the selected dataflash IC |
[in] | BufferByte | Address within the dataflash's buffer |