{"id":319371,"date":"2021-03-11T09:00:34","date_gmt":"2021-03-11T09:00:34","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319371"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319371","title":{"rendered":"\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e USB \u043d\u0430 STM32. \u0427\u0430\u0441\u0442\u044c 4: \u0414\u0432\u0430-\u0432-\u043e\u0434\u043d\u043e\u043c"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_n\/k_\/lp\/_nk_lppjilpkmvtm7iexysnfv5q.jpeg\"><\/div>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 USB \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e USB, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u043c\u0438 \u043d\u044e\u0430\u043d\u0441\u0430\u043c\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u044b\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0447\u0430\u0441\u0442\u044f\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u041e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, \u0437\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u0437\u0430\u0442\u0435\u044f\u043d\u043e, \u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0439. <a name=\"habracut\"><\/a><\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438:<br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/532038\/\">\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e USB \u043d\u0430 STM32. \u0427\u0430\u0441\u0442\u044c 1: \u041f\u0440\u0435\u0434\u043f\u043e\u0441\u044b\u043b\u043a\u0438<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/532080\/\">\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e USB \u043d\u0430 STM32. \u0427\u0430\u0441\u0442\u044c 2: USB Audio Speaker<\/a><br \/>  <a href=\"https:\/\/habr.com\/ru\/post\/533588\/\">\u0421\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e USB \u043d\u0430 STM32. \u0427\u0430\u0441\u0442\u044c 3: \u0417\u0432\u0443\u043a\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0421\u041e\u041c-\u043f\u043e\u0440\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e<\/a><\/p>\n<p>  \u0418\u0441\u0445\u043e\u0434\u043d\u044b\u0435 \u043a\u043e\u0434\u044b \u043f\u0443\u0431\u043b\u0438\u043a\u0443\u0435\u043c\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 USB, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e COM-\u043f\u043e\u0440\u0442\u0430 \u0438 \u0434\u0443\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0439 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0437\u0434\u0435\u0441\u044c: <a href=\"http:\/\/github.com\/dmitrii-rudnev\/selenite-habr\" rel=\"nofollow noopener noreferrer\">http:\/\/github.com\/dmitrii-rudnev\/selenite-habr<\/a><\/p>\n<h1>\u0421\u043e\u0437\u0434\u0430\u0451\u043c Composite Device Class<\/h1>\n<p>  \u0424\u0430\u0439\u043b\u044b \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>usbd_comp.c<\/i> \u0438 <i>usbd_comp.h<\/i> \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u043f\u0430\u043f\u043a\u0430\u0445 <i>Core\/Scr<\/i> \u0438 <i>Core\/Inc<\/i> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<p>  \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u043a\u043b\u0430\u0441\u0441\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u043a\u043b\u0430\u0441\u0441\u0430 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u0439-\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0441\u043e\u0431\u044b\u0442\u0438\u0439.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c, \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043a\u0430\u043a\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f. \u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (<i>Requests<\/i>) \u044d\u0442\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 <i>Standard Requests<\/i> \u0438\u043b\u0438 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 <i>Class-Specific Requests<\/i>. \u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f, \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043f\u043e \u043d\u043e\u043c\u0435\u0440\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 (<i>EP<\/i>).<\/p>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <i>Standard Requests<\/i> \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u0441\u0442\u0440.248 \u2013 260 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430:<br \/>  [5] <a href=\"https:\/\/www.usb.org\/sites\/default\/files\/usb_20_20190524.zip\" rel=\"nofollow noopener noreferrer\">Universal Serial Bus Specification, Revision 2.0, April 27, 2000<\/a><\/p>\n<p>  \u0417\u0430\u043f\u0440\u043e\u0441\u044b <i>Communication Device Class-Specific Requests<\/i> \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u0441\u0442\u0440.18 \u2013 30 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 [<a href=\"https:\/\/usb.org\/sites\/default\/files\/CDC1.2_WMC1.1_012011.zip\" rel=\"nofollow noopener noreferrer\">4<\/a>], \u0430 <i>Audio Device Class-Specific Requests<\/i>, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u0430 \u0441\u0442\u0440.74 \u2013 85 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 [<a href=\"https:\/\/www.usb.org\/sites\/default\/files\/audio10.pdf\" rel=\"nofollow noopener noreferrer\">3<\/a>].<\/p>\n<h1>\u0427\u0438\u0442\u0430\u0435\u043c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440<\/h1>\n<p>  \u0414\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0433\u043e \u0432 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i> \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 <i>\u0434\u0435\u0432\u044f\u0442\u0438 \u0431\u0430\u0439\u0442\u043e\u0432<\/i> \u0440\u0430\u0437\u0434\u0435\u043b\u0430 <i>Configuration Descriptor<\/i>, <i>\u0432\u043e\u0441\u044c\u043c\u0438 \u0431\u0430\u0439\u0442\u043e\u0432<\/i> \u0440\u0430\u0437\u0434\u0435\u043b\u0430<i> Interface Association Descriptor<\/i> (<i>IAD<\/i>) \u0434\u043b\u044f <i>\u0434\u0432\u0443\u0445<\/i> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430, <i>58 \u0431\u0430\u0439\u0442\u043e\u0432<\/i> \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430,<i> \u0432\u043e\u0441\u044c\u043c\u0438 \u0431\u0430\u0439\u0442\u043e\u0432<\/i> \u0440\u0430\u0437\u0434\u0435\u043b\u0430 <i>IAD<\/i> \u0434\u043b\u044f <i>\u0442\u0440\u0451\u0445<\/i> \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 <i>183 \u0431\u0430\u0439\u0442\u043e\u0432<\/i> \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i>.<\/p>\n<p>  \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <i>COM<\/i>-\u043f\u043e\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b <i>0<\/i> \u0438 <i>1<\/i>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 <i>1<\/i> \u0438 <i>2<\/i>. \u0414\u0443\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0435 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b <i>2<\/i>, <i>3<\/i> \u0438 <i>4<\/i>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u043e\u043d\u0435\u0447\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443 <i>3<\/i>.<\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 USB<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">Information for device Selenite TRX (VID=0x0483 PID=0x5740):  Connection Information: ------------------------------ Device current bus speed: FullSpeed Device supports USB 1.1 specification Device supports USB 2.0 specification Device address: 0x0014 Current configuration value: 0x00 Number of open pipes: 0  Device Descriptor: ------------------------------ 0x12\tbLength 0x01\tbDescriptorType 0x0201\tbcdUSB 0xEF\tbDeviceClass      (Miscellaneous device) 0x02\tbDeviceSubClass    0x01\tbDeviceProtocol    0x40\tbMaxPacketSize0   (64 bytes) 0x0483\tidVendor 0x5740\tidProduct 0x0200\tbcdDevice 0x01\tiManufacturer   &quot;STMicroelectronics&quot; 0x02\tiProduct   &quot;Selenite TRX&quot; 0x03\tiSerialNumber   &quot;317C33753434&quot; 0x01\tbNumConfigurations  Configuration Descriptor: ------------------------------ 0x09\tbLength 0x02\tbDescriptorType 0x010A\twTotalLength   (266 bytes) 0x05\tbNumInterfaces 0x01\tbConfigurationValue 0x00\tiConfiguration 0xC0\tbmAttributes   (Self-powered Device) 0xFA\tbMaxPower      (500 mA)  Interface Association Descriptor: ------------------------------ 0x08\tbLength 0x0B\tbDescriptorType 0x00\tbFirstInterface 0x02\tbInterfaceCount 0x02\tbFunctionClass      (Communication Device Class) 0x02\tbFunctionSubClass   (Abstract Control Model - ACM) 0x01\tbFunctionProtocol   (ITU-T V.250) 0x00\tiFunction  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x00\tbInterfaceNumber 0x00\tbAlternateSetting 0x01\tbNumEndPoints 0x02\tbInterfaceClass      (Communication Device Class) 0x02\tbInterfaceSubClass   (Abstract Control Model - ACM) 0x01\tbInterfaceProtocol   (ITU-T V.250) 0x00\tiInterface  CDC Header Functional Descriptor: ------------------------------ 0x05\tbFunctionalLength 0x24\tbDescriptorType 0x00\tbDescriptorSubtype 0x0110\tbcdCDC  CDC Call Management Functional Descriptor: ------------------------------ 0x05\tbFunctionalLength 0x24\tbDescriptorType 0x01\tbDescriptorSubtype 0x00\tbmCapabilities 0x01\tbDataInterface  CDC Abstract Control Management Functional Descriptor: ------------------------------ 0x04\tbFunctionalLength 0x24\tbDescriptorType 0x02\tbDescriptorSubtype 0x02\tbmCapabilities  CDC Union Functional Descriptor: ------------------------------ 0x05\tbFunctionalLength 0x24\tbDescriptorType 0x06\tbDescriptorSubtype 0x00\tbControlInterface 0x01\tbSubordinateInterface(0)  Endpoint Descriptor: ------------------------------ 0x07\tbLength 0x05\tbDescriptorType 0x82\tbEndpointAddress  (IN endpoint 2) 0x03\tbmAttributes      (Transfer: Interrupt \/ Synch: None \/ Usage: Data) 0x0008\twMaxPacketSize    (1 x 8 bytes) 0x10\tbInterval         (16 frames)  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x01\tbInterfaceNumber 0x00\tbAlternateSetting 0x02\tbNumEndPoints 0x0A\tbInterfaceClass      (CDC Data) 0x00\tbInterfaceSubClass    0x00\tbInterfaceProtocol    0x00\tiInterface  Endpoint Descriptor: ------------------------------ 0x07\tbLength 0x05\tbDescriptorType 0x01\tbEndpointAddress  (OUT endpoint 1) 0x02\tbmAttributes      (Transfer: Bulk \/ Synch: None \/ Usage: Data) 0x0040\twMaxPacketSize    (64 bytes) 0x00\tbInterval           Endpoint Descriptor: ------------------------------ 0x07\tbLength 0x05\tbDescriptorType 0x81\tbEndpointAddress  (IN endpoint 1) 0x02\tbmAttributes      (Transfer: Bulk \/ Synch: None \/ Usage: Data) 0x0040\twMaxPacketSize    (64 bytes) 0x00\tbInterval           Interface Association Descriptor: ------------------------------ 0x08\tbLength 0x0B\tbDescriptorType 0x02\tbFirstInterface 0x03\tbInterfaceCount 0x01\tbFunctionClass      (Audio Device Class) 0x01\tbFunctionSubClass   (Audio Control Interface) 0x00\tbFunctionProtocol    0x00\tiFunction  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x02\tbInterfaceNumber 0x00\tbAlternateSetting 0x00\tbNumEndPoints 0x01\tbInterfaceClass      (Audio Device Class) 0x01\tbInterfaceSubClass   (Audio Control Interface) 0x00\tbInterfaceProtocol    0x00\tiInterface  AC Interface Header Descriptor: ------------------------------ 0x0A\tbLength 0x24\tbDescriptorType 0x01\tbDescriptorSubtype 0x0100\tbcdADC 0x0046\twTotalLength   (70 bytes) 0x02\tbInCollection 0x03\tbaInterfaceNr(1) 0x04\tbaInterfaceNr(2)  AC Input Terminal Descriptor: ------------------------------ 0x0C\tbLength 0x24\tbDescriptorType 0x02\tbDescriptorSubtype 0x01\tbTerminalID 0x0101\twTerminalType   (USB Streaming) 0x00\tbAssocTerminal 0x02\tbNrChannels   (2 channels) 0x0003\twChannelConfig 0x00\tiChannelNames 0x00\tiTerminal  AC Feature Unit Descriptor: ------------------------------ 0x09\tbLength 0x24\tbDescriptorType 0x06\tbDescriptorSubtype 0x02\tbUnitID 0x01\tbSourceID 0x01\tbControlSize bmaControls:   0x01\tChannel(0)  0x00\tChannel(1) 0x00\tiFeature   AC Output Terminal Descriptor: ------------------------------ 0x09\tbLength 0x24\tbDescriptorType 0x03\tbDescriptorSubtype 0x03\tbTerminalID 0x0301\twTerminalType   (Speaker) 0x00\tbAssocTerminal 0x02\tbSourceID 0x00\tiTerminal  AC Input Terminal Descriptor: ------------------------------ 0x0C\tbLength 0x24\tbDescriptorType 0x02\tbDescriptorSubtype 0x04\tbTerminalID 0x0200\twTerminalType   (Input Undefined) 0x00\tbAssocTerminal 0x02\tbNrChannels   (2 channels) 0x0003\twChannelConfig 0x00\tiChannelNames 0x00\tiTerminal  AC Feature Unit Descriptor: ------------------------------ 0x09\tbLength 0x24\tbDescriptorType 0x06\tbDescriptorSubtype 0x05\tbUnitID 0x04\tbSourceID 0x01\tbControlSize bmaControls:   0x01\tChannel(0)  0x00\tChannel(1) 0x00\tiFeature   AC Output Terminal Descriptor: ------------------------------ 0x09\tbLength 0x24\tbDescriptorType 0x03\tbDescriptorSubtype 0x06\tbTerminalID 0x0101\twTerminalType   (USB Streaming) 0x00\tbAssocTerminal 0x05\tbSourceID 0x00\tiTerminal  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x03\tbInterfaceNumber 0x00\tbAlternateSetting 0x00\tbNumEndPoints 0x01\tbInterfaceClass      (Audio Device Class) 0x02\tbInterfaceSubClass   (Audio Streaming Interface) 0x00\tbInterfaceProtocol    0x00\tiInterface  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x03\tbInterfaceNumber 0x01\tbAlternateSetting 0x01\tbNumEndPoints 0x01\tbInterfaceClass      (Audio Device Class) 0x02\tbInterfaceSubClass   (Audio Streaming Interface) 0x00\tbInterfaceProtocol    0x00\tiInterface  AS Interface Descriptor: ------------------------------ 0x07\tbLength 0x24\tbDescriptorType 0x01\tbDescriptorSubtype 0x01\tbTerminalLink 0x01\tbDelay 0x0001\twFormatTag   (PCM)  AS Format Type 1 Descriptor: ------------------------------ 0x0B\tbLength 0x24\tbDescriptorType 0x02\tbDescriptorSubtype 0x01\tbFormatType   (FORMAT_TYPE_1) 0x02\tbNrChannels   (2 channels) 0x02\tbSubframeSize 0x10\tbBitResolution   (16 bits per sample) 0x01\tbSamFreqType   (Discrete sampling frequencies) 0x00BB80 \ttSamFreq(1)   (48000 Hz)  Endpoint Descriptor (Audio\/MIDI 1.0): ------------------------------ 0x09\tbLength 0x05\tbDescriptorType 0x03\tbEndpointAddress  (OUT endpoint 3) 0x01\tbmAttributes      (Transfer: Isochronous \/ Synch: None \/ Usage: Data) 0x00C0\twMaxPacketSize    (1 x 192 bytes) 0x01\tbInterval         (1 frames) 0x00\tbRefresh 0x00\tbSynchAddress  AS Isochronous Data Endpoint Descriptor: ------------------------------ 0x07\tbLength 0x25\tbDescriptorType 0x01\tbDescriptorSubtype 0x00\tbmAttributes 0x00\tbLockDelayUnits   (undefined) 0x0000\twLockDelay  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x04\tbInterfaceNumber 0x00\tbAlternateSetting 0x00\tbNumEndPoints 0x01\tbInterfaceClass      (Audio Device Class) 0x02\tbInterfaceSubClass   (Audio Streaming Interface) 0x00\tbInterfaceProtocol    0x00\tiInterface  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x04\tbInterfaceNumber 0x01\tbAlternateSetting 0x01\tbNumEndPoints 0x01\tbInterfaceClass      (Audio Device Class) 0x02\tbInterfaceSubClass   (Audio Streaming Interface) 0x00\tbInterfaceProtocol    0x00\tiInterface  AS Interface Descriptor: ------------------------------ 0x07\tbLength 0x24\tbDescriptorType 0x01\tbDescriptorSubtype 0x06\tbTerminalLink 0x01\tbDelay 0x0001\twFormatTag   (PCM)  AS Format Type 1 Descriptor: ------------------------------ 0x0B\tbLength 0x24\tbDescriptorType 0x02\tbDescriptorSubtype 0x01\tbFormatType   (FORMAT_TYPE_1) 0x02\tbNrChannels   (2 channels) 0x02\tbSubframeSize 0x10\tbBitResolution   (16 bits per sample) 0x01\tbSamFreqType   (Discrete sampling frequencies) 0x00BB80 \ttSamFreq(1)   (48000 Hz)  Endpoint Descriptor (Audio\/MIDI 1.0): ------------------------------ 0x09\tbLength 0x05\tbDescriptorType 0x83\tbEndpointAddress  (IN endpoint 3) 0x01\tbmAttributes      (Transfer: Isochronous \/ Synch: None \/ Usage: Data) 0x00C0\twMaxPacketSize    (1 x 192 bytes) 0x01\tbInterval         (1 frames) 0x00\tbRefresh 0x00\tbSynchAddress  AS Isochronous Data Endpoint Descriptor: ------------------------------ 0x07\tbLength 0x25\tbDescriptorType 0x01\tbDescriptorSubtype 0x00\tbmAttributes 0x00\tbLockDelayUnits   (undefined) 0x0000\twLockDelay  Microsoft OS Descriptor is not available. Error code: 0x0000001F  String Descriptor Table -------------------------------- Index  LANGID  String 0x00   0x0000  0x0409  0x01   0x0409  &quot;STMicroelectronics&quot; 0x02   0x0409  &quot;Selenite TRX&quot; 0x03   0x0409  &quot;317C33753434&quot;  ------------------------------  Connection path for device:  xHCI-??????????? ????-?????????? USB Root Hub Selenite TRX (VID=0x0483 PID=0x5740) Port: 2  Running on: Windows 10 or greater  Brought to you by TDD v2.11.0, Mar 26 2018, 09:54:50 <\/code><\/pre>\n<p>  <\/div>\n<\/p><\/div>\n<p>  <\/p>\n<h1>\u0420\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/h1>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b <i>usb_device.c<\/i>, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0439 \u0432 \u043f\u0430\u043f\u043a\u0435 <i>USB_DEVICE\/App<\/i>:  <\/p>\n<pre><code class=\"cpp\">#include &quot;usb_device.h&quot; #include &quot;usbd_core.h&quot; #include &quot;usbd_desc.h&quot; #include &quot;usbd_cdc.h&quot; #include &quot;usbd_cdc_if.h&quot;  \/* USER CODE BEGIN Includes *\/ #include &quot;usbd_conf.h&quot; #include &quot;usbd_comp.h&quot; \/* USER CODE END Includes *\/  \/* USER CODE BEGIN PV *\/ extern PCD_HandleTypeDef hpcd_USB_OTG_FS; \/* USER CODE END PV *\/  \/* USB Device Core handle declaration. *\/ USBD_HandleTypeDef hUsbDeviceFS;  void MX_USB_DEVICE_Init(void) {   \/* USER CODE BEGIN USB_DEVICE_Init_PreTreatment *\/   USBD_Init (&amp;hUsbDeviceFS, &amp;FS_Desc, DEVICE_FS);    \/\/HAL_PCDEx_SetRxFiFo (&amp;hpcd_USB_OTG_FS, 0x80);   \/\/HAL_PCDEx_SetTxFiFo (&amp;hpcd_USB_OTG_FS, 0, 0x40);   HAL_PCDEx_SetTxFiFo (&amp;hpcd_USB_OTG_FS, 1, 0x10);   HAL_PCDEx_SetTxFiFo (&amp;hpcd_USB_OTG_FS, 2, 0x10);   HAL_PCDEx_SetTxFiFo (&amp;hpcd_USB_OTG_FS, 3, 0xC0);    USBD_RegisterClass (&amp;hUsbDeviceFS, &amp;USBD_COMP);   USBD_COMP_RegisterInterface (&amp;hUsbDeviceFS, &amp;USBD_COMP_fops_FS);   USBD_Start (&amp;hUsbDeviceFS);    return;   \/* USER CODE END USB_DEVICE_Init_PreTreatment *\/ <\/code><\/pre>\n<p>  \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <i>hUsbDeviceFS<\/i>. \u0422\u0438\u043f <i>USBD_HandleTypeDef<\/i> \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u0432 <i>usbd_def.h<\/i>.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <i>MX_USB_DEVICE_Init<\/i> \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0438\u0437 <i>main.c<\/i>.<\/p>\n<p>  \u0412\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>USBD_Init<\/i> \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 <i>hUsbDeviceFS<\/i>.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u0432\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0439 <i>HAL_PCDEx_SetTxFiFo<\/i> \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 <i>USB<\/i> \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.  <\/p>\n<blockquote><p><b>\u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 1<\/b>: \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 <i>USB<\/i> \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>USBD_LL_Init<\/i>, \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u043e\u0439 \u0432 \u0444\u0430\u0439\u043b\u0435 <i>usbd_conf.c<\/i>. \u0412 \u0442\u0435\u043b\u0435 \u044d\u0442\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043e\u0431\u043b\u0430\u0441\u0442\u0438, \u043f\u043e\u043c\u0435\u0447\u0435\u043d\u043d\u043e\u0439 \u043a\u0430\u043a <i>USER CODE<\/i>, \u043d\u0435\u0442. \u0422.\u0435. \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 <i>STM32CubeMX<\/i> \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u044f\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a <i>2<\/i> \u0438 <i>3<\/i>. \u0418\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0431\u0443\u0444\u0435\u0440\u0430 <i>USB<\/i> \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>USBD_LL_Init<\/i> \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0430.<\/p><\/blockquote>\n<p>  \u0412\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>USBD_RegisterClass<\/i> \u0432 <i>hUsbDeviceFS.pClass<\/i> \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0432 <i>usbd_comp.c<\/i> \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <i>USBD_COMP<\/i>, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0443\u044e \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u043d\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043a\u043b\u0430\u0441\u0441\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u0422\u0438\u043f <i>USBD_ClassTypeDef<\/i> \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d \u0432 <i>usbd_def.h<\/i>.<\/p>\n<p>  \u0412\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>USBD_RegisterInterface<\/i> \u0432 <i>hUsbDeviceFS.pUserData<\/i> \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u0443\u044e \u0432 <i>usbd_comp.h<\/i> \u043f\u0443\u0441\u0442\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e <i>USBD_COMP_fops_FS<\/i>.<\/p>\n<p>  \u0412 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i> \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0432\u0445\u043e\u0434\u044f\u0449\u0435\u0433\u043e \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u0432\u044f\u0437\u0438 \u0441 \u043e\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438.<\/p>\n<p>  \u0412\u044b\u0437\u043e\u0432\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>USBD_Start<\/i> \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430\u043f\u0443\u0441\u043a \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i>.  <\/p>\n<blockquote><p><b>\u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 2<\/b>: \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u043f\u043e\u0440\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <i>COM<\/i>-\u043f\u043e\u0440\u0442, \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <i>\u0442\u0440\u0451\u0445<\/i> \u0431\u0430\u0439\u0442\u043e\u0432 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i> (<i>USB standard device descriptor<\/i>), \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u043e\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 <i>usbd_desc.c<\/i>, \u043f\u0440\u0438\u0447\u0451\u043c \u043f\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 <i>STM32CubeMX<\/i> \u044d\u0442\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u0430\u043b\u044f\u0442\u044c:<\/p><\/blockquote>\n<p>  <\/p>\n<pre><code class=\"cpp\">\/** USB standard device descriptor. *\/ __ALIGN_BEGIN uint8_t USBD_FS_DeviceDesc[USB_LEN_DEV_DESC] __ALIGN_END = {   0x12,                       \/*bLength *\/   USB_DESC_TYPE_DEVICE,       \/*bDescriptorType*\/ #if (USBD_LPM_ENABLED == 1)   0x01,                       \/*bcdUSB *\/ \/* changed to USB version 2.01                                              in order to support LPM L1 suspend                                              resume test of USBCV3.0*\/ #else   0x00,                       \/*bcdUSB *\/ #endif \/* (USBD_LPM_ENABLED == 1) *\/   0x02,   \/\/0x02,                     \/*bDeviceClass*\/   \/\/0x02,                     \/*bDeviceSubClass*\/   \/\/0x00,                     \/*bDeviceProtocol*\/   0xEF,                       \/*bDeviceClass    = Misc *\/   0x02,                       \/*bDeviceSubClass = Common Class *\/   0x01,                       \/*bDeviceProtocol = IAD *\/   USB_MAX_EP0_SIZE,           \/*bMaxPacketSize*\/   LOBYTE(USBD_VID),           \/*idVendor*\/   HIBYTE(USBD_VID),           \/*idVendor*\/   LOBYTE(USBD_PID_FS),        \/*idProduct*\/   HIBYTE(USBD_PID_FS),        \/*idProduct*\/   0x00,                       \/*bcdDevice rel. 2.00*\/   0x02,   USBD_IDX_MFC_STR,           \/*Index of manufacturer string*\/   USBD_IDX_PRODUCT_STR,       \/*Index of product string*\/   USBD_IDX_SERIAL_STR,        \/*Index of serial number string*\/   USBD_MAX_NUM_CONFIGURATION  \/*bNumConfigurations*\/ }; <\/code><\/pre>\n<p>  <\/p>\n<blockquote><p><b>\u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 3<\/b>: \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <i>COM<\/i>-\u043f\u043e\u0440\u0442 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u043d\u043e\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u0439 \u0438\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0435\u043c \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.<\/p><\/blockquote>\n<p>  <\/p>\n<blockquote><p><b>\u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 4<\/b>: \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <i>COM<\/i>-\u043f\u043e\u0440\u0442 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u043a\u043e\u0433\u0434\u0430 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u0435\u0433\u043e \u0431\u0443\u0444\u0435\u0440 \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0440\u0442\u0430 (\u0441\u043c. <i>USBD_COMP_Init<\/i>). \u0411\u0435\u0437 \u044d\u0442\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u0432 \u043a <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0443 \u043c\u043e\u0433\u0443\u0442 \u0438 \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f.<\/p><\/blockquote>\n<p>  <\/p>\n<h1>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 USB<\/h1>\n<p>  \u0421\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0432\u043e\u0435\u0434\u0438\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430 \u0438 \u0434\u0443\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0433\u043e \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i>. \u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f, \u0447\u0442\u043e \u043e\u043d\u0438 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0443\u0436\u0438\u0432\u0430\u044e\u0442\u0441\u044f.  <\/p>\n<blockquote><p><b>\u041d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0439 \u043d\u044e\u0430\u043d\u0441 5<\/b>: \u043f\u0440\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u00ab<i>\u044d\u0445\u043e<\/i>\u00bb \u0447\u0435\u0440\u0435\u0437 <i>COM<\/i>-\u043f\u043e\u0440\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0443\u0436\u0435 \u00ab<i>\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u043d\u0430 COM-\u043f\u043e\u0440\u0442<\/i>\u00bb. \u0412 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0447\u0430\u0442\u044c\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u0427\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438, \u043f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u044b\u0437\u043e\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>COMP_CDC_Transmit_FS<\/i> \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430:<\/p><\/blockquote>\n<p>  <\/p>\n<pre><code class=\"cpp\">\/* USER CODE BEGIN INCLUDE *\/ #include &quot;usbd_comp.h&quot; \/* USER CODE END INCLUDE *\/  uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len) {   uint8_t result = USBD_OK;   \/* USER CODE BEGIN 7 *\/   result = COMP_CDC_Transmit_FS (Buf, Len); \/\/++++++    USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData;   if (hcdc-&gt;TxState != 0){     return USBD_BUSY;   }   USBD_CDC_SetTxBuffer(&amp;hUsbDeviceFS, Buf, Len);   result = USBD_CDC_TransmitPacket(&amp;hUsbDeviceFS);   \/* USER CODE END 7 *\/   return result; } <\/code><\/pre>\n<h3>\u0412\u044b\u0432\u043e\u0434\u044b<\/h3>\n<p>  \u0410\u0432\u0442\u043e\u0440\u0443 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e <i>USB<\/i>, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0438\u0437 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430 \u0438 \u0434\u0443\u043f\u043b\u0435\u043a\u0441\u043d\u043e\u0439 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0439 \u043a\u0430\u0440\u0442\u044b, \u043d\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u0445 \u043f\u043b\u0430\u0442\u044b <i>NUCLEO-F446ZE<\/i>.<\/p>\n<p>  \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u043e \u0432 \u0432\u0438\u0434\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0432 \u0441\u0440\u0435\u0434\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 <i>STM32CubeIDE<\/i>. \u041f\u043e\u0441\u043b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 <i>STM32CubeMX<\/i> \u0434\u043b\u044f \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f <i>\u0442\u0440\u0451\u0445<\/i> \u0431\u0430\u0439\u0442\u043e\u0432 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u043c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i> (<i>USB standard device descriptor<\/i>), \u0440\u0430\u0437\u043c\u0435\u0449\u0451\u043d\u043d\u043e\u043c \u0432 \u0444\u0430\u0439\u043b\u0435 <i>usbd_desc.c<\/i>.<\/p>\n<h3>\u041e\u0442 \u0430\u0432\u0442\u043e\u0440\u0430<\/h3>\n<p>  \u0414\u0430\u043d\u043d\u044b\u0439 \u0446\u0438\u043a\u043b \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0439 \u043f\u043e\u0434\u0432\u043e\u0434\u0438\u0442 \u0447\u0435\u0440\u0442\u0443, \u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0441\u0442\u0438\u0447\u044c <i>\u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443<\/i>.<\/p>\n<p>  \u0425\u043e\u0447\u0443 \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u0441\u0432\u043e\u0438\u0445 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u0437\u0430 \u0434\u043e\u0431\u0440\u043e\u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438 \u0442\u0451\u043f\u043b\u044b\u0439 \u043f\u0440\u0438\u0451\u043c. \u042f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u044b\u043b \u0438 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u0443\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u043c \u041f\u041e \u0434\u043b\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432. \u0418 \u044d\u0442\u043e \u043c\u043e\u044f \u043f\u0435\u0440\u0432\u0430\u044f \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043f\u0440\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044e \u0413\u0435\u043e\u0440\u0433\u0438\u044f (<i>RX9CIM<\/i>) \u0437\u0430 \u043c\u043e\u0440\u0430\u043b\u044c\u043d\u0443\u044e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/p>\n<p>  \u041e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u043d\u043e\u0441\u0442\u044c <a href=\"https:\/\/habr.com\/ru\/users\/romanetz_omsk\/\" class=\"user_link\">romanetz_omsk<\/a>, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f \u0431\u044b \u0437\u0430\u0431\u0440\u043e\u0441\u0438\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u0435\u0449\u0451 \u0434\u0432\u0430 \u0433\u043e\u0434\u0430 \u043d\u0430\u0437\u0430\u0434.<\/p>\n<p>  \u041f\u043e \u043b\u043e\u0433\u0438\u043a\u0435 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f <i>MVP<\/i> \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044e <i>DSP<\/i>, \u0430 \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u043a\u0430. \u041a\u0430\u043a \u044d\u0442\u043e \u043e\u0441\u0438\u043b\u0438\u0442\u044c \u0432 \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0443, \u0443\u043c\u0430 \u043d\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0443\u2026<\/p>\n<p>  73! de RD9F<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/543684\/\"> https:\/\/habr.com\/ru\/post\/543684\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/_n\/k_\/lp\/_nk_lppjilpkmvtm7iexysnfv5q.jpeg\"><\/div>\n<p>  \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043e \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435 USB \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u043b \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e USB, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043d\u0435\u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u043c\u0438 \u043d\u044e\u0430\u043d\u0441\u0430\u043c\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.<\/p>\n<p>  \u0420\u0430\u0431\u043e\u0442\u0430 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u044b\u0445 \u0447\u0430\u0441\u0442\u0435\u0439 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u044b\u043b\u0430 \u043e\u043f\u0438\u0441\u0430\u043d\u0430 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0438 \u0442\u0440\u0435\u0442\u044c\u0435\u0439 \u0447\u0430\u0441\u0442\u044f\u0445 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u041e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441, \u0437\u0430\u0447\u0435\u043c \u044d\u0442\u043e \u0432\u0441\u0451 \u0431\u044b\u043b\u043e \u0437\u0430\u0442\u0435\u044f\u043d\u043e, \u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0438 \u0432 \u043a\u043e\u043d\u0446\u0435 \u0447\u0435\u0442\u0432\u0451\u0440\u0442\u043e\u0439. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-319371","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319371"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319371\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}