{"id":319248,"date":"2021-03-09T09:01:22","date_gmt":"2021-03-09T09:01:22","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=319248"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=319248","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 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"},"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\/hz\/gg\/u9\/hzggu9hvxmn1g5u9m7hybtjxkas.jpeg\"><\/div>\n<p>  \u0412 \u0442\u0440\u0435\u0442\u044c\u0435\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 <i>USB<\/i> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 <i>STM32CubeMX<\/i> <i>USB Audio Speaker<\/i>, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u0432 \u0434\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.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432 <i>STM32CubeMX<\/i> \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430.<\/p>\n<p>  \u0417\u0430\u0447\u0435\u043c \u043c\u044b \u0432\u0441\u0451 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438.<a name=\"habracut\"><\/a><\/p>\n<p>  \u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u0435\u0440\u0432\u0443\u044e \u0438 \u0432\u0442\u043e\u0440\u0443\u044e \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><\/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>\u0414\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430<\/h1>\n<p>  \u0414\u043e\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u0439 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f <i>STM32CubeMX<\/i> \u0432 \u0444\u0430\u0439\u043b\u0435 <i>usbd_audio.c<\/i>. \u0412 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u044b [<a href=\"https:\/\/www.usb.org\/sites\/default\/files\/BasicAudioDevice-10.zip\" rel=\"nofollow noopener noreferrer\">2<\/a>] \u0438 [<a href=\"https:\/\/www.usb.org\/sites\/default\/files\/audio10.pdf\" rel=\"nofollow noopener noreferrer\">3<\/a>].<\/p>\n<p>  \u041e\u0431\u0438\u043b\u0438\u0435 \u0432 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432, \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u0430\u0439\u043b\u0435 usbd_audio.h, \u043d\u0430 \u043c\u043e\u0439 \u0432\u0437\u0433\u043b\u044f\u0434, \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0438\u043c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0437\u0430\u043c\u0435\u043d\u0438\u043b \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 \u0448\u0435\u0441\u0442\u043d\u0430\u0434\u0446\u0430\u0442\u0435\u0440\u0438\u0447\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u0447\u0430\u0441\u0442\u0438 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u043e \u0438\u0445 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u0438\u0437 [<a href=\"https:\/\/www.usb.org\/sites\/default\/files\/BasicAudioDevice-10.zip\" rel=\"nofollow noopener noreferrer\">2<\/a>] \u0438 [<a href=\"https:\/\/www.usb.org\/sites\/default\/files\/audio10.pdf\" rel=\"nofollow noopener noreferrer\">3<\/a>], \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0432 \u043b\u0438\u0441\u0442\u0438\u043d\u0433\u0435, \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <a href=\"https:\/\/www.thesycon.de\/eng\/usb_descriptordumper.shtml\" rel=\"nofollow noopener noreferrer\"><i>Thesycon USB Descriptor Dumper<\/i><\/a>.<\/p>\n<p>  \u041e\u0434\u043d\u0430\u043a\u043e, \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u044b \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u043e\u0432\u044b\u0445:  <\/p>\n<pre><code class=\"cpp\">\/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 #define USB_AUDIO_CONFIG_DESC_SIZ  192U  \/\/ \u041d\u043e\u043c\u0435\u0440\u0430 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 #define AUDIO_CTRL_IF              0x00U #define AUDIO_OUT_IF               0x01U #define AUDIO_IN_IF                0x02U  \/\/ \u041d\u043e\u043c\u0435\u0440\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a (EP) #define AUDIO_OUT_EP               0x01U #define AUDIO_IN_EP                0x81U  \/\/ \u0420\u0430\u0437\u043c\u0435\u0440 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438 \u0440\u0430\u0437\u043c\u0435\u0440 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0431\u0443\u0444\u0435\u0440\u0430 #define AUDIO_OUT_PACKET_NUM       4U \/\/ 80U #define USBD_AUDIO_FREQ            48000U #define AUDIO_OUT_PACKET           (uint16_t)(((USBD_AUDIO_FREQ * 2U * 2U) \/ 1000U)) #define AUDIO_TOTAL_BUF_SIZE       (uint16_t)(AUDIO_OUT_PACKET * AUDIO_OUT_PACKET_NUM)) <\/code><\/pre>\n<p>  \u0425\u043e\u0442\u0435\u043b \u0431\u044b \u0437\u0430\u043e\u0441\u0442\u0440\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e\u043c, \u0447\u0442\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u044b \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u0442\u0440\u0430\u043a\u0442\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c <i>AUDIO_OUT_PACKET_NUM<\/i>. \u0414\u043b\u044f \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0443\u0444\u0435\u0440\u044b \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c <i>4 \u043f\u0430\u043a\u0435\u0442\u0430<\/i>, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0432\u0435\u043d <i>80 \u043f\u0430\u043a\u0435\u0442\u0430\u043c<\/i>. <\/p>\n<p>  \u0414\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440 \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0434\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 <i>USB<\/i> \u0441\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439, \u043f\u0440\u0438\u0432\u0435\u0434\u0451\u043d\u043d\u043e\u0439 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 \u043d\u0438\u0436\u0435:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/ez\/rt\/8u\/ezrt8ujvkurcvj2x7z6ob8qedem.png\"><\/div>\n<p>  \u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>ID2<\/i> \u0438 <i>ID5<\/i> (<i>Feature Unit<\/i>) \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u00ab<i>\u043d\u0430 \u0432\u044b\u0440\u043e\u0441\u0442<\/i>\u00bb. \u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0438\u043c\u0438 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <i>Class-Specific Requests<\/i>. \u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u044d\u0442\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443 \u043d\u0430\u0431\u043e\u0440 \u043a\u043e\u043c\u0430\u043d\u0434 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0443\u0440\u043e\u0432\u043d\u044f\u043c\u0438 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u044d\u043a\u0432\u0430\u043b\u0430\u0439\u0437\u0435\u0440\u0430, \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438 \u0442.\u043f. \u0412 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u043c \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0435 \u043d\u0430\u0431\u043e\u0440 \u044d\u0442\u043e\u0442 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043a\u0430 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u2013 <i>MUTE<\/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\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">Information for device STM32 Audio Class (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: 0x0008 Current configuration value: 0x01 Number of open pipes: 0  Device Descriptor: ------------------------------ 0x12\tbLength 0x01\tbDescriptorType 0x0201\tbcdUSB 0x00\tbDeviceClass       0x00\tbDeviceSubClass    0x00\tbDeviceProtocol    0x40\tbMaxPacketSize0   (64 bytes) 0x0483\tidVendor 0x5740\tidProduct 0x0200\tbcdDevice 0x01\tiManufacturer   &quot;STMicroelectronics&quot; 0x02\tiProduct   &quot;STM32 Audio Class&quot; 0x03\tiSerialNumber   &quot;317C33753434&quot; 0x01\tbNumConfigurations  Configuration Descriptor: ------------------------------ 0x09\tbLength 0x02\tbDescriptorType 0x00C0\twTotalLength   (192 bytes) 0x03\tbNumInterfaces 0x01\tbConfigurationValue 0x00\tiConfiguration 0xC0\tbmAttributes   (Self-powered Device) 0xFA\tbMaxPower      (500 mA)  Interface Descriptor: ------------------------------ 0x09\tbLength 0x04\tbDescriptorType 0x00\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 0x01\tbaInterfaceNr(1) 0x02\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 0x01\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 0x01\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 0x01\tbEndpointAddress  (OUT endpoint 1) 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 0x02\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 0x02\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 0x81\tbEndpointAddress  (IN endpoint 1) 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;STM32 Audio Class&quot; 0x03   0x0409  &quot;317C33753434&quot;  ------------------------------  Connection path for device:  xHCI-??????????? ????-?????????? USB Root Hub STM32 Audio Class (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>\u0414\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 USB<\/h1>\n<p>  \u041f\u0440\u0438 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0432 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u044b\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u0443\u0444\u0435\u0440 \u0442\u0440\u0430\u043a\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0438, \u0430 \u0441\u043e\u0441\u0442\u0430\u0432 \u043a\u043e\u043c\u0430\u043d\u0434, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u043e\u043c\u0443 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 <i>AUDIO_CMD_STOP<\/i> \u0438 <i>AUDIO_CMD_RECORD<\/i>.<\/p>\n<p>  \u0422\u0440\u0430\u043a\u0442 \u0437\u0430\u043f\u0438\u0441\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> \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 <i>AUDIO_IN_IF<\/i> \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>Alternate Setting 1,<\/i> \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u043e\u0436\u0438\u0434\u0430\u0435\u0442 \u0441\u043e\u0431\u044b\u0442\u0438\u0435 <i>SOF<\/i>, \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 <i>AUDIO_CMD_RECORD<\/i>, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u0443 \u0431\u0443\u0444\u0435\u0440\u0430 \u0442\u0440\u0430\u043a\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438 \u0438\u0437 \u0431\u0443\u0444\u0435\u0440\u0430 <i>DSP<\/i>. \u0414\u0430\u043b\u0435\u0435 \u044d\u0442\u0438 \u043f\u0430\u043a\u0435\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0438\u0437 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0431\u0443\u0444\u0435\u0440\u0430 \u0442\u0440\u0430\u043a\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432\u043e\u0432\u043d\u0435 \u0447\u0435\u0440\u0435\u0437 \u043a\u043e\u043d\u0435\u0447\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443 <i>AUDIO_IN_EP<\/i>.<\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0442\u0440\u0430\u043a\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u044b\u043b \u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <i>AUDIO_CMD_RECORD<\/i> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0431\u0443\u0444\u0435\u0440\u0430 \u0442\u0440\u0430\u043a\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p>  \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 <i>AUDIO_IN_EP<\/i> \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430 <i>USBD_LL_FlushEP(pdev, AUDIO_IN_EP) <\/i> \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0431\u0443\u0444\u0435\u0440\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430.<\/p>\n<p>  \u0422\u0440\u0430\u043a\u0442 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \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> \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 <i>AUDIO_OUT_IF<\/i> \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>Alternate Setting 1<\/i>. \u041a\u043e\u043c\u0430\u043d\u0434\u0430 <i>AUDIO_CMD_PLAY<\/i> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u044b \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0431\u0443\u0444\u0435\u0440\u0430 \u0442\u0440\u0430\u043a\u0442\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u044d\u0442\u0438 \u043f\u0430\u043a\u0435\u0442\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440 <i>DSP<\/i>.<\/p>\n<p>  \u041a\u043e\u043c\u0430\u043d\u0434\u0430 <i>AUDIO_CMD_STOP<\/i> \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u043f\u0440\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 <i>AUDIO_OUT_IF<\/i> \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 <i>Alternate Setting 0<\/i>, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e <i>DSP<\/i> \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 \u0442\u0440\u0430\u043a\u0442\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c \u0442\u0438\u0448\u0438\u043d\u044b.<\/p>\n<p>  \u0421\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>USBD_AUDIO_Sync<\/i> \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0438 \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438.<\/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 \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 USB<\/h1>\n<p>  \u041f\u0440\u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\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 <i>STM32CubeMX<\/i> \u0443\u0434\u0430\u043b\u0438\u0442 \u0438\u0437 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0444\u0430\u0439\u043b\u044b \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u043c <i>usbd_audio.c<\/i> \u0438 <i>usbd_audio_if.c<\/i> \u0432 \u043f\u0430\u043f\u043a\u0443 <i>Core\/Scr<\/i>, \u0430 <i>usbd_audio.h<\/i> \u0438 <i>usbd_audio_if.h<\/i> \u2013 \u0432 <i>Core\/Inc<\/i>.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442, \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0442\u0440\u0430\u043a\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u043d\u0435\u043b\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u043e\u043c. \u041d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u043c \u0442\u0440\u0430\u043a\u0442\u044b \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u043f\u0438\u0441\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> \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<p>  \u0414\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\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 \u0437\u0432\u0443\u043a\u043e\u0432\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 <i>USB<\/i> \u0434\u0430\u043d\u043d\u044b\u0435 \u0441 \u0432\u044b\u0445\u043e\u0434\u0430 \u0442\u0440\u0430\u043a\u0442\u0430 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u044e\u0442 \u043d\u0430 \u0432\u0445\u043e\u0434 \u0442\u0440\u0430\u043a\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u0447\u0435\u0440\u0435\u0437 \u0448\u043b\u0435\u0439\u0444, \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 \u0431\u0443\u0444\u0435\u0440\u0435 <i>DSP<\/i> (\u0441\u043c. \u0444\u0430\u0439\u043b <i>dsp_if.c<\/i>). \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0448\u043b\u0435\u0439\u0444\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043a \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0438 \u043d\u0435 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0438\u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u0442\u043e\u043a\u0438.<\/p>\n<p>  \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432 \u043f\u0430\u043d\u0435\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0437\u0432\u0443\u043a\u043e\u043c \u0434\u043b\u044f \u0442\u0440\u0430\u043a\u0442\u0430 \u0437\u0430\u043f\u0438\u0441\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u0435 \u0447\u0435\u0440\u0435\u0437 \u0437\u0432\u0443\u043a\u043e\u0432\u0443\u044e \u043a\u0430\u0440\u0442\u0443 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430. \u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0432 \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 \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>.<\/p>\n<h1>\u0421\u043e\u0437\u0434\u0430\u0451\u043c Communication Device Class<\/h1>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0435\u043c \u043a \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b <i>\u00abMiddleware\u00bb<\/i> \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <i>IP \u00abCommucation Device Class\u00bb<\/i>. \u0417\u0430\u0434\u0430\u0451\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0440\u0430\u0432\u043d\u043e\u0435 <i>\u043f\u044f\u0442\u0438<\/i>. \u0420\u0430\u0437\u043c\u0435\u0440 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u0437\u0430\u0434\u0430\u0451\u043c \u0440\u0430\u0432\u043d\u044b\u043c <i>64 Bytes<\/i>.<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/cn\/pk\/hy\/cnpkhykmbzlgtt76kryan8xzfg4.png\"><\/div>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 <i>\u043f\u044f\u0442\u044c<\/i>, \u0442.\u043a. \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \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 \u0438\u0445 <i>\u0442\u0440\u0438<\/i>, \u0430 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430 \u2013 <i>\u0434\u0432\u0430<\/i>.<\/p>\n<p>  \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442. \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u0434. \u0421\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435.<\/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>  \u0424\u0430\u0439\u043b\u044b \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0432 <i>STM32CubeMX<\/i> \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 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0432 \u043f\u0430\u043f\u043a\u0430\u0445 <i>Middlewares\/ST\/Class\/CDC<\/i> \u0438 <i>USB_DEVICE<\/i>.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u0438, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430 \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u043e \u0441\u0432\u043e\u0438\u043c \u043e\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 <i>usbd_cdc_if.c<\/i>.<\/p>\n<p>  \u0412\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>CDC_Init_FS<\/i> \u0437\u0430\u0434\u0430\u0451\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u0442\u0440\u0430\u043a\u0442\u043e\u0432 \u043f\u0440\u0438\u0451\u043c\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438.<\/p>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0438 \u043a\u043e\u043c\u0430\u043d\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <i>CDC_Control_FS<\/i>. \u0421\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043c\u0430\u043d\u0434 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0440.19 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430:<\/p>\n<p>  [4] <a href=\"https:\/\/usb.org\/sites\/default\/files\/CDC1.2_WMC1.1_012011.zip\" rel=\"nofollow noopener noreferrer\">Universal Serial Bus Communications Class Subclass Specification for PSTN Devices, Revision 1.2, February 9, 2007<\/a><\/p>\n<p>  \u0412 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0438\u043f\u0430 <i>USBD_CDC_LineCodingTypeDef<\/i>, \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432 <i>usbd_cdc.h<\/i>. \u041f\u0440\u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0430 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0442\u0430\u043a\u043e\u0433\u043e \u0442\u0438\u043f\u0430 \u0436\u0451\u0441\u0442\u043a\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043d \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442 \u0432\u043e\u0432\u043d\u0435 \u043f\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0443.<\/p>\n<p>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <i>CDC_Receive_FS<\/i> \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c\u0443 <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0443.<\/p>\n<p>  \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c\u0443 <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <i>CDC_Transmit_FS<\/i>.<\/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 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430<\/h1>\n<p>  \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <i>COM<\/i>-\u043f\u043e\u0440\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e <i>\u00ab\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438\u00bb<\/i>. \u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u043e\u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0443\u0435\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u044e <i>\u00ab\u044d\u0445\u0430\u00bb<\/i>.<\/p>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0432 \u043f\u0430\u043f\u043a\u0435 <i>USB_DEVICE\\App<\/i> \u0444\u0430\u0439\u043b <i>usbd_cdc_if.c<\/i> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e <i>CDC_Receive_FS<\/i> \u0448\u043b\u0435\u0439\u0444, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:  <\/p>\n<pre><code class=\"cpp\">static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len) {   \/* USER CODE BEGIN 6 *\/   CDC_Transmit_FS (Buf, *Len); \/\/++++++    USBD_CDC_SetRxBuffer(&amp;hUsbDeviceFS, &amp;Buf[0]);   USBD_CDC_ReceivePacket(&amp;hUsbDeviceFS);   return (USBD_OK);   \/* USER CODE END 6 *\/ } <\/code><\/pre>\n<p>  \u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442, \u043f\u0440\u043e\u0448\u0438\u0432\u0430\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 COM-\u043f\u043e\u0440\u0442, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u044b.<\/p>\n<p>  \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u043e\u0432\u043e\u043c\u0443 COM-\u043f\u043e\u0440\u0442\u0443 \u043b\u044e\u0431\u043e\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439. \u041f\u0435\u0440\u0435\u0434\u0430\u0451\u043c \u0434\u0430\u043d\u043d\u044b\u0435, \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c <i>\u00ab\u044d\u0445\u043e\u00bb<\/i>. \u0423\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0432 \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.<\/p>\n<h4>\u041e\u0442 \u0430\u0432\u0442\u043e\u0440\u0430<\/h4>\n<p>  \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u043c\u044b \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 <i>COM<\/i>-\u043f\u043e\u0440\u0442 \u0438 \u0434\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 \u0432 \u0441\u043e\u0441\u0442\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e <i>USB<\/i> \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0445 \u043d\u044e\u0430\u043d\u0441\u043e\u0432 \u044d\u0442\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f.<\/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\/533588\/\"> https:\/\/habr.com\/ru\/post\/533588\/<\/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\/hz\/gg\/u9\/hzggu9hvxmn1g5u9m7hybtjxkas.jpeg\"><\/div>\n<p>  \u0412 \u0442\u0440\u0435\u0442\u044c\u0435\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 <i>USB<\/i> \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043f\u0435\u0440\u0435\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0432 <i>STM32CubeMX<\/i> <i>USB Audio Speaker<\/i>, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0439 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u0432 \u0434\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.<\/p>\n<p>  \u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0432 <i>STM32CubeMX<\/i> \u0434\u0440\u0430\u0439\u0432\u0435\u0440 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0433\u043e <i>COM<\/i>-\u043f\u043e\u0440\u0442\u0430.<\/p>\n<p>  \u0417\u0430\u0447\u0435\u043c \u043c\u044b \u0432\u0441\u0451 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u043c, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438.<\/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-319248","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319248","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=319248"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/319248\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}