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

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 4563|回復: 1
收起左側

STM32 Labview USB通信源碼

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

單片機源程序如下:
  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****/
復制代碼

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

評分

參與人數 1黑幣 +50 收起 理由
admin + 50 共享資料的黑幣獎勵!

查看全部評分

回復

使用道具 舉報

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

使用道具 舉報

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

本版積分規則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 日本三级全黄三级a | 成人黄色a| 在线看免费 | 日韩精品在线播放 | 亚洲国产精品久久久久婷婷老年 | 成人自拍视频 | 国产精品久久久久久久久久 | 成人精品在线视频 | 在线观看国产视频 | 国产精品毛片 | 一区二区三区免费在线观看 | 亚洲美女一区二区三区 | 久久99精品久久久久久国产越南 | 久久综合欧美 | 久久久久亚洲精品中文字幕 | 欧美日韩亚洲系列 | 久久久999国产精品 中文字幕在线精品 | 成人福利在线 | av片网站 | 国产精品毛片久久久久久 | 国产精品亚洲综合 | 欧美日韩午夜精品 | 国产一区影院 | 午夜天堂精品久久久久 | 免费国产视频在线观看 | 亚洲一区二区三区在线 | 久久久在线视频 | 在线播放一区 | av手机免费在线观看 | 国产一区精品在线 | 7777奇米影视 | 天天摸天天干 | 精品欧美一区二区中文字幕视频 | 九九在线视频 | 日本爱爱 | 成人精品一区 | 亚洲精品一区二区三区蜜桃久 | 中文天堂在线一区 | 欧美日韩在线免费 | 国产综合在线视频 | 日韩淫片免费看 |