32 #ifndef __DC_MAPLE_PURUPURU_H
33 #define __DC_MAPLE_PURUPURU_H
35 #include <sys/cdefs.h>
73 #define PURUPURU_EFFECT2_UINTENSITY(x) (x << 4)
83 #define PURUPURU_EFFECT2_LINTENSITY(x) (x)
89 #define PURUPURU_EFFECT2_DECAY (8 << 4)
97 #define PURUPURU_EFFECT2_PULSE (8)
108 #define PURUPURU_EFFECT1_INTENSITY(x) (x << 4)
119 #define PURUPURU_EFFECT1_PULSE (8 << 4)
125 #define PURUPURU_EFFECT1_POWERSAVE (15)
137 #define PURUPURU_SPECIAL_MOTOR1 (1 << 4)
145 #define PURUPURU_SPECIAL_MOTOR2 (1 << 7)
151 #define PURUPURU_SPECIAL_PULSE (1)
183 void purupuru_shutdown();
uint8 effect2
2nd effect field.
Definition: purupuru.h:52
uint8 effect1
1st effect field.
Definition: purupuru.h:55
uint8 special
Special effects field.
Definition: purupuru.h:58
struct purupuru_effect purupuru_effect_t
Effect generation structure.
One maple device.
Definition: maple.h:237
Maple Bus driver interface.
int purupuru_rumble_raw(maple_device_t *dev, uint32 effect)
Send a raw effect to a jump pack.
Effect generation structure.
Definition: purupuru.h:47
unsigned long uint32
32-bit unsigned integer
Definition: types.h:28
unsigned char uint8
8-bit unsigned integer
Definition: types.h:30
int purupuru_rumble(maple_device_t *dev, purupuru_effect_t *effect)
Send an effect to a jump pack.
uint8 duration
The duration of the effect. No idea on units...
Definition: purupuru.h:49