LUFA Library  140928
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Dataflash.h File Reference

Board specific Dataflash driver header for the Atmel XMEGA A3BU Xplained. More...

Macros

#define DATAFLASH_CHIP1   (1 << 4)
 
#define DATAFLASH_NO_CHIP   0
 
#define DATAFLASH_PAGE_SIZE   1024
 
#define DATAFLASH_PAGES   8192
 
#define DATAFLASH_TOTALCHIPS   1
 

Functions

static void Dataflash_DeselectChip (void) ATTR_ALWAYS_INLINE
 
static uint8_t Dataflash_GetSelectedChip (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
 
static void Dataflash_Init (void)
 
static uint8_t Dataflash_ReceiveByte (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT
 
static void Dataflash_SelectChip (const uint8_t ChipMask) ATTR_ALWAYS_INLINE
 
static void Dataflash_SelectChipFromPage (const uint16_t PageAddress)
 
static void Dataflash_SendAddressBytes (uint16_t PageAddress, const uint16_t BufferByte)
 
static void Dataflash_SendByte (const uint8_t Byte) ATTR_ALWAYS_INLINE
 
static void Dataflash_ToggleSelectedChipCS (void)
 
static uint8_t Dataflash_TransferByte (const uint8_t Byte) ATTR_ALWAYS_INLINE
 
static void Dataflash_WaitWhileBusy (void)
 

Detailed Description

Board specific Dataflash driver header for the Atmel XMEGA A3BU Xplained board.

NameInfoSelect PinSPI Port
DATAFLASH_CHIP1AT45DB642D (8MB)PORTF.4USARTD0 (In SPI Mode)
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.