8051上的CRC8校驗 A CCITT-8 CRC calculator. The source contains both the calculated (smaller but slower) version, and the table driven (faster but larger) version.
Overview In this chapter I introduce Borland C++Builder (BCB) and explain what it is about. I also devote considerable time to explaining the purpose of this book and the philosophy behind my approach to technical writing. Technical subjects covered in this chapter include Creating a simple Multimedia RAD program that plays movies, WAV files, and MIDI files. Shutting down the BCB RAD programming tools and writing raw Windows API code instead. Creating components dynamically on the heap at runtime. Setting up event handlers (closures) dynamically at runtime. A brief introduction to using exceptions. This topic is covered in more depth in Chapter 5, "Exceptions." A brief introduction to ANSI strings. This subject is covered in more depth in Chapter 3, "C++Builder and the VCL." Using the online help. Greping through the include and source files that come with the product and with this book.
*** *** *** *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** ** RELEASE NOTES *** *** *** *** *****
*** *** *** *** *** *** *** *** *** *** *** *** ***
1) RELEASE NOTES:
--- --- ----
The release notes are now provided in PDF format in the file:
\SOFTWARE\uCOS-II\DOC\RelV251.PDF
2) FEATURES SINCE V2.00:
--- --- --- -----
All the features added since V2.00 are described in the PDF file:
\SOFTWARE\uCOS-II\DOC\NewV251.PDF
3) EVENT FLAGS:
--------------
Event Flags are discussed in AN-1007 (see www.Micrium.com/app_notes.htm)
4) QUICK REFERENCE CHART:
------------------------
A Quick Reference Chart for all the functions in V2.51 is provided in the
following .PDF files:
\SOFTWARE\uCOS-II\DOC\QuickRefChartV251-Color.PDF
Once printed, simply FOLD the page in half and if you have a LAMINATION
machine, you can protect the chart by laminating it.
A C++ framework for creating Linux and Windows communications applications that contain Dialogic/Intel NetStructure products. Includes media and network classes (analog, digital, SIP, H323), multithreaded event handling, distributed app support.
CBC下寫的串口編程,API函數實例
I wish this site had been around when I was trying to figure out how to make serial communications work in Windows95. I, like many programmers, was hit with the double-whammy of having to learn Windows programming and Win95 serial comm programming at the same time. I found both tasks confusing at best. It was particularly frustrating because I had, over the years, written so much stuff (including lots of serial comm software) for the DOS environment and numerous embedded applications. Interrupt driven serial comm, DMA transfer serial comm, TSR serial comm, C, assembler, various processors... you name it, it had written it. Yet, everything I knew seemed upside-down in the message-driven-callback world of Windows.
1. 汽車輪渡口,過江渡船每次能載10輛車過江,過江車輛分為客車類和貨車類,上渡船有如下規定:同類車先到先上船,客車先于貨車上渡船,且每上4輛客車,才允許上一輛貨車。若等待客車不足4輛,則從貨車代替,若無貨車等待允許客車上船。試寫一個算法模擬渡口管理。
算法設計:
1客車和貨車均建立一個鏈式隊列,初始均為空。以后來一輛車不是貨車就是客車,因此可以說整個程序的事件驅動event就是這兩個,客車表示1,貨車表示0.
2輪船還沒有到達時客車和貨車均按次序排在各自隊列中。
3輪船到達時,根據兩個隊列的情況,分別處理。處理如下:
a 客車數不滿4輛,則將排在前面的貨車上船,但總數不能超過10,若沒有貨車等待,客車直接上船。
b 客車數滿4,但不滿8輛,客車先上,排在前面的只有一輛貨車可以上船,若沒有貨車等待則貨車不上。
c 客車滿8輛但不滿10,客車上船,排在前面的貨車最多可以上2輛,但總數不能超過10。
d 客車滿10,則全上客車,但總數不能超過10。
This firmware translates a PS/2 mouse to a USB mouse. The translator
firmware is entirely interrupt driven (with the exception of sending the
data via USB to the host.) An interrupt is generated when the PS/2 start
bit is received, at which time the firmware will begin its receive routine.
In addition to this interrupt, every 168ms a timer overflow interrupts the
main program and implements one state of the mouse state machine. This
state machine handles sending bytes to and translating bytes received from
the PS/2 mouse automatically. All of this is done in the background while
the main program runs in the foreground. The only operation that the main
program implements is sending mouse data to the PC via USB.
Introduction to GPS ToolKit Pro 1.0
GPS ToolKit Pro is an ActiveX object that makes it easy to add GPS support to any Visual Basic, Visual C++, Delphi, Excel, or scripting project that supports ActiveX controls. GPS data (including lat/lon, speed, course, altitude, and dozens of other datasets) can be accessed through GPS ToolKit s properties, and GPS ToolKit s multithreaded event-based architecture notifies your application when data has been updated, saving you from having to write messy polling routines.
IBM MQ
Introduction and overview
This chapter describes the scope of this book and introduces WebSphere
Business Integration Message Broker, WebSphere Business Integration Event
Broker, and their main components.