#include <HidFFB.h>
Definition at line 23 of file HidFFB.h.
◆ HidFFB()
◆ ~HidFFB()
◆ ffb_control()
void HidFFB::ffb_control |
( |
uint8_t |
cmd | ) |
|
|
private |
◆ free_effect()
void HidFFB::free_effect |
( |
uint16_t |
id | ) |
|
|
private |
◆ getFfbActive()
bool HidFFB::getFfbActive |
( |
| ) |
|
|
virtual |
◆ HID_SendReport()
bool HidFFB::HID_SendReport |
( |
uint8_t * |
report, |
|
|
uint16_t |
len |
|
) |
| |
|
static |
◆ hidGet()
uint16_t HidFFB::hidGet |
( |
uint8_t |
report_id, |
|
|
hid_report_type_t |
report_type, |
|
|
uint8_t * |
buffer, |
|
|
uint16_t |
reqlen |
|
) |
| |
|
overridevirtual |
Called on HID feature GET events Any reply is assigned to the return buffer
Handles block load reports and pool status which are requested after a new effect has been created
Reimplemented from UsbHidHandler.
Definition at line 151 of file HidFFB.cpp.
◆ hidOut()
void HidFFB::hidOut |
( |
uint8_t |
report_id, |
|
|
hid_report_type_t |
report_type, |
|
|
const uint8_t * |
buffer, |
|
|
uint16_t |
bufsize |
|
) |
| |
|
overridevirtual |
◆ new_effect()
void HidFFB::new_effect |
( |
FFB_CreateNewEffect_Feature_Data_t * |
effect | ) |
|
|
private |
◆ reset_ffb()
void HidFFB::reset_ffb |
( |
| ) |
|
|
virtual |
◆ sendStatusReport()
void HidFFB::sendStatusReport |
( |
uint8_t |
effect | ) |
|
Sends a status report for a specific effect
Definition at line 55 of file HidFFB.cpp.
◆ set_condition()
void HidFFB::set_condition |
( |
FFB_SetCondition_Data_t * |
cond | ) |
|
|
private |
If the number of Condition report blocks is equal to the number of axes for the effect, then the first report block applies to the first axis, the second applies to the second axis, and so on. For example, a two-axis spring condition with CP Offset set to zero in both Condition report blocks would have the same effect as the joystick self-centering spring. When a condition is defined for each axis in this way, the effect must not be rotated.
If there is a single Condition report block for an effect with more than one axis, then the direction along which the parameters of the Condition report block are in effect is determined by the direction parameters passed in the Direction field of the Effect report block. For example, a friction condition rotated 45 degrees (in polar coordinates) would resist joystick motion in the northeast-southwest direction but would have no effect on joystick motion in the northwest-southeast direction.
Definition at line 350 of file HidFFB.cpp.
◆ set_constant_effect()
void HidFFB::set_constant_effect |
( |
FFB_SetConstantForce_Data_t * |
effect | ) |
|
|
private |
◆ set_effect()
void HidFFB::set_effect |
( |
FFB_SetEffect_t * |
effect | ) |
|
|
private |
Sets up an effect If the direction enable bit is set then only 1 condition block is used
Definition at line 277 of file HidFFB.cpp.
◆ set_effect_operation()
void HidFFB::set_effect_operation |
( |
FFB_EffOp_Data_t * |
report | ) |
|
|
private |
◆ set_envelope()
void HidFFB::set_envelope |
( |
FFB_SetEnvelope_Data_t * |
report | ) |
|
|
private |
◆ set_FFB()
void HidFFB::set_FFB |
( |
bool |
state | ) |
|
|
virtual |
◆ set_filters()
◆ set_gain()
void HidFFB::set_gain |
( |
uint8_t |
gain | ) |
|
|
virtual |
◆ set_periodic()
void HidFFB::set_periodic |
( |
FFB_SetPeriodic_Data_t * |
report | ) |
|
|
private |
◆ set_ramp()
void HidFFB::set_ramp |
( |
FFB_SetRamp_Data_t * |
report | ) |
|
|
private |
◆ setDirectionEnableMask()
void HidFFB::setDirectionEnableMask |
( |
uint8_t |
mask | ) |
|
Sets the mask where the direction enable bit is in the effect
Definition at line 38 of file HidFFB.cpp.
◆ start_FFB()
void HidFFB::start_FFB |
( |
| ) |
|
|
virtual |
◆ stop_FFB()
void HidFFB::stop_FFB |
( |
| ) |
|
|
virtual |
◆ axisCount
uint8_t HidFFB::axisCount |
|
private |
◆ blockLoad_report
FFB_BlockLoad_Feature_Data_t HidFFB::blockLoad_report |
|
private |
◆ directionEnableMask
uint8_t HidFFB::directionEnableMask |
|
private |
◆ effects
◆ effects_calc
◆ ffb_active
bool HidFFB::ffb_active = false |
|
private |
◆ pool_report
FFB_PIDPool_Feature_Data_t HidFFB::pool_report |
|
private |
◆ reportFFBStatus
reportFFB_status_t HidFFB::reportFFBStatus |
|
private |
◆ used_effects
uint16_t HidFFB::used_effects = 0 |
|
private |
The documentation for this class was generated from the following files: