hidd_send_report()

Detach from all the HID device reports for a device

Synopsis:

#include <sys/hiddi.h>

int hidd_send_report( struct hidd_report *report,
                      void *report_data );

Arguments:

report

The handle of a report (from hidd_report_attach()).

report_data

The report data to send to device. Typically, you would use hidd_set_buttons() and hid_set_values() to fill in the report. The length of the report sent should match the value returned from hidd_report_len().

Description:

The hidd_send_report() function sends an output report to a HID device.

Returns:

EOK
Success.
EINVAL
One of the arguments is NULL.
ENOENT
The device was removed.
ENOTSUP
The device doesn't support writing reports.

This function can also return a device-specific error code.

Classification:

QNX OS

Safety:
Cancellation point Yes
Signal handler No
Thread Yes
Page updated: