36#include <joybus/bus.h>
41#define JOYBUS_TARGET_N64_PAK(pak) ((struct joybus_target_n64_pak *)(pak))
#define JOYBUS_PAK_BLOCK_SIZE
Size of a Joybus N64 pak read/write block.
Definition bus.h:56
API for implementing an N64 pak.
Definition n64_pak.h:46
void(* write_block)(struct joybus_target_n64_pak *pak, uint16_t addr, const uint8_t buf[JOYBUS_PAK_BLOCK_SIZE])
Called when a host requests to write a 32-byte block to the pak.
Definition n64_pak.h:70
void(* read_block)(struct joybus_target_n64_pak *pak, uint16_t addr, uint8_t buf[JOYBUS_PAK_BLOCK_SIZE])
Called when a host requests to read a 32-byte block from the pak.
Definition n64_pak.h:57
An N64 pak, such as a Rumble Pak or Controller Pak.
Definition n64_pak.h:76
const struct joybus_target_n64_pak_api * api
API for handling reads and writes to the pak.
Definition n64_pak.h:78