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 { 
 
};  
 Deprecated old structure which has been inverted now to union with raw.
 
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

Deprecated old structure which has been inverted now to union with raw.

◆ [struct]

struct { ... } purupuru_effect_t

◆ bpow

uint32_t purupuru_effect_t::bpow

Backward direction (- direction) intensity setting bits.

0 stops vibration.

◆ cont

bool purupuru_effect_t::cont

Continuous Vibration.

When set vibration will continue until stopped

◆ conv

bool purupuru_effect_t::conv

Convergent vibration.

The rumble will get weaker until it stops.

◆ div

bool purupuru_effect_t::div

Divergent vibration.

The rumble will get stronger until it stops.

◆ fpow

uint32_t purupuru_effect_t::fpow

Forward direction (+ direction) intensity setting bits.

0 stops vibration.

◆ freq

uint8_t purupuru_effect_t::freq

Vibration frequency.

for most purupuru 4-59.

◆ inc

uint8_t purupuru_effect_t::inc

Vibration inclination period.

◆ motor

uint32_t purupuru_effect_t::motor

Motor number.

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

◆ raw

uint32_t purupuru_effect_t::raw

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

◆ res

uint32_t purupuru_effect_t::res

Reserved.

Always 0s


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