8#ifndef SRC_SERIALFFB_H_
9#define SRC_SERIALFFB_H_
20 ffbstate,
ffbreset,
newEffect,
fxtype,
fxmagnitude,
fxstate,
fxperiod,
fxduration,
fxoffset,
fxdeadzone,
fxsat,
fxcoeff,
fxaxisgain
44 std::array<FFB_Effect,EffectsCalculator::max_effects> &
effects;
48 .positiveCoefficient = 0x7fff,
49 .negativeCoefficient = 0x7fff,
50 .positiveSaturation = 0x7fff,
51 .negativeSaturation = 0x7fff,
int32_t newEffect(uint8_t effectType)
void setMagnitude(uint8_t idx, int16_t magnitude)
static ClassIdentifier info
std::array< FFB_Effect, EffectsCalculator::max_effects > & effects
void setEffectState(uint8_t id, bool state)
SerialFFB(std::shared_ptr< EffectsCalculator > ec, uint8_t instance=0)
void set_gain(uint8_t gain)
static constexpr FFB_Effect_Condition defaultCond
const ClassIdentifier getInfo()
Command handlers always have class infos. Works well with ChoosableClass.
std::shared_ptr< EffectsCalculator > effects_calc
CommandStatus command(const ParsedCommand &cmd, std::vector< CommandReply > &replies)