📄 readme
字号:
README for tinyos-2.x/tos/lib/tossimThis directory contains the core code for the TOSSIM TinyOS simulator.One characteristic of TOSSIM is that it can controlled through aPython script. Building simple yet efficient support for this requires presenting most TOSSIM abstractions in a C++ interface, which is thentransformed into a Python interface with the SWIG tool.This leads most TOSSIM abstractions to have three levels: C, nesC, and C++. Because nesC cannot call C++ and vice versa, TOSSIM exportsits important call points as C functions. It links simple C++ wrapperclasses against the simulation binary. Python can then call throughthe C++ interface.The files tossim.h and tossim.c, for example, are the basic TOSSIMC++ classes of Mote, Tossim, and Variable. These call functions in sim_tossim.c, which other parts of TOSSIM also call.The examples/ directory contains some sample Python scripts.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -