久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 4676|回復(fù): 1
收起左側(cè)

STM32 Labview USB通信源碼

[復(fù)制鏈接]
ID:317903 發(fā)表于 2018-4-27 21:03 | 顯示全部樓層 |閱讀模式
labview 的usb通信
0.jpg

單片機(jī)源程序如下:
  1. /**
  2.   ******************************************************************************
  3.   * @file    main.c
  4.   * @author  MCD Application Team
  5.   * @version V4.0.0
  6.   * @date    21-January-2013
  7.   * @brief   Virtual Com Port Demo main file
  8.   ******************************************************************************
  9.   * @attention
  10.   *
  11.   * <h2><center>© COPYRIGHT 2013 STMicroelectronics</center></h2>
  12.   *
  13.   * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
  14.   * You may not use this file except in compliance with the License.
  15.   * You may obtain a copy of the License at:
  16.   *
  17.   *
  18.   * Unless required by applicable law or agreed to in writing, software
  19.   * distributed under the License is distributed on an "AS IS" BASIS,
  20.   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  21.   * See the License for the specific language governing permissions and
  22.   * limitations under the License.
  23.   *
  24.   ******************************************************************************
  25.   */


  26. /* Includes ------------------------------------------------------------------*/
  27. #include "hw_config.h"
  28. #include "usb_lib.h"
  29. #include "usb_desc.h"
  30. #include "usb_pwr.h"
  31. #include <string.h>
  32. #include <stdio.h>
  33. #include <stdlib.h>
  34. /* Private typedef -----------------------------------------------------------*/
  35. /* Private define ------------------------------------------------------------*/
  36. /* Private macro -------------------------------------------------------------*/
  37. /* Private variables ---------------------------------------------------------*/
  38. /* Extern variables ----------------------------------------------------------*/
  39. /* Private function prototypes -----------------------------------------------*/
  40. /* Private functions ---------------------------------------------------------*/

  41. /*******************************************************************************
  42. * Function Name  : main.
  43. * Description    : Main routine.
  44. * Input          : None.
  45. * Output         : None.
  46. * Return         : None.
  47. *******************************************************************************/
  48. extern uint32_t USB_SIL_WriteEDP1Dbbuf( uint8_t* pBufferPointer, uint32_t wBufferSize);
  49. u8 t;
  50. char usbsndbuf[64];

  51. void  snddata(void)
  52. {
  53. static        int i=0;
  54. int len;        
  55. i++;

  56. USB_SIL_WriteEDP1Dbbuf(usbsndbuf, 64);
  57.         

  58. }

  59. int main(void)
  60. {
  61.         for(t=0;t<64;t++)
  62.         usbsndbuf[t]=t;
  63.   Set_System();
  64.   Set_USBClock();
  65.   USB_Interrupts_Config();
  66.   USB_Init();
  67.   
  68.   while (1)
  69.   {

  70.                 snddata();
  71.                
  72.   }
  73. }
  74. #ifdef USE_FULL_ASSERT
  75. /*******************************************************************************
  76. * Function Name  : assert_failed
  77. * Description    : Reports the name of the source file and the source line number
  78. *                  where the assert_param error has occurred.
  79. * Input          : - file: pointer to the source file name
  80. *                  - line: assert_param error line source number
  81. * Output         : None
  82. * Return         : None
  83. *******************************************************************************/
  84. void assert_failed(uint8_t* file, uint32_t line)
  85. {
  86.   /* User can add his own implementation to report the file name and line number,
  87.      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

  88.   /* Infinite loop */
  89.   while (1)
  90.   {}
  91. }
  92. #endif

  93. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
復(fù)制代碼

所有資料51hei提供下載:
STM32 Labview USB通信.rar (625.47 KB, 下載次數(shù): 81)




評(píng)分

參與人數(shù) 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎(jiǎng)勵(lì)!

查看全部評(píng)分

回復(fù)

使用道具 舉報(bào)

ID:403087 發(fā)表于 2018-9-27 12:09 | 顯示全部樓層
謝謝分享!
回復(fù)

使用道具 舉報(bào)

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規(guī)則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術(shù)交流QQ群281945664

Powered by 單片機(jī)教程網(wǎng)

快速回復(fù) 返回頂部 返回列表
主站蜘蛛池模板: 蜜桃传媒av | 亚洲国产成人av好男人在线观看 | 免费一级黄 | 国产精品一区二区免费 | av网站在线免费观看 | 欧美1—12sexvideos| 成人在线不卡 | 在线观看视频91 | 亚洲一区二区网站 | h视频免费看| 337p日本欧洲亚洲大胆鲁鲁 | 日韩2020狼一二三 | 毛片a区 | 91丨国产| 日韩在线视频免费观看 | 午夜视频在线免费观看 | 都市激情亚洲 | 成人在线视频网 | 一二三区视频 | 亚洲欧美成人影院 | 色姑娘综合网 | 在线观看黄色电影 | 少妇性l交大片免费一 | 久久中文字幕一区 | 亚洲天堂精品久久 | 亚洲人的av | 二区在线观看 | 欧美日日日日bbbbb视频 | 精品一区二区三区不卡 | 精品视频一区二区 | 亚洲综合色视频在线观看 | 亚洲精品视频在线看 | 免费视频一区二区三区在线观看 | 久久综合久久综合久久综合 | 国产特级毛片 | 一级毛片免费 | 91精品一区 | 欧美精产国品一二三区 | 在线观看中文字幕亚洲 | 免费欧美视频 | 色男人天堂av |