久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费
標題:
STM32 Labview USB通信源碼
[打印本頁]
作者:
gaosong12
時間:
2018-4-27 21:03
標題:
STM32 Labview USB通信源碼
labview 的usb通信
0.jpg
(28.55 KB, 下載次數: 51)
下載附件
2018-4-28 01:30 上傳
單片機源程序如下:
/**
******************************************************************************
* @file main.c
* @author MCD Application Team
* @version V4.0.0
* @date 21-January-2013
* @brief Virtual Com Port Demo main file
******************************************************************************
* @attention
*
* <h2><center>© COPYRIGHT 2013 STMicroelectronics</center></h2>
*
* Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
* You may not use this file except in compliance with the License.
* You may obtain a copy of the License at:
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
******************************************************************************
*/
/* Includes ------------------------------------------------------------------*/
#include "hw_config.h"
#include "usb_lib.h"
#include "usb_desc.h"
#include "usb_pwr.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Extern variables ----------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
/*******************************************************************************
* Function Name : main.
* Description : Main routine.
* Input : None.
* Output : None.
* Return : None.
*******************************************************************************/
extern uint32_t USB_SIL_WriteEDP1Dbbuf( uint8_t* pBufferPointer, uint32_t wBufferSize);
u8 t;
char usbsndbuf[64];
void snddata(void)
{
static int i=0;
int len;
i++;
USB_SIL_WriteEDP1Dbbuf(usbsndbuf, 64);
}
int main(void)
{
for(t=0;t<64;t++)
usbsndbuf[t]=t;
Set_System();
Set_USBClock();
USB_Interrupts_Config();
USB_Init();
while (1)
{
snddata();
}
}
#ifdef USE_FULL_ASSERT
/*******************************************************************************
* Function Name : assert_failed
* Description : Reports the name of the source file and the source line number
* where the assert_param error has occurred.
* Input : - file: pointer to the source file name
* - line: assert_param error line source number
* Output : None
* Return : None
*******************************************************************************/
void assert_failed(uint8_t* file, uint32_t line)
{
/* User can add his own implementation to report the file name and line number,
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
/* Infinite loop */
while (1)
{}
}
#endif
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
復制代碼
所有資料51hei提供下載:
STM32 Labview USB通信.rar
(625.47 KB, 下載次數: 81)
2018-4-28 01:32 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
作者:
zpwang
時間:
2018-9-27 12:09
謝謝分享!
歡迎光臨 (http://m.zg4o1577.cn/bbs/)
Powered by Discuz! X3.1
主站蜘蛛池模板:
av不卡在线播放
|
成人三级视频在线观看
|
中文字幕三区
|
伊人精品在线
|
51成人做爰www免费看网站
|
亚洲性色av
|
玖玖在线观看
|
a级片免费在线观看
|
av在线资源
|
成人免费毛片aaaaaa片
|
在线观看二区
|
亚洲国产精品久久久久
|
六月丁香综合
|
亚洲精品一区二三区不卡
|
色综合天天综合网国产成人网
|
一区二区在线免费观看
|
一区二区视频在线播放
|
欧美性久久
|
txvlog.com
|
www.爱爱
|
午夜aaa
|
亚洲第一第二区
|
三级黄网站
|
日韩精品少妇
|
日韩中文字幕一区
|
亚洲天堂第一页
|
中文在线观看免费高清
|
黄色三级在线
|
欧美一级网站
|
欧美日韩国产在线播放
|
亚洲天堂免费
|
欧美精品一区二区在线观看
|
少妇免费视频
|
国产精品美女久久久久av爽
|
日本成人免费网站
|
午夜精品999
|
奇米网888
|
日本精品视频在线
|
欧美一级网站
|
国产精品一区二区久久
|
中国黄色1级片
|