Main Page | File List | Globals | Related Pages

spi.c File Reference

Module to simulate the AVR's SPI module. More...

Go to the source code of this file.

Functions

SPIIntr_T * spi_intr_new (void)
void spi_intr_construct (SPIIntr_T *spi)
void spi_intr_destroy (void *spi)
SPI_T * spi_new (void)
void spi_construct (SPI_T *spi)
void spi_destroy (void *spi)
uint8_t spi_port_rd (int addr)
void spi_port_wr (uint8_t val)


Detailed Description

Module to simulate the AVR's SPI module.

Definition in file spi.c.


Function Documentation

SPIIntr_T* spi_intr_new void   ) 
 

Allocate a new SPI interrupt.

Definition at line 76 of file spi.c.

References avr_new, class_overload_destroy(), spi_intr_construct(), and spi_intr_destroy().

Referenced by dev_supp_create_core().

void spi_intr_construct SPIIntr_T *  spi  ) 
 

Constructor for spi interrupt object.

Definition at line 90 of file spi.c.

References avr_error, and vdev_construct().

Referenced by spi_intr_new().

void spi_intr_destroy void *  spi  ) 
 

Destructor for spi interrupt object.

Definition at line 107 of file spi.c.

References vdev_destroy().

Referenced by spi_intr_new().

SPI_T* spi_new void   ) 
 

Allocate a new SPI structure.

Definition at line 230 of file spi.c.

References avr_new, class_overload_destroy(), spi_construct(), and spi_destroy().

Referenced by dev_supp_create_core().

void spi_construct SPI_T *  spi  ) 
 

Constructor for SPI object.

Definition at line 244 of file spi.c.

References avr_error, and vdev_construct().

Referenced by spi_new().

void spi_destroy void *  spi  ) 
 

Destructor for SPI object.

Definition at line 260 of file spi.c.

References vdev_destroy().

Referenced by spi_new().


Automatically generated by Doxygen 1.3.8 on 11 Aug 2004.