Home | History | Annotate | Download | only in tests-m32

Lines Matching defs:ffe

56 print_ffe_common(const struct ff_effect *const ffe, const char *const type_str)
60 type_str, ffe->id, ffe->direction);
64 ffe->trigger.button, ffe->trigger.interval,
65 ffe->replay.length, ffe->replay.delay);
199 struct ff_effect *const ffe = tail_alloc(sizeof(*ffe));
200 fill_memory(ffe, sizeof(*ffe));
202 ffe->type = FF_CONSTANT;
203 ioctl(-1, EVIOCSFF, ffe);
204 print_ffe_common(ffe, "FF_CONSTANT");
207 printf(", constant={level=%hd", ffe->u.constant.level);
208 print_envelope(&ffe->u.constant.envelope);
217 ffe->type = FF_RAMP;
218 ioctl(-1, EVIOCSFF, ffe);
219 print_ffe_common(ffe, "FF_RAMP");
221 ffe->u.ramp.start_level, ffe->u.ramp.end_level);
222 print_envelope(&ffe->u.ramp.envelope);
226 ffe->type = FF_PERIODIC;
227 ioctl(-1, EVIOCSFF, ffe);
228 print_ffe_common(ffe, "FF_PERIODIC");
231 ffe->u.periodic.waveform, ffe->u.periodic.period,
232 ffe->u.periodic.magnitude, ffe->u.periodic.offset,
233 ffe->u.periodic.phase);
234 print_envelope(&ffe->u.periodic.envelope);
236 ffe->u.periodic.custom_len, ffe->u.periodic.custom_data);
240 ffe->type = FF_RUMBLE;
241 ioctl(-1, EVIOCSFF, ffe);
242 print_ffe_common(ffe, "FF_RUMBLE");
244 ffe->u.rumble.strong_magnitude, ffe->u.rumble.weak_magnitude);
248 ffe->type = 0xff;
249 ioctl(-1, EVIOCSFF, ffe);
250 print_ffe_common(ffe, "0xff /* FF_??? */");