sketchbook
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
n64.c File Reference
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include <string.h>
#include "gamepad.h"
#include "n64.h"
#include <usbdrv.h>

Macros

#define N64_DATA_PORT   PORTB
 
#define N64_DATA_DDR   DDRB
 
#define N64_DATA_PIN   PINB
 
#define N64_DATA_BIT_A   (1<<3)
 
#define N64_DATA_BIT_B   (1<<4)
 
#define N64_CAL   95
 
#define GCN64_REPORT_SIZE   5
 

Functions

void _tmpdata2report (unsigned volatile char results[65], uint8_t reportID)
 
void _n64UpdateA (unsigned char tmp)
 
void _n64UpdateB (unsigned char tmp)
 
Gamepadn64GetGamepad (void)
 

Variables

Gamepad N64Gamepad
 

Macro Definition Documentation

#define GCN64_REPORT_SIZE   5
#define N64_CAL   95
#define N64_DATA_BIT_A   (1<<3)
#define N64_DATA_BIT_B   (1<<4)
#define N64_DATA_DDR   DDRB
#define N64_DATA_PIN   PINB
#define N64_DATA_PORT   PORTB

Function Documentation

void _n64UpdateA ( unsigned char  tmp)
void _n64UpdateB ( unsigned char  tmp)
void _tmpdata2report ( unsigned volatile char  results[65],
uint8_t  reportID 
)
Gamepad* n64GetGamepad ( void  )

Variable Documentation

Gamepad N64Gamepad
Initial value:
= {
.report_size = GCN64_REPORT_SIZE,
.init = n64Init,
.update = n64Update,
.changed = n64Changed,
.buildReport = n64BuildReport,
.probe = n64Probe,
}
#define GCN64_REPORT_SIZE
Definition: n64.c:17