Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
mcp251x_platform_data Struct Reference

#include <mcp251x.h>

Data Fields

unsigned long oscillator_frequency
 
unsigned long irq_flags
 
int(* board_specific_setup )(struct spi_device *spi)
 
int(* transceiver_enable )(int enable)
 
int(* power_enable )(int enable)
 

Detailed Description

struct mcp251x_platform_data - MCP251X SPI CAN controller platform data : - oscillator frequency in Hz : - IRQF configuration flags : - called before probing the chip (power,reset) : - called to power on/off the transceiver : - called to power on/off the mcp and the transceiver

Please note that you should define power_enable or transceiver_enable or none of them. Defining both of them is no use.

Definition at line 26 of file mcp251x.h.

Field Documentation

int(* board_specific_setup)(struct spi_device *spi)

Definition at line 29 of file mcp251x.h.

unsigned long irq_flags

Definition at line 28 of file mcp251x.h.

unsigned long oscillator_frequency

Definition at line 27 of file mcp251x.h.

int(* power_enable)(int enable)

Definition at line 31 of file mcp251x.h.

int(* transceiver_enable)(int enable)

Definition at line 30 of file mcp251x.h.


The documentation for this struct was generated from the following file: