KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
purupuru_effect_t Union Reference

Effect generation structure. More...

#include <purupuru.h>

Data Fields

uint32_t raw
 Access the raw 32-bit value to be sent to the puru.
 
struct { 
 
   bool   cont: 1 
 Continuous Vibration. More...
 
   uint32_t   res: 3 
 Reserved. More...
 
   uint32_t   motor: 4 
 Motor number. More...
 
   uint32_t   bpow: 3 
 Backward direction (- direction) intensity setting bits. More...
 
   bool   div: 1 
 Divergent vibration. More...
 
   uint32_t   fpow: 3 
 Forward direction (+ direction) intensity setting bits. More...
 
   bool   conv: 1 
 Convergent vibration. More...
 
   uint8_t   freq 
 Vibration frequency. More...
 
   uint8_t   inc 
 Vibration inclination period. More...
 
};  
 

Detailed Description

Effect generation structure.

This structure is used for convenience to send an effect to the jump pack. The members in the structure note general explanations of their use as well as some limitations and suggestions. There shouldn't be a need to use the raw accessor with the new fully specified members.

Field Documentation

◆ [struct]

struct { ... } purupuru_effect_t

◆ bpow

uint32_t purupuru_effect_t::bpow

Backward direction (- direction) intensity setting bits.

0 stops vibration.

Referenced by print_rumble_fields().

◆ cont

bool purupuru_effect_t::cont

Continuous Vibration.

When set vibration will continue until stopped

Referenced by print_rumble_fields().

◆ conv

bool purupuru_effect_t::conv

Convergent vibration.

The rumble will get weaker until it stops.

Referenced by print_rumble_fields().

◆ div

bool purupuru_effect_t::div

Divergent vibration.

The rumble will get stronger until it stops.

Referenced by print_rumble_fields().

◆ fpow

uint32_t purupuru_effect_t::fpow

Forward direction (+ direction) intensity setting bits.

0 stops vibration.

Referenced by print_rumble_fields().

◆ freq

uint8_t purupuru_effect_t::freq

Vibration frequency.

for most purupuru 4-59.

Referenced by print_rumble_fields().

◆ inc

uint8_t purupuru_effect_t::inc

Vibration inclination period.

Referenced by print_rumble_fields().

◆ motor

uint32_t purupuru_effect_t::motor

Motor number.

0 will cause an error. 1 is the typical setting.

Referenced by print_rumble_fields().

◆ raw

uint32_t purupuru_effect_t::raw

Access the raw 32-bit value to be sent to the puru.

Referenced by main().

◆ res

uint32_t purupuru_effect_t::res

Reserved.

Always 0s


The documentation for this union was generated from the following file: