当前位置: 首页 > news >正文

如何查询网站死链网站源码整站打包

如何查询网站死链,网站源码整站打包,珠海工程建设信息网站,密云免费网站建设FT2232调试记录 #xff08;1#xff09;获取当前连接的FTDI设备通道个数:#xff08;2#xff09;获取当前连接的设备通道的信息:#xff08;3#xff09;配置SPI的通道:#xff08;4#xff09;如何设置GPIO:#xff08;5#xff09;DEMO测试#xff1a; FT2232调… FT2232调试记录 1获取当前连接的FTDI设备通道个数:2获取当前连接的设备通道的信息:3配置SPI的通道:4如何设置GPIO:5DEMO测试 FT2232调试记录1: FT2232调试记录2: FT2232调试记录3: #参考文档 1包含了FT2xxx和IIC SPI的操作手册。 相关文档:https://ftdichip.com/document/programming-guides/ 2包含了MPSSE和MCU主机总线仿真模式的命令处理器。 AN108Command Processor for MPSSE and MCU Host Bus Emulation Modes. (3)相关博客FT2232H编程流程分析 1获取当前连接的FTDI设备通道个数: status SPI_GetNumChannels((DWORD *)channels);APP_CHECK_STATUS(status);qDebug(Number of available SPI channels %d\n,channels);2获取当前连接的设备通道的信息: FT2232 有两个通道使用SPI_GetChannelInfo 获取通道信息。 FT_DEVICE_LIST_INFO_NODE devList[2];status SPI_GetChannelInfo(0,devList[0]);APP_CHECK_STATUS(status);printf(Information on channel number %d:\n,0);/* print the dev info */qDebug( Flags0x%x\n,devList[0].Flags);qDebug( Type0x%x\n,devList[0].Type);qDebug( ID0x%x\n,devList[0].ID);qDebug( LocId0x%x\n,devList[0].LocId);qDebug( SerialNumber%s\n,devList[0].SerialNumber);qDebug( Description%s\n,devList[0].Description);qDebug( ftHandle0x%x\n,devList[0].ftHandle);/*is 0 unless open*/status SPI_GetChannelInfo(1,devList[1]);APP_CHECK_STATUS(status);printf(Information on channel number %d:\n,1);/* print the dev info */qDebug( Flags0x%x\n,devList[1].Flags);qDebug( Type0x%x\n,devList[1].Type);qDebug( ID0x%x\n,devList[1].ID);qDebug( LocId0x%x\n,devList[1].LocId);qDebug( SerialNumber%s\n,devList[1].SerialNumber);qDebug( Description%s\n,devList[1].Description);qDebug( ftHandle0x%x\n,devList[1].ftHandle);/*is 0 unless open*/Information on channel number 0: Flags0x2 Type0x6 ID0x4036010 LocId0x231 SerialNumberA DescriptionDual RS232-HS A ftHandle0x0 status ok! Information on channel number 1: Flags0x2 Type0x6 ID0x4036010 LocId0x232 SerialNumberB DescriptionDual RS232-HS B ftHandle0x03配置SPI的通道: 如下举例为SPI操作通道 A (0): uint32_t channels; channelConf.ClockRate 5000; channelConf.LatencyTimer 255; channelConf.configOptions SPI_CONFIG_OPTION_MODE0 | SPI_CONFIG_OPTION_CS_DBUS3; channelConf.Pin 0x00000000;/*FinalVal-FinalDir-InitVal-InitDir (for dir 0in, 1out)*/status SPI_GetNumChannels((DWORD *)channels); APP_CHECK_STATUS(status);qDebug(Number of available SPI channels %d\n,channels);/* Open the first available channel */ status SPI_OpenChannel(0,ftHandle[0]); APP_CHECK_STATUS(status); qDebug(\nhandle0x%x status0x%x\n,ftHandle[0],status); status SPI_InitChannel(ftHandle[0],channelConf); APP_CHECK_STATUS(status);********status SPI_CloseChannel(ftHandle[0]); 4如何设置GPIO: 方式一 libmpsse 库中提供的接口FT_WriteGPIO只能支持ACBUS(BCBUS) 即高字节操作。 FT_STATUS FT_WriteGPIO(FT_HANDLE handle, uint8 dir, uint8 value) dir: 0 out 1 in value:0 low 1 high FT_STATUS FT_ReadGPIO(FT_HANDLE handle, uint8 *value) 控制引脚AC3 AC4 BC3 BC4 FT2232H有两个MPSSE通道每个通道带有两个8位端口 即ADBUS和ACBUSBDBUS和BCBUS. 其中 【低字节】 ADBUS(BDBUS)用于同步串行通信I2C/SPI/JTAG 【高字节】 ACBUS(BCBUS)可以免费用作GPIO 初始化时候打开channel: /* Open the first available channel */status SPI_OpenChannel(0,ftHandle[0]);APP_CHECK_STATUS(status);qDebug(\nhandle0x%x status0x%x\n,ftHandle[0],status);status SPI_InitChannel(ftHandle[0],channelConf);APP_CHECK_STATUS(status);// status SPI_CloseChannel(ftHandle[0]);/* Open the first available channel */status SPI_OpenChannel(1,ftHandle[1]);APP_CHECK_STATUS(status);qDebug(\nhandle0x%x status0x%x\n,ftHandle[1],status);status SPI_InitChannel(ftHandle[1],channelConf);APP_CHECK_STATUS(status);// status SPI_CloseChannel(ftHandle[1]);void bsp_ft2232::bsp_ledA(enum typePinA chl, bool highlow) { uint8_t val0; FT_ReadGPIO(ftHandle[0],val); FT_WriteGPIO(ftHandle[0],gpio_setting[0], ( highlow ? (val|(0x1(chl)) ) : (val(~(0x1(chl))) ) ) ); }void bsp_ft2232::bsp_ledB(enum typePinB chl, bool highlow) {uint8_t val0;FT_ReadGPIO(ftHandle[1],val);FT_WriteGPIO(ftHandle[1],gpio_setting[1], ( highlow ? (val|(0x1(chl)) ) : (val(~(0x1(chl))) ) ) ); }方式二 使用ftd2xx 库中提供的接口。 调用FT_Write 库。 3.6.1 Set Data bits LowByte 0x80, 0xValue, 0xDirection This will setup the direction of the first 8 lines and force a value on the bits that are set as output. A 1 in the Direction byte will make that bit an output. 3.6.2 Set Data bits High Byte 0x82, 0xValue, 0xDirection This will setup the direction of the high 8 lines and force a value on the bits that are set as output. A 1 in the Direction byte will make that bit an output. 3.6.3 Read Data bits LowByte 0x81, This will read the current state of the first 8 pins and send back 1 byte. 3.6.4 Read Data bits HighByte 0x83, This will read the current state of the high 8 pins and send back 1 byte. void bsp_ft2232::bsp_ledtest(bool highlow) {if(highlow){dwNumBytesToSend 0; byOutputBuffer[dwNumBytesToSend] 0x82; byOutputBuffer[dwNumBytesToSend] 0xFF; byOutputBuffer[dwNumBytesToSend] 0xFF; status FT_Write(ftHandle[0], byOutputBuffer, dwNumBytesToSend, dwNumBytesSent);qDebug(on %d\r\n,dwNumBytesSent);dwNumBytesSent0;dwNumBytesToSend 0;}else{dwNumBytesToSend 0; byOutputBuffer[dwNumBytesToSend] 0x82; byOutputBuffer[dwNumBytesToSend] 0x00; byOutputBuffer[dwNumBytesToSend] 0xFF; status FT_Write(ftHandle[0], byOutputBuffer, dwNumBytesToSend, dwNumBytesSent);qDebug(off %d\r\n,dwNumBytesSent);dwNumBytesSent0;dwNumBytesToSend 0;} }5DEMO测试
http://www.eeditor.cn/news/120163/

