Main Page | Class List | File List | Class Members | File Members

spi_adapter Struct Reference

#include <spi.h>

Collaboration diagram for spi_adapter:

Collaboration graph
[legend]
List of all members.

Public Attributes

char name [32]
spi_algorithm * algo
void * algo_data
int(* set_spi_adap_cs )(struct spi_adapter *, int id, int val)
spi_cs * cs
module * owner
void * data
semaphore lock
int inode
int id
list_head clients
list_head adapters

Detailed Description

struct spi_adapter is the structure used to identify a physical SPI bus along with the access algorithms necessary to access it.


Member Data Documentation

struct list_head spi_adapter::adapters
 

List of all adapters.

struct spi_algorithm* spi_adapter::algo
 

the algorithm to access the bus

void* spi_adapter::algo_data
 

Algorithm specific data

struct list_head spi_adapter::clients
 

List of attached clients.

struct spi_cs* spi_adapter::cs
 

table of assigned CS id:s of this board

void* spi_adapter::data
 

private data for the adapter

int spi_adapter::id
 

unique id

int spi_adapter::inode
 

No need to set this when you initialize the adapter

struct semaphore spi_adapter::lock
 

Our lock.

char spi_adapter::name[32]
 

This name is used to uniquely identify the adapter. It should be the same as the module name.

struct module* spi_adapter::owner
 

This may be NULL, or should point to the module struct

int(* spi_adapter::set_spi_adap_cs)(struct spi_adapter *,int id,int val)
 

Set ( assret/release ) spi chip select line


The documentation for this struct was generated from the following file:
Generated on Sun Oct 24 20:23:18 2004 for Linux SPI subsystem by doxygen 1.3.6