⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 msp430generaliom.nc

📁 无线通信的主要编程软件,是无线通信工作人员的必备工具,关天相关教程我会在后续传上.
💻 NC
📖 第 1 页 / 共 3 页
字号:
// $Id: MSP430GeneralIOM.nc,v 1.3 2004/11/08 00:09:48 cssharp Exp $/* "Copyright (c) 2000-2003 The Regents of the University of California.   * All rights reserved. * * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose, without fee, and without written agreement * is hereby granted, provided that the above copyright notice, the following * two paragraphs and the author appear in all copies of this software. *  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY * OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS." */// @author Cory Sharp <cssharp@eecs.berkeley.edu>includes MSP430GeneralIO;module MSP430GeneralIOM{  provides interface MSP430GeneralIO as Port10;  provides interface MSP430GeneralIO as Port11;  provides interface MSP430GeneralIO as Port12;  provides interface MSP430GeneralIO as Port13;  provides interface MSP430GeneralIO as Port14;  provides interface MSP430GeneralIO as Port15;  provides interface MSP430GeneralIO as Port16;  provides interface MSP430GeneralIO as Port17;  provides interface MSP430GeneralIO as Port20;  provides interface MSP430GeneralIO as Port21;  provides interface MSP430GeneralIO as Port22;  provides interface MSP430GeneralIO as Port23;  provides interface MSP430GeneralIO as Port24;  provides interface MSP430GeneralIO as Port25;  provides interface MSP430GeneralIO as Port26;  provides interface MSP430GeneralIO as Port27;  provides interface MSP430GeneralIO as Port30;  provides interface MSP430GeneralIO as Port31;  provides interface MSP430GeneralIO as Port32;  provides interface MSP430GeneralIO as Port33;  provides interface MSP430GeneralIO as Port34;  provides interface MSP430GeneralIO as Port35;  provides interface MSP430GeneralIO as Port36;  provides interface MSP430GeneralIO as Port37;  provides interface MSP430GeneralIO as Port40;  provides interface MSP430GeneralIO as Port41;  provides interface MSP430GeneralIO as Port42;  provides interface MSP430GeneralIO as Port43;  provides interface MSP430GeneralIO as Port44;  provides interface MSP430GeneralIO as Port45;  provides interface MSP430GeneralIO as Port46;  provides interface MSP430GeneralIO as Port47;  provides interface MSP430GeneralIO as Port50;  provides interface MSP430GeneralIO as Port51;  provides interface MSP430GeneralIO as Port52;  provides interface MSP430GeneralIO as Port53;  provides interface MSP430GeneralIO as Port54;  provides interface MSP430GeneralIO as Port55;  provides interface MSP430GeneralIO as Port56;  provides interface MSP430GeneralIO as Port57;  provides interface MSP430GeneralIO as Port60;  provides interface MSP430GeneralIO as Port61;  provides interface MSP430GeneralIO as Port62;  provides interface MSP430GeneralIO as Port63;  provides interface MSP430GeneralIO as Port64;  provides interface MSP430GeneralIO as Port65;  provides interface MSP430GeneralIO as Port66;  provides interface MSP430GeneralIO as Port67;}implementation{  async command void Port10.setHigh() { TOSH_SET_PORT10_PIN(); }  async command void Port10.setLow() { TOSH_CLR_PORT10_PIN(); }  async command void Port10.toggle() { TOSH_TOGGLE_PORT10_PIN(); }  async command uint8_t Port10.getRaw() { return TOSH_READ_PORT10_PIN(); }  async command bool Port10.get() { return TOSH_READ_PORT10_PIN() != 0; }  async command void Port10.makeInput() { TOSH_MAKE_PORT10_INPUT(); }  async command void Port10.makeOutput() { TOSH_MAKE_PORT10_OUTPUT(); }  async command void Port10.selectModuleFunc() { TOSH_SEL_PORT10_MODFUNC(); }  async command void Port10.selectIOFunc() { TOSH_SEL_PORT10_IOFUNC(); }  async command void Port11.setHigh() { TOSH_SET_PORT11_PIN(); }  async command void Port11.setLow() { TOSH_CLR_PORT11_PIN(); }  async command void Port11.toggle() { TOSH_TOGGLE_PORT11_PIN(); }  async command uint8_t Port11.getRaw() { return TOSH_READ_PORT11_PIN(); }  async command bool Port11.get() { return TOSH_READ_PORT11_PIN() != 0; }  async command void Port11.makeInput() { TOSH_MAKE_PORT11_INPUT(); }  async command void Port11.makeOutput() { TOSH_MAKE_PORT11_OUTPUT(); }  async command void Port11.selectModuleFunc() { TOSH_SEL_PORT11_MODFUNC(); }  async command void Port11.selectIOFunc() { TOSH_SEL_PORT11_IOFUNC(); }  async command void Port12.setHigh() { TOSH_SET_PORT12_PIN(); }  async command void Port12.setLow() { TOSH_CLR_PORT12_PIN(); }  async command void Port12.toggle() { TOSH_TOGGLE_PORT12_PIN(); }  async command uint8_t Port12.getRaw() { return TOSH_READ_PORT12_PIN(); }  async command bool Port12.get() { return TOSH_READ_PORT12_PIN() != 0; }  async command void Port12.makeInput() { TOSH_MAKE_PORT12_INPUT(); }  async command void Port12.makeOutput() { TOSH_MAKE_PORT12_OUTPUT(); }  async command void Port12.selectModuleFunc() { TOSH_SEL_PORT12_MODFUNC(); }  async command void Port12.selectIOFunc() { TOSH_SEL_PORT12_IOFUNC(); }  async command void Port13.setHigh() { TOSH_SET_PORT13_PIN(); }  async command void Port13.setLow() { TOSH_CLR_PORT13_PIN(); }  async command void Port13.toggle() { TOSH_TOGGLE_PORT13_PIN(); }  async command uint8_t Port13.getRaw() { return TOSH_READ_PORT13_PIN(); }  async command bool Port13.get() { return TOSH_READ_PORT13_PIN() != 0; }  async command void Port13.makeInput() { TOSH_MAKE_PORT13_INPUT(); }  async command void Port13.makeOutput() { TOSH_MAKE_PORT13_OUTPUT(); }  async command void Port13.selectModuleFunc() { TOSH_SEL_PORT13_MODFUNC(); }  async command void Port13.selectIOFunc() { TOSH_SEL_PORT13_IOFUNC(); }  async command void Port14.setHigh() { TOSH_SET_PORT14_PIN(); }  async command void Port14.setLow() { TOSH_CLR_PORT14_PIN(); }  async command void Port14.toggle() { TOSH_TOGGLE_PORT14_PIN(); }  async command uint8_t Port14.getRaw() { return TOSH_READ_PORT14_PIN(); }  async command bool Port14.get() { return TOSH_READ_PORT14_PIN() != 0; }  async command void Port14.makeInput() { TOSH_MAKE_PORT14_INPUT(); }  async command void Port14.makeOutput() { TOSH_MAKE_PORT14_OUTPUT(); }  async command void Port14.selectModuleFunc() { TOSH_SEL_PORT14_MODFUNC(); }  async command void Port14.selectIOFunc() { TOSH_SEL_PORT14_IOFUNC(); }  async command void Port15.setHigh() { TOSH_SET_PORT15_PIN(); }  async command void Port15.setLow() { TOSH_CLR_PORT15_PIN(); }  async command void Port15.toggle() { TOSH_TOGGLE_PORT15_PIN(); }  async command uint8_t Port15.getRaw() { return TOSH_READ_PORT15_PIN(); }  async command bool Port15.get() { return TOSH_READ_PORT15_PIN() != 0; }  async command void Port15.makeInput() { TOSH_MAKE_PORT15_INPUT(); }  async command void Port15.makeOutput() { TOSH_MAKE_PORT15_OUTPUT(); }  async command void Port15.selectModuleFunc() { TOSH_SEL_PORT15_MODFUNC(); }  async command void Port15.selectIOFunc() { TOSH_SEL_PORT15_IOFUNC(); }  async command void Port16.setHigh() { TOSH_SET_PORT16_PIN(); }  async command void Port16.setLow() { TOSH_CLR_PORT16_PIN(); }  async command void Port16.toggle() { TOSH_TOGGLE_PORT16_PIN(); }  async command uint8_t Port16.getRaw() { return TOSH_READ_PORT16_PIN(); }  async command bool Port16.get() { return TOSH_READ_PORT16_PIN() != 0; }  async command void Port16.makeInput() { TOSH_MAKE_PORT16_INPUT(); }  async command void Port16.makeOutput() { TOSH_MAKE_PORT16_OUTPUT(); }  async command void Port16.selectModuleFunc() { TOSH_SEL_PORT16_MODFUNC(); }  async command void Port16.selectIOFunc() { TOSH_SEL_PORT16_IOFUNC(); }  async command void Port17.setHigh() { TOSH_SET_PORT17_PIN(); }  async command void Port17.setLow() { TOSH_CLR_PORT17_PIN(); }  async command void Port17.toggle() { TOSH_TOGGLE_PORT17_PIN(); }  async command uint8_t Port17.getRaw() { return TOSH_READ_PORT17_PIN(); }  async command bool Port17.get() { return TOSH_READ_PORT17_PIN() != 0; }  async command void Port17.makeInput() { TOSH_MAKE_PORT17_INPUT(); }  async command void Port17.makeOutput() { TOSH_MAKE_PORT17_OUTPUT(); }  async command void Port17.selectModuleFunc() { TOSH_SEL_PORT17_MODFUNC(); }  async command void Port17.selectIOFunc() { TOSH_SEL_PORT17_IOFUNC(); }  async command void Port20.setHigh() { TOSH_SET_PORT20_PIN(); }  async command void Port20.setLow() { TOSH_CLR_PORT20_PIN(); }  async command void Port20.toggle() { TOSH_TOGGLE_PORT20_PIN(); }  async command uint8_t Port20.getRaw() { return TOSH_READ_PORT20_PIN(); }  async command bool Port20.get() { return TOSH_READ_PORT20_PIN() != 0; }  async command void Port20.makeInput() { TOSH_MAKE_PORT20_INPUT(); }  async command void Port20.makeOutput() { TOSH_MAKE_PORT20_OUTPUT(); }  async command void Port20.selectModuleFunc() { TOSH_SEL_PORT20_MODFUNC(); }  async command void Port20.selectIOFunc() { TOSH_SEL_PORT20_IOFUNC(); }  async command void Port21.setHigh() { TOSH_SET_PORT21_PIN(); }  async command void Port21.setLow() { TOSH_CLR_PORT21_PIN(); }  async command void Port21.toggle() { TOSH_TOGGLE_PORT21_PIN(); }  async command uint8_t Port21.getRaw() { return TOSH_READ_PORT21_PIN(); }  async command bool Port21.get() { return TOSH_READ_PORT21_PIN() != 0; }  async command void Port21.makeInput() { TOSH_MAKE_PORT21_INPUT(); }  async command void Port21.makeOutput() { TOSH_MAKE_PORT21_OUTPUT(); }  async command void Port21.selectModuleFunc() { TOSH_SEL_PORT21_MODFUNC(); }  async command void Port21.selectIOFunc() { TOSH_SEL_PORT21_IOFUNC(); }  async command void Port22.setHigh() { TOSH_SET_PORT22_PIN(); }  async command void Port22.setLow() { TOSH_CLR_PORT22_PIN(); }  async command void Port22.toggle() { TOSH_TOGGLE_PORT22_PIN(); }  async command uint8_t Port22.getRaw() { return TOSH_READ_PORT22_PIN(); }  async command bool Port22.get() { return TOSH_READ_PORT22_PIN() != 0; }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -