| LUFA Library 140302 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
Dataflash.h File Reference

Master include file for the board dataflash IC driver. More...

`#include "../../Common/Common.h"`
`#include "Board/Dataflash.h"`

## Macros
#define | DATAFLASH_CHIP_MASK(index) CONCAT_EXPANDED(DATAFLASH_CHIP, index)

## 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

Atmel Dataflash storage IC board hardware driver.

This file is the master dispatch header file for the board-specific Atmel dataflash driver, for boards containing Atmel Dataflash ICs for external non-volatile storage.

User code should include this file, which will in turn include the correct dataflash driver header file for the currently selected board.

If the `BOARD` value is set to `BOARD_USER`, this will include the `/Board/Dataflash`.h file in the user project directory.

For possible `BOARD` makefile values, see Board Types.