36#include <joybus/bus.h>
42#define JOYBUS_TARGET_N64_PAK(pak) ((struct joybus_target_n64_pak *)(pak))
Common definitions for N64 paks.
#define JOYBUS_N64_PAK_BLOCK_SIZE
Size of a pak read or write block in bytes.
Definition n64_pak.h:10
API for implementing an N64 pak.
Definition n64_pak.h:47
int(* write_block)(struct joybus_target_n64_pak *pak, uint16_t addr, const uint8_t buf[JOYBUS_N64_PAK_BLOCK_SIZE])
Called when a host requests to write a 32-byte block to the pak.
Definition n64_pak.h:88
int(* read_block)(struct joybus_target_n64_pak *pak, uint16_t addr, uint8_t buf[JOYBUS_N64_PAK_BLOCK_SIZE])
Called when a host requests to read a 32-byte block from the pak.
Definition n64_pak.h:66
An N64 pak, such as a Rumble Pak or Controller Pak.
Definition n64_pak.h:94
const struct joybus_target_n64_pak_api * api
API for handling reads and writes to the pak.
Definition n64_pak.h:96