SimAVR
AVR Simulator
USB

Data Structures

struct  avr_io_usb
 
struct  avr_usb_t
 

Macros

#define AVR_IOCTL_USB_WRITE   AVR_IOCTL_DEF('u','s','b','w')
 add port number to get the real IRQ More...
 
#define AVR_IOCTL_USB_READ   AVR_IOCTL_DEF('u','s','b','r')
 
#define AVR_IOCTL_USB_SETUP   AVR_IOCTL_DEF('u','s','b','s')
 
#define AVR_IOCTL_USB_RESET   AVR_IOCTL_DEF('u','s','b','R')
 
#define AVR_IOCTL_USB_VBUS   AVR_IOCTL_DEF('u','s','b','V')
 
#define AVR_IOCTL_USB_GETIRQ()   AVR_IOCTL_DEF('u','s','b',' ')
 
#define AVR_IOCTL_USB_NAK   -2
 
#define AVR_IOCTL_USB_STALL   -3
 
#define AVR_IOCTL_USB_OK   0
 

Typedefs

typedef struct avr_usb_t avr_usb_t
 

Enumerations

enum  { USB_IRQ_ATTACH = 0, USB_IRQ_COUNT }
 

Functions

void avr_usb_init (avr_t *avr, avr_usb_t *port)
 

Detailed Description

Macro Definition Documentation

#define AVR_IOCTL_USB_GETIRQ ( )    AVR_IOCTL_DEF('u','s','b',' ')
#define AVR_IOCTL_USB_NAK   -2
#define AVR_IOCTL_USB_OK   0
#define AVR_IOCTL_USB_READ   AVR_IOCTL_DEF('u','s','b','r')
#define AVR_IOCTL_USB_RESET   AVR_IOCTL_DEF('u','s','b','R')
#define AVR_IOCTL_USB_SETUP   AVR_IOCTL_DEF('u','s','b','s')
#define AVR_IOCTL_USB_STALL   -3
#define AVR_IOCTL_USB_VBUS   AVR_IOCTL_DEF('u','s','b','V')
#define AVR_IOCTL_USB_WRITE   AVR_IOCTL_DEF('u','s','b','w')

add port number to get the real IRQ

Typedef Documentation

typedef struct avr_usb_t avr_usb_t

Enumeration Type Documentation

anonymous enum
Enumerator
USB_IRQ_ATTACH 
USB_IRQ_COUNT 

Function Documentation

void avr_usb_init ( avr_t avr,
avr_usb_t port 
)

Here is the call graph for this function:

Here is the caller graph for this function: