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_INTENSITY()
| static uint32_t PURUPURU_EFFECT1_INTENSITY |
( |
uint8_t | x | ) |
|
|
inlinestatic |
◆ PURUPURU_EFFECT2_LINTENSITY()
| static uint32_t PURUPURU_EFFECT2_LINTENSITY |
( |
uint8_t | x | ) |
|
|
inlinestatic |
◆ PURUPURU_EFFECT2_UINTENSITY()
| static uint32_t PURUPURU_EFFECT2_UINTENSITY |
( |
uint8_t | x | ) |
|
|
inlinestatic |
◆ 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. |
Referenced by main().
◆ 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_EFFECT1_POWERSAVE
| const uint8_t PURUPURU_EFFECT1_POWERSAVE = (15) |
|
static |
◆ PURUPURU_EFFECT1_PULSE
| const uint8_t PURUPURU_EFFECT1_PULSE = (8 << 4) |
|
static |
◆ PURUPURU_EFFECT2_DECAY
| const uint8_t PURUPURU_EFFECT2_DECAY = (8 << 4) |
|
static |
◆ PURUPURU_EFFECT2_PULSE
| const uint8_t PURUPURU_EFFECT2_PULSE = (8) |
|
static |
◆ PURUPURU_SPECIAL_MOTOR1
| const uint8_t PURUPURU_SPECIAL_MOTOR1 = (1 << 4) |
|
static |
◆ PURUPURU_SPECIAL_MOTOR2
| const uint8_t PURUPURU_SPECIAL_MOTOR2 = (1 << 7) |
|
static |
◆ PURUPURU_SPECIAL_PULSE
| const uint8_t PURUPURU_SPECIAL_PULSE = (1) |
|
static |