libjoybus
Joybus implementation for 32-bit MCUs
Loading...
Searching...
No Matches
N64 Controller Target

N64 controller Joybus target. More...

Data Structures

struct  joybus_n64_controller
 N64 controller Joybus target. More...

Macros

#define JOYBUS_N64_CONTROLLER(target)
 Macro to cast to a N64 controller target.

Typedefs

typedef void(* joybus_n64_controller_reset_cb_t) (struct joybus_n64_controller *controller)
 Callback type for N64 controller reset events.

Functions

void joybus_n64_controller_init (struct joybus_n64_controller *controller, uint8_t type)
 Initialize an N64 controller.

Detailed Description

N64 controller Joybus target.

Macro Definition Documentation

◆ JOYBUS_N64_CONTROLLER

#define JOYBUS_N64_CONTROLLER ( target)
Value:
((struct joybus_n64_controller *)(target))
N64 controller Joybus target.
Definition n64_controller.h:28

Macro to cast to a N64 controller target.

Typedef Documentation

◆ joybus_n64_controller_reset_cb_t

typedef void(* joybus_n64_controller_reset_cb_t) (struct joybus_n64_controller *controller)

Callback type for N64 controller reset events.

Parameters
controllerthe controller that was reset

Function Documentation

◆ joybus_n64_controller_init()

void joybus_n64_controller_init ( struct joybus_n64_controller * controller,
uint8_t type )

Initialize an N64 controller.

This function sets up the initial state, and registers SI command handlers for OEM N64 controller commands.

Parameters
controllerthe controller to initialize
typethe device type flags