<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>V-USB и libusb: обмен с устройством USB HID с помощью управляющих сообщений (USB control messages)</title>
		<description>Обсуждение V-USB и libusb: обмен с устройством USB HID с помощью управляющих сообщений (USB control messages)</description>
		<link>http://microsin.ru/programming/avr-working-with-usb/v-usb-hid-control-messages.html</link>
		<lastBuildDate>Tue, 21 Jul 2026 01:34:49 +0300</lastBuildDate>
		<generator>JComments</generator>
		<atom:link href="http://microsin.ru/component/option,com_jcomments/format,raw/limit,10/object_group,com_content/object_id,1084/task,rss/" rel="self" type="application/rss+xml" />
		<item>
			<title>Туен написал:</title>
			<link>http://microsin.ru/programming/avr-working-with-usb/v-usb-hid-control-messages.html#comment-1828</link>
			<description><![CDATA[Здравствуйте, можно вопрос, как передать 16-бит дата от устройства к ПК с помощью указателя usbMsgPtr? microsin: очень просто. Вы наверное догадываетесь, что 16-битная переменная это всего лишь 2 байта? Если да, то просто создайте буфер размером в 2 байта, поместите туда старший и младший байты 16-битной переменной, и верните из функции usbFunctionSetu p не 1, как приведено в примере в статье, а 2: .. else if(rq->bRequest == CUSTOM_RQ_GET_S TATUS) { static uchar dataBuffer[2]; dataBuffer[0] = младший_байт_16_битной_переме нной; dataBuffer[1] = старший_байт_16_битной_переме нной; usbMsgPtr = dataBuffer; return 2; } ..]]></description>
			<dc:creator>Туен</dc:creator>
			<pubDate>Sat, 27 Jul 2013 13:52:31 +0300</pubDate>
			<guid>http://microsin.ru/programming/avr-working-with-usb/v-usb-hid-control-messages.html#comment-1828</guid>
		</item>
	</channel>
</rss>
