登录
首页 » c,c++ » CC2541 SimpleBLEPeripheral

CC2541 SimpleBLEPeripheral

于 2022-03-23 发布 文件大小:30.82 kB
0 42
下载积分: 2 下载次数: 1

代码说明:

TI 2541全部外设器件驱动程序,以及BLE协议栈

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 线程池的c++实现
    线程池的一种实现方法,希望能帮助大家学习提高。
    2022-01-24 15:37:24下载
    积分:1
  • PIC32MX795F512L单片机控制OV7670并显示在TFT屏幕上
    PIC32MX795F512L单片机控制OV7670并显示在TFT屏幕上,通过3次中断读取OV7670数据,并立即传输给TFT显示屏,屏幕使用9325主控。
    2022-05-25 14:07:59下载
    积分:1
  • c#网络应用编程(第三版)源代码
    c#网络应用编程(第三版)源代码
    2017-06-02下载
    积分:1
  • PID
    用C#语言编写的单神经元自适应控制用C#语言编写的单神经元自适应控制用C#语言编写的单神经元自适应控制用C#语言编写的单神经元自适应控制用C#语言编写的单神经元自适应控制用C#语言编写的单神经元自适应控制
    2022-03-06 01:13:35下载
    积分:1
  • 沟通,阅读和FX系列PLC采用三菱C #写作价值
    应用背景沟通,阅读和FX系列PLC采用三菱C #写作价值…将您的可编程控制器与电脑和读写价值相结合。关键技术利用串口通信C #到 ; 三菱PLC通信;
    2022-02-06 02:52:52下载
    积分:1
  • C# DirectShow 摄像头捕获程序
    C# DirectShow 摄像头捕获程序 基于aForge 请用VS2015以上打开
    2023-04-01 18:05:04下载
    积分:1
  • f_in_box__dotnet__demo_3_1_5_6
    f-in-box的Demo,是从f-in-box的官网上下载下来的。(the Demo of f_in_box,is download form www.f-in-box.com)
    2010-10-29 18:06:37下载
    积分:1
  • matlab示例代码
    此代码哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
    2022-08-14 02:49:53下载
    积分:1
  • C++Builder6下的一个生产管理系统,对于学习C++的朋友有相当大的帮助,此软件在C++BUilder6下开发,没有用到别的控件...
    C++Builder6下的一个生产管理系统,对于学习C++的朋友有相当大的帮助,此软件在C++BUilder6下开发,没有用到别的控件-C Builder6 under a production management system for learning C friends is a big help, the software in C BUilder6 under development, did not use the other controls
    2023-02-02 20:35:04下载
    积分:1
  • c# 扫描IP Http Header
    c# 扫描IP Http Headerusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;using System.IO;namespace HScan{ public partial class Form1 : Form { int _currentThreads = 0; int _maxThreads = 100; Thread main = null; Thread mt = null; List threads = new List(); public Form1() { InitializeComponent(); Control.CheckForIllegalCrossThreadCalls = false; } private void btnStart_Click(object sender, EventArgs e) { btnStart.Enabled = false; if (txtStart.Text.Trim() == "") { MessageBox.Show("起始IP不能为空."); return; } if (txtEnd.Text.Trim() == "") { MessageBox.Show("结束IP不能为空."); return; } int ts = Convert.ToInt32(txtThreads.Text); _maxThreads = ts; string startIp = txtStart.Text; string endIp = txtEnd.Text; TParameter tp=new TParameter(); tp.StartIp=startIp; tp.EndIp=endIp; tp.ThreadCount=ts; main = new Thread(new ParameterizedThreadStart(StartMe)); main.Start(tp); } protected void ThreadManage() { Thread c=null; while (true) { System.Object lockThis = new System.Object(); lock (lockThis) { for (int i = 0; i < threads.Count; i ) { if (threads[i] != null && !threads[i].IsAlive) { c = threads[i]; break; } } if (c != null) { threads.Remove(c); } } } } protected void StartMe(object ob) { mt = new Thread(new ThreadStart(ThreadManage)); mt.Start(); TParameter p = ob as TParameter; string curIp = p.StartIp; while (true) { for (int i = 0; i < _maxThreads; i ) { if (curIp != "") { if (_currentThreads >= _maxThreads) break; System.Object lockThis = new System.Object(); lock (lockThis) { _currentThreads ; if (_currentThreads > _maxThreads) _currentThreads = _maxThreads; string tip = curIp; Thread t = new Thread(new ParameterizedThreadStart(Run)); t.Start(tip); threads.Add(t); curIp = IPUtility.getLastIp(curIp, p.EndIp, 1); } } else { break; } } } } protected void Run(object ob) { string ip = ob.ToString(); SocketGetHead h = new SocketGetHead(); string ret = h.GetHtml(ip, 80); if (ret.IndexOf("DVRDVS-Webs") > 0) { ListViewItem item = new ListViewItem(); item.SubItems[0].Text = (listView1.Items.Count 1).ToString(); ListViewItem.ListViewSubItem lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = ip; item.SubItems.Add(lvSubItem); lvSubItem = new ListViewItem.ListViewSubItem(); lvSubItem.Text = "DVRDVS-Webs"; item.SubItems.Add(lvSubItem); listView1.Items.Add(item); } System.Object lockThis = new System.Object(); lock(lockThis) { lblCurIp.Text = ip; _currentThreads--; if (_currentThreads < 0) _currentThreads = 0; } } private void tsmCopy_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count > 0) { string ip = listView1.SelectedItems[0].SubItems[1].Text; Clipboard.SetText(ip); } } private void tsmExport_Click(object sender, EventArgs e) { StreamWriter writer = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory "\export.txt",true); foreach (ListViewItem item in listView1.Items) { string ip=item.SubItems[1].Text; writer.WriteLine(ip); writer.Flush(); } writer.Flush(); writer.Close(); MessageBox.Show("导出成功!"); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } Thread.Sleep(5000); } private void btnStop_Click(object sender, EventArgs e) { try { if (mt != null) { mt.Interrupt(); mt.Abort(); } foreach (Thread t in threads) { t.Interrupt(); t.Abort(); } if (main != null) { main.Interrupt(); main.Abort(); } } catch { } btnStart.Enabled = true; } }}
    2014-06-23下载
    积分:1
  • 696518资源总数
  • 104316会员总数
  • 17今日下载