最終更新:2017-06-01 (木) 18:36:02 (813d)  

usb_control_msg はてなブックマークを見る
Top / usb_control_msg

Linux

usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype, __u16 value, __u16 index, void *data, __u16 size, int timeout);

実装

  • drivers/usb/core/messages.c?

呼び出し

ラッパー

libusb-0.1

  • Send a control message to a device
  • int usb_control_msg(usb_dev_handle *dev, int requesttype, int request, int value, int index, char *bytes, int size, int timeout);

Description

  • usb_control_msg performs a control request to the default control pipe on a device.
  • The parameters mirror the types of the same name in the USB specification.
  • Returns number of bytes written/read or < 0 on error.

関連