SPI.h File Reference

Master include file for the SPI peripheral driver. More...

#include <stdbool.h>

Defines

#define SPI_SPEED_FCPU_DIV_2   SPI_USE_DOUBLESPEED
#define SPI_SPEED_FCPU_DIV_4   0
#define SPI_SPEED_FCPU_DIV_8   (SPI_USE_DOUBLESPEED | (1 << SPR0))
#define SPI_SPEED_FCPU_DIV_16   (1 << SPR0)
#define SPI_SPEED_FCPU_DIV_32   (SPI_USE_DOUBLESPEED | (1 << SPR1))
#define SPI_SPEED_FCPU_DIV_64   (SPI_USE_DOUBLESPEED | (1 << SPR1) | (1 << SPR0))
#define SPI_SPEED_FCPU_DIV_128   ((1 << SPR1) | (1 << SPR0))
#define SPI_SCK_LEAD_RISING   (0 << CPOL)
#define SPI_SCK_LEAD_FALLING   (1 << CPOL)
#define SPI_SAMPLE_LEADING   (0 << CPHA)
#define SPI_SAMPLE_TRAILING   (1 << CPHA)
#define SPI_MODE_SLAVE   (0 << MSTR)
#define SPI_MODE_MASTER   (1 << MSTR)

Functions

static void SPI_Init (const uint8_t SPIOptions)
static void SPI_ShutDown (void)
static uint8_t SPI_TransferByte (const uint8_t Byte) ATTR_ALWAYS_INLINE
static void SPI_SendByte (const uint8_t Byte) ATTR_ALWAYS_INLINE
static uint8_t SPI_ReceiveByte (void) ATTR_ALWAYS_INLINE ATTR_WARN_UNUSED_RESULT

Detailed Description

Hardware SPI subsystem driver for the supported USB AVRs models.

Generated by  doxygen 1.6.3