相关文章:

  • 备案通过后怎么做网站男生做男生网站在那看
  • 网站开发市场前景中国在数码网站注册域名好 gt
  • 个人做视频网站icp备案网站名称更改
  • 中山做百度网站的公司名称dede网站前台没有图片
  • 丹江口市建设局网站一个空间放多个网站
  • 延边延吉网站建设建设一个公司网站需要什么条件
  • 汕头网站建设哪里找家装风格效果图大全
  • 做游戏奖金不被发现网站广州网站推广公司
  • 房产中介网站模板企业做网站的流程
  • 推广网站怎么做能增加咨询重庆企业网站营销设计
  • 太原网站制作报价河南建设工程造价信息
  • 襄阳网站建设公司哪家好浙江建设网站首页
  • 个人网站如何做网页升级访问站
  • 崇信县门户网站官网服务器搭建网站能ping t
  • 漂亮的网站设计福建省网站建设有限公司
  • 河南郑州做网站汉狮绿色国网app下载地址
  • 手机有软件做ppt下载网站有哪些南昌做网站价格
  • 杭州网站优化方案龙岩网站建设哪里比较好
  • 网站内侧网编网站流量对排名的影响
  • 美橙互联送的网站源代码长春网站如何制作
  • 网站策划书的编写百度竞价优化
  • 上海seo网站推广公司深圳软件开发定制公司
  • 免费网站建设哪个好?网站开发部
  • 网站开发工程师培训班惠阳网站制作公司
  • 自己做视频的网站吗订货系统
  • 仿腾讯视频网站四川水利工程造价信息网
  • 网站做镜像是什么国际新闻头条
  • 网站里面的导航图标怎么做的可信赖的镇江网站建设
  • 那一个网站可以教做甜品的深圳推广系统
  • 东莞哪里有网站制作公司阿里云域名注册平台