Maple driver for vibration pack peripherals
More...
|
| file | purupuru.h |
| | Definitions for using the Puru Puru (Jump) Pack.
|
| |
Maple driver for vibration pack peripherals
◆ PURUPURU_EFFECT1_POWERSAVE()
| static const uint8_t PURUPURU_EFFECT1_POWERSAVE |
( |
"Please see purupuru_effect_t for modern equivalent." | | ) |
|
|
static |
◆ PURUPURU_EFFECT1_PULSE()
| static const uint8_t PURUPURU_EFFECT1_PULSE |
( |
"Please see purupuru_effect_t for modern equivalent." | | ) |
|
|
static |
◆ PURUPURU_EFFECT2_DECAY()
| static const uint8_t PURUPURU_EFFECT2_DECAY |
( |
"Please see purupuru_effect_t for modern equivalent." | | ) |
|
|
static |
◆ PURUPURU_EFFECT2_PULSE()
| static const uint8_t PURUPURU_EFFECT2_PULSE |
( |
"Please see purupuru_effect_t for modern equivalent." | | ) |
|
|
static |
◆ purupuru_rumble()
Send an effect to a jump pack.
This function sends an effect created with the purupuru_effect_t structure to a jump pack to be executed.
- Parameters
-
| dev | The device to send the command to. |
| effect | The effect to send. |
- Return values
-
| MAPLE_EOK | On success. |
| MAPLE_EAGAIN | If the command couldn't be sent. Try again later. |
| MAPLE_EINVALID | The command is not being sent due to invalid input. |
◆ purupuru_rumble_raw()
Send a raw effect to a jump pack.
This function sends an effect to a jump pack to be executed. This is for if you want to bypass KOS-based error checking. This is not recommended except for testing purposes.
- Parameters
-
| dev | The device to send the command to. |
| effect | The effect to send. |
- Return values
-
| MAPLE_EOK | On success. |
| MAPLE_EAGAIN | If the command couldn't be sent. Try again later. |
◆ PURUPURU_SPECIAL_MOTOR1()
| static const uint8_t PURUPURU_SPECIAL_MOTOR1 |
( |
"Please see purupuru_effect_t for modern equivalent." | | ) |
|
|
static |
◆ PURUPURU_SPECIAL_MOTOR2()
| static const uint8_t PURUPURU_SPECIAL_MOTOR2 |
( |
"Please see purupuru_effect_t for modern equivalent." | | ) |
|
|
static |
◆ PURUPURU_SPECIAL_PULSE()
| static const uint8_t PURUPURU_SPECIAL_PULSE |
( |
"Please see purupuru_effect_t for modern equivalent." | | ) |
|
|
static |
◆ uint32_t()