<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54163/nrf52840-usb-hid-how-to-set-up-and-send-a-feature-report</link><description>Hello, 
 I want to use USB HID and set up a feature report to send some configuration data. Is there any example to guide how to do it? 
 Tks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2020 12:29:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54163/nrf52840-usb-hid-how-to-set-up-and-send-a-feature-report" /><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/229211?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 12:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca9d19a3-4047-418b-a7d6-7497ca0af575</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry to make the misunderstand. The F&lt;span&gt;eature report is only supported by SDK16.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Handling feature reports has been added to the SDK16. It is implemented similarly to output reports, i.e. it can be modified by the host using SET_REPORT and GET_REPORT requests. To modify it on the device side, you can use:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;app_usbd_hid_report_buffer_t const * p_feature = app_usbd_hid_rep_buff_feature_get(p_hinst);
p_feature-&amp;gt;p_buff[0] = 0x12;
p_feature-&amp;gt;p_buff[1] = 0x34;
p_feature-&amp;gt;p_buff[2] = 0x56;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/229172?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 09:19:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37ade822-370b-4645-a9d8-ec69561e1929</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I am checking with the developer. I will be back as soon as I have anything.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/228415?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 16:43:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:391cfa81-d224-4748-bdcf-9af344b71349</guid><dc:creator>phamquocvinh</dc:creator><description>&lt;p&gt;How to set up a value for the feature report on nRF device? Which API to do this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/228413?ContentTypeID=1</link><pubDate>Thu, 09 Jan 2020 16:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ba3507f-b44f-4f3e-9730-fede80dedf24</guid><dc:creator>phamquocvinh</dc:creator><description>&lt;p&gt;Hi Amanda,&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t see this API in nRF SDK v15.3.&lt;/p&gt;
&lt;p&gt;When I call HID_GetFeature on Windows API, I want my nRF device to send feature report to PC. How can I build up this?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__app__usbd__hid.html#gaa52c91803b34bd19e88cba7b80ea5011"&gt;app_usbd_hid_rep_buff_feature_get&lt;/a&gt;&lt;span&gt;() to get the feature report on nRF device when my application on PC call&amp;nbsp;HID_SetFeature, doest it correct?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/219674?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2019 13:22:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03c51df1-bc30-4500-a670-736a240c59cd</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Please see &lt;a title="Software Development Kit" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__app__usbd__hid.html?resultof=%22%61%70%70%5f%75%73%62%64%5f%68%69%64%5f%72%65%70%5f%62%75%66%66%5f%66%65%61%74%75%72%65%5f%67%65%74%22%20"&gt;USB HID class&lt;/a&gt;/&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__app__usbd__hid.html#gaa52c91803b34bd19e88cba7b80ea5011"&gt;app_usbd_hid_rep_buff_feature_get&lt;/a&gt;()&amp;nbsp;in app_usbd_hid.c.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;-Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/219525?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 15:31:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45db0e02-bb25-475d-84b9-7671efa0f9bb</guid><dc:creator>phamquocvinh</dc:creator><description>&lt;p&gt;I want to use a Windows API ( HID_GetFeature ) to get a feature report on my device. It returns 0.&lt;/p&gt;
&lt;p&gt;How can I fill the report feature buffer in nRF code? Which API to fill value for the feature buffer?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**
 * @brief USB HID instance.
 */
typedef struct {
    app_usbd_hid_subclass_desc_t const ** const p_subclass_desc; //!&amp;lt; HID subclass descriptors array.
    size_t subclass_desc_count;                                  //!&amp;lt; HID subclass descriptors count.

    app_usbd_hid_subclass_t subclass_boot;    //!&amp;lt; Boot device (see HID definition).
    app_usbd_hid_protocol_t protocol;         //!&amp;lt; HID protocol (see HID definition).

    app_usbd_hid_report_buffer_t       * p_rep_buffer_in;        //!&amp;lt; Report buffer IN.
    app_usbd_hid_report_buffer_t const * p_rep_buffer_out;       //!&amp;lt; Report buffer OUT (only one instance).
    app_usbd_hid_report_buffer_t const * p_rep_buffer_feature;   //!&amp;lt; Report buffer FEATURE.
    app_usbd_hid_methods_t const       * p_hid_methods;          //!&amp;lt; Hid interface methods.
    app_usbd_hid_user_ev_handler_t       user_event_handler;     //!&amp;lt; User event handler.

    uint8_t * p_ep_interval;   //!&amp;lt; Endpoint intervals.
} app_usbd_hid_inst_t;
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/219447?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2019 11:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c0b6616-2fd5-482a-9640-7e78cd9972c6</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are also these two examples in SDK v15.3. You could check usbd_hid_composite/&amp;nbsp;usbd_hid_generic under &amp;lt;nRF5_SDK_15.3.0&amp;gt;\examples\peripheral&lt;/p&gt;
&lt;p&gt;-Amanda&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/219352?ContentTypeID=1</link><pubDate>Sat, 09 Nov 2019 07:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12a386a5-3dc3-466f-a64c-a29f6b80df82</guid><dc:creator>phamquocvinh</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;I was using SDK v15.3. Look like I need to upgrade to sdk v16.0.0 to use it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 USB HID, how to set up and send a feature report?</title><link>https://devzone.nordicsemi.com/thread/219203?ContentTypeID=1</link><pubDate>Fri, 08 Nov 2019 07:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b2d8303-633c-4f12-af6d-b1f5c2276874</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Vinh,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The followings are the UBS HID examples in our SDK. You could start with them.&amp;nbsp;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;a title="USB HID Composite Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/usbd_hid_composite_example.html?cp=5_1_4_6_52_5"&gt;USB HID Composite Example&lt;/a&gt;&lt;/span&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;a title="USB HID Generic Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/usbd_hid_generic_example.html?cp=5_1_4_6_52_6"&gt;USB HID Generic Example&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Amanda H.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>