include/spi/spi.h File Reference

Master SPI driver interface. More...

#include <stdint.h>
#include <stdbool.h>
#include <compiler.h>
#include <assert.h>
#include <gpio/portmux_gpio.h>
#include <buffer.h>
#include <dmac/dma_controller.h>
#include <workqueue.h>

Include dependency graph for spi.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  spi_master
struct  spi_device
struct  spi_request

Defines

#define SPI_REQUEST_STOP   (1 << 0)

Typedefs

typedef uint32_t spi_config_t

Functions

static void portmux_enable_spi_cs (gpio_pin_t pin)
 Configure the portmux to enable a SPI chipselect pin.


Detailed Description

Master SPI driver interface.

This is the interface to master SPI driver which supports asynchronous operation.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file spi.h.


Define Documentation

#define SPI_REQUEST_STOP   (1 << 0)

SPI request flag: Deselect device after transfer

Definition at line 104 of file spi.h.


Typedef Documentation

typedef uint32_t spi_config_t

Configuration of a SPI device

Definition at line 67 of file spi.h.


Function Documentation

static void portmux_enable_spi_cs ( gpio_pin_t  pin  )  [inline, static]

Configure the portmux to enable a SPI chipselect pin.

Parameters:
pin The SPI chipselect pin to enable.

Definition at line 141 of file spi.h.

References portmux_select_gpio_pin().

Here is the call graph for this function:


Generated on Tue Sep 15 10:18:44 2009 for libavr32 by  doxygen 1.5.8