SimAVR
AVR Simulator
avr_io_t Struct Reference

IO module base struct Modules uses that as their first member in their own struct. More...

#include <sim_io.h>

Collaboration diagram for avr_io_t:

Data Fields

struct avr_io_tnext
 
avr_tavr
 avr we are attached to More...
 
const char * kind
 pretty name, for debug More...
 
const char ** irq_names
 IRQ names. More...
 
uint32_t irq_ioctl_get
 used to get irqs from this module More...
 
int irq_count
 number of (optional) irqs More...
 
struct avr_irq_tirq
 optional external IRQs More...
 
void(* reset )(struct avr_io_t *io)
 Called at reset time. More...
 
int(* ioctl )(struct avr_io_t *io, uint32_t ctl, void *io_param)
 Called externally. allow access to io modules and so on. More...
 
void(* dealloc )(struct avr_io_t *io)
 Optional, a function to free up allocated system resources. More...
 

Detailed Description

IO module base struct Modules uses that as their first member in their own struct.

Field Documentation

avr_t* avr

avr we are attached to

void(* dealloc) (struct avr_io_t *io)

Optional, a function to free up allocated system resources.

int(* ioctl) (struct avr_io_t *io, uint32_t ctl, void *io_param)

Called externally. allow access to io modules and so on.

struct avr_irq_t* irq

optional external IRQs

int irq_count

number of (optional) irqs

uint32_t irq_ioctl_get

used to get irqs from this module

const char** irq_names

IRQ names.

const char* kind

pretty name, for debug

struct avr_io_t* next
void(* reset) (struct avr_io_t *io)

Called at reset time.


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