SimAVR
AVR Simulator
avr_spi.c File Reference
#include <stdio.h>
#include "avr_spi.h"
Include dependency graph for avr_spi.c:

Functions

static avr_cycle_count_t avr_spi_raise (struct avr_t *avr, avr_cycle_count_t when, void *param)
 
static uint8_t avr_spi_read (struct avr_t *avr, avr_io_addr_t addr, void *param)
 
static void avr_spi_write (struct avr_t *avr, avr_io_addr_t addr, uint8_t v, void *param)
 
static void avr_spi_irq_input (struct avr_irq_t *irq, uint32_t value, void *param)
 
void avr_spi_reset (struct avr_io_t *io)
 
void avr_spi_init (avr_t *avr, avr_spi_t *p)
 

Variables

static const char * irq_names [SPI_IRQ_COUNT]
 
static avr_io_t _io
 

Function Documentation

static void avr_spi_irq_input ( struct avr_irq_t irq,
uint32_t  value,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static avr_cycle_count_t avr_spi_raise ( struct avr_t avr,
avr_cycle_count_t  when,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static uint8_t avr_spi_read ( struct avr_t avr,
avr_io_addr_t  addr,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void avr_spi_reset ( struct avr_io_t io)

Here is the call graph for this function:

static void avr_spi_write ( struct avr_t avr,
avr_io_addr_t  addr,
uint8_t  v,
void *  param 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

avr_io_t _io
static
Initial value:
= {
.kind = "spi",
.reset = avr_spi_reset,
.irq_names = irq_names,
}
static const char * irq_names[SPI_IRQ_COUNT]
Definition: avr_spi.c:94
void avr_spi_reset(struct avr_io_t *io)
Definition: avr_spi.c:88
const char* irq_names[SPI_IRQ_COUNT]
static
Initial value:
= {
[SPI_IRQ_INPUT] = "8<in",
[SPI_IRQ_OUTPUT] = "8<out",
}
Definition: avr_spi.h:37
Definition: avr_spi.h:38