亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? bits1.c

?? 基于56F8346的異步電機VVVF控制程序。
?? C
字號:
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : Bits1.C
**     Project   : vvvf_56F8346
**     Processor : 56F8346
**     Beantype  : BitsIO
**     Version   : Bean 02.045, Driver 01.08, CPU db: 2.87.069
**     Compiler  : Metrowerks DSP C Compiler
**     Date/Time : 2008-2-3, 下午 02:57
**     Abstract  :
**         This bean "BitsIO" implements a multi-bit input/output.
**         It uses selected pins of one 1-bit to 8-bit port.
**     Settings  :
**         Port name                   : GPIOA_High
**
**         Bit mask of the port        : 256
**         Number of bits/pins         : 1
**         Single bit numbers          : 0 to 0
**         Values range                : 0 to 1
**
**         Initial direction           : Output (direction can be changed)
**         Safe mode                   : yes
**         Initial output value        : 0 = 000H
**         Initial pull option         : off
**
**         Port data register          : GPIO_A_DR [62177]
**         Port control register       : GPIO_A_DDR [62178]
**         Port function register      : GPIO_A_PER [62179]
**
**             ----------------------------------------------------
**                   Bit     |   Pin   |   Name
**             ----------------------------------------------------
**                    0      |    138  |   GPIOA8_A0
**             ----------------------------------------------------
**
**         Optimization for            : speed
**     Contents  :
**         GetDir - bool Bits1_GetDir(void);
**         SetDir - void Bits1_SetDir(bool Dir);
**         GetVal - byte Bits1_GetVal(void);
**         PutVal - void Bits1_PutVal(byte Val);
**         GetBit - bool Bits1_GetBit(byte Bit);
**         PutBit - void Bits1_PutBit(byte Bit,bool Val);
**         SetBit - void Bits1_SetBit(byte Bit);
**         ClrBit - void Bits1_ClrBit(byte Bit);
**         NegBit - void Bits1_NegBit(byte Bit);
**
**     (c) Copyright UNIS, spol. s r.o. 1997-2004
**     UNIS, spol. s r.o.
**     Jundrovska 33
**     624 00 Brno
**     Czech Republic
**     http      : www.processorexpert.com
**     mail      : info@processorexpert.com
** ###################################################################*/

/* MODULE Bits1. */

#include "Bits1.h"

/*Include shared modules, which are used for whole project*/
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"

#include "Cpu.h"


static const word Bits1_Table[1]={ 
256};                                     /* Table of mask constants */
/*
** ===================================================================
**     Method      :  Bits1_GetMsk (bean BitsIO)
**
**     Description :
**         This method is internal. It is used by Processor Expert
**         only.
** ===================================================================
*/
static word Bits1_GetMsk(byte Value)
{
  return((Value<1)?Bits1_Table[Value]:(word)0); /* Return appropriate bit mask */
}

/*
** ===================================================================
**     Method      :  Bits1_GetVal (bean BitsIO)
**
**     Description :
**         This method returns an input value.
**           a) direction = Input  : reads the input value from the
**                                   pins and returns it
**           b) direction = Output : returns the last written value
**     Parameters  : None
**     Returns     :
**         ---        - Input value (0 to 1)
** ===================================================================
*/
/*
byte Bits1_GetVal(void)

**  This method is implemented as a macro. See Bits1.h file.  **
*/

/*
** ===================================================================
**     Method      :  Bits1_PutVal (bean BitsIO)
**
**     Description :
**         This method writes the new output value.
**           a) direction = Input  : sets the new output value;
**                                   this operation will be shown on
**                                   output after the direction has
**                                   been switched to output
**                                   (SetDir(TRUE);)
**           b) direction = Output : directly writes the value to the
**                                   appropriate pins
**     Parameters  :
**         NAME       - DESCRIPTION
**         Val        - Output value (0 to 1)
**     Returns     : Nothing
** ===================================================================
*/
void Bits1_PutVal(byte Val)
{
  register word Temp;                  /* Temporary variable */

  Temp = (((word)Val)<<8) & Bits1_PIN_MASK; /* Prepare value for output */
  Shadow_GPIO_A_DR = Shadow_GPIO_A_DR & ~Bits1_PIN_MASK | Temp; /* Set-up bits in shadow variable */
  setReg(GPIO_A_DR,(getReg(GPIO_A_DR)) & ~Bits1_PIN_MASK | Temp); /* Set-up bits on port */
}

/*
** ===================================================================
**     Method      :  Bits1_GetBit (bean BitsIO)
**
**     Description :
**         This method returns the specified bit of the input value.
**           a) direction = Input  : reads the input value from pins
**                                   and returns the specified bit
**           b) direction = Output : returns the specified bit
**                                   of the last written value
**     Parameters  :
**         NAME       - DESCRIPTION
**         Bit        - Number of the bit to read (0 to 0)
**     Returns     :
**         ---        - Value of the specified bit (FALSE or TRUE)
**                      FALSE = "0" or "Low", TRUE = "1" or "High"
** ===================================================================
*/
bool Bits1_GetBit(byte Bit)
{
  register word Mask=Bits1_GetMsk(Bit); /* Temporary variable - bit mask */

  return((bool)((Mask)?((getReg(GPIO_A_DR)) & Mask) == Mask:(bool)0)); /* Return input value */
}

/*
** ===================================================================
**     Method      :  Bits1_PutBit (bean BitsIO)
**
**     Description :
**         This method writes the new value to the specified bit
**         of the output value.
**           a) direction = Input  : sets the value of the specified
**                                   bit; this operation will be
**                                   shown on output after the
**                                   direction has been switched to
**                                   output (SetDir(TRUE);)
**           b) direction = Output : directly writes the value of the
**                                   bit to the appropriate pin
**     Parameters  :
**         NAME       - DESCRIPTION
**         Bit        - Number of the bit (0 to 0)
**         Val        - New value of the bit (FALSE or TRUE)
**                      FALSE = "0" or "Low", TRUE = "1" or "High"
**     Returns     : Nothing
** ===================================================================
*/
void Bits1_PutBit(byte Bit, bool Val)
{
  register word Mask=Bits1_GetMsk(Bit); /* Temporary variable - bit mask */

  if (Mask)                            /* Is bit mask correct? */
    if (Val) {                         /* Is it one to be written? */
      Shadow_GPIO_A_DR |= Mask;        /* Set appropriate bit in shadow variable */
      setRegBits(GPIO_A_DR,Mask);      /* Set appropriate bit on port */
    }
    else {                             /* Is it zero to be written? */
      Shadow_GPIO_A_DR &= ~Mask;       /* Clear appropriate bit in shadow variable */
      clrRegBits(GPIO_A_DR,Mask);      /* Clear appropriate bit on port */
    }
}

/*
** ===================================================================
**     Method      :  Bits1_SetBit (bean BitsIO)
**
**     Description :
**         This method sets (sets to one) the specified bit of the
**         output value.
**         [ It is the same as "PutBit(Bit,TRUE);" ]
**           a) direction = Input  : sets the specified bit to "1";
**                                   this operation will be shown on
**                                   output after the direction has
**                                   been switched to output
**                                   (SetDir(TRUE);)
**           b) direction = Output : directly writes "1" to the
**                                   appropriate pin
**     Parameters  :
**         NAME       - DESCRIPTION
**         Bit        - Number of the bit to set (0 to 0)
**     Returns     : Nothing
** ===================================================================
*/
void Bits1_SetBit(byte Bit)
{
  register word Mask=Bits1_GetMsk(Bit); /* Temporary variable - bit mask */

  if (Mask) {                          /* Is bit mask correct? */
    Shadow_GPIO_A_DR |= Mask;          /* Set appropriate bit in shadow variable */
    setRegBits(GPIO_A_DR,Mask);        /* Set appropriate bit on port */
  }
}

/*
** ===================================================================
**     Method      :  Bits1_ClrBit (bean BitsIO)
**
**     Description :
**         This method clears (sets to zero) the specified bit
**         of the output value.
**         [ It is the same as "PutBit(Bit,FALSE);" ]
**           a) direction = Input  : sets the specified bit to "0";
**                                   this operation will be shown on
**                                   output after the direction has
**                                   beenswitched to output
**                                   (SetDir(TRUE);)
**           b) direction = Output : directly writes "0" to the
**                                   appropriate pin
**     Parameters  :
**         NAME       - DESCRIPTION
**         Bit        - Number of the bit to clear (0 to 0)
**     Returns     : Nothing
** ===================================================================
*/
void Bits1_ClrBit(byte Bit)
{
  register word Mask=Bits1_GetMsk(Bit); /* Temporary variable - bit mask */

  if (Mask) {                          /* Is bit mask correct? */
    Shadow_GPIO_A_DR &= ~Mask;         /* Clear appropriate bit in shadow variable */
    clrRegBits(GPIO_A_DR,Mask);        /* Clear appropriate bit on port */
  }
}

/*
** ===================================================================
**     Method      :  Bits1_NegBit (bean BitsIO)
**
**     Description :
**         This method negates (invertes) the specified bit of the
**         output value.
**           a) direction = Input  : invertes the specified bit;
**                                   this operation will be shown on
**                                   output after the direction has
**                                   been switched to output
**                                   (SetDir(TRUE);)
**           b) direction = Output : directly invertes the value
**                                   of the appropriate pin
**     Parameters  :
**         NAME       - DESCRIPTION
**         Bit        - Number of the bit to invert (0 to 31)
**     Returns     : Nothing
** ===================================================================
*/
void Bits1_NegBit(byte Bit)
{
  register word Mask=Bits1_GetMsk(Bit); /* Temporary variable - bit mask */

  if (Mask) {                          /* Is bit mask correct? */
    Shadow_GPIO_A_DR ^= Mask;          /* Negate appropriate bit in shadow variable */
    changeRegBits(GPIO_A_DR,Mask);     /* Negate appropriate bit on port */
  }
}

/*
** ===================================================================
**     Method      :  Bits1_SetDir (bean BitsIO)
**
**     Description :
**         This method sets direction of the bean.
**     Parameters  :
**         NAME       - DESCRIPTION
**         Dir        - Direction to set (FALSE or TRUE)
**                      FALSE = Input, TRUE = Output
**     Returns     : Nothing
** ===================================================================
*/
void Bits1_SetDir(bool Dir)
{
  if (Dir) {                           /* Is given direction output? */
    setReg(GPIO_A_DR,((getReg(GPIO_A_DR)) & ~Bits1_PIN_MASK)|(Shadow_GPIO_A_DR & Bits1_PIN_MASK)); /* Restore correct value of output from shadow variable */
    setRegBits(GPIO_A_DDR,Bits1_PIN_MASK); /* Set direction to output */
  }
  else {                               /* Is direction input? */
    clrRegBits(GPIO_A_DDR,Bits1_PIN_MASK); /* Set direction to input */
  }
}

/*
** ===================================================================
**     Method      :  Bits1_GetDir (bean BitsIO)
**
**     Description :
**         This method returns direction of the bean.
**     Parameters  : None
**     Returns     :
**         ---        - Direction of the bean (FALSE or TRUE)
**                      FALSE = Input, TRUE = Output
** ===================================================================
*/
/*
bool Bits1_GetDir(void)

**  This method is implemented as a macro. See Bits1.h file.  **
*/

/* END Bits1. */

/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 03.47 for 
**     the Motorola 56800 series of microcontrollers.
**
** ###################################################################
*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区二区三区不卡在线 | 亚洲女同一区二区| 久久精品在这里| 国产欧美1区2区3区| 欧美韩国日本不卡| 综合av第一页| 亚洲综合丝袜美腿| 久久不见久久见免费视频7 | 欧美一区二区三区白人| 久久久五月婷婷| 1024成人网| 美日韩一区二区三区| 国产一区二区三区不卡在线观看 | 亚洲天堂久久久久久久| 一区二区三区四区国产精品| 五月天激情小说综合| 日韩制服丝袜av| 成人av免费在线播放| 欧美伊人久久久久久久久影院 | 亚洲午夜精品一区二区三区他趣| 丝袜美腿亚洲色图| 成人av先锋影音| 日韩欧美综合在线| 久久精品一区二区三区四区| 秋霞影院一区二区| 91视频com| 久久精品在线免费观看| 美脚の诱脚舐め脚责91 | a级精品国产片在线观看| 欧美一区在线视频| 中文字幕在线不卡国产视频| 美女视频黄免费的久久| 91久久久免费一区二区| 亚洲专区一二三| 91福利小视频| 欧美经典一区二区三区| 高清成人在线观看| 国产精品久久影院| 国产精品一二三在| 中文字幕精品—区二区四季| 国产91综合网| 亚洲人成在线播放网站岛国| av一本久道久久综合久久鬼色| 国产女人18水真多18精品一级做| 狠狠久久亚洲欧美| 亚洲乱码日产精品bd| 在线观看一区不卡| 久久精品国产亚洲高清剧情介绍 | 成人性色生活片| 综合色中文字幕| 91视频xxxx| 亚洲成va人在线观看| 欧美xxxx在线观看| 欧美午夜一区二区三区 | 欧美性受xxxx| 亚洲一区在线视频| 久久久久久久久久久久久女国产乱 | 日韩精品一区在线| 国产成人av网站| 夜色激情一区二区| 欧美videos中文字幕| 91日韩在线专区| 狠狠色2019综合网| 视频在线观看一区| 国产精品人人做人人爽人人添| 欧美亚洲国产bt| 99久久伊人精品| 国产伦精品一区二区三区免费| 亚洲精品精品亚洲| 国产欧美日韩卡一| 欧美一区二区三区视频免费 | 麻豆一区二区三| 亚洲另类在线制服丝袜| 亚洲国产精品传媒在线观看| 在线播放91灌醉迷j高跟美女| 丁香一区二区三区| 成人久久视频在线观看| 久久成人免费日本黄色| 黄色成人免费在线| 国产精品69久久久久水密桃| 蜜桃av一区二区三区电影| 亚洲综合清纯丝袜自拍| 成人免费在线视频| 中文字幕日韩精品一区| 亚洲精品久久7777| 亚洲一区日韩精品中文字幕| 亚洲va国产va欧美va观看| 青椒成人免费视频| 久久99久久99| 成人av资源下载| 色婷婷综合久色| 欧美三级视频在线播放| 制服丝袜在线91| 久久综合999| 亚洲永久免费视频| 精品制服美女久久| 成人免费av网站| 日韩欧美高清一区| 国产午夜精品美女毛片视频| 亚洲永久免费av| 国产麻豆成人传媒免费观看| 成人av中文字幕| 欧美唯美清纯偷拍| 国产精品久久777777| 五月开心婷婷久久| 99在线视频精品| 久久久91精品国产一区二区三区| 亚洲一区视频在线观看视频| 国产一区二区三区电影在线观看| 91蝌蚪porny| 国产午夜亚洲精品羞羞网站| 视频一区二区三区入口| 成人精品国产福利| 精品国产制服丝袜高跟| 五月综合激情网| 成人天堂资源www在线| 日韩天堂在线观看| 日本v片在线高清不卡在线观看| 国产98色在线|日韩| 26uuu国产电影一区二区| 午夜久久久久久久久久一区二区| 不卡一区二区在线| 国产精品网站一区| 国产传媒久久文化传媒| 国产亚洲福利社区一区| 国产伦精品一区二区三区视频青涩 | 色悠悠亚洲一区二区| 亚洲日本青草视频在线怡红院 | 亚洲国产精品v| 国产suv精品一区二区6| 中文字幕免费不卡在线| 国产69精品久久久久777| 中国av一区二区三区| 成人黄色电影在线| 亚洲小少妇裸体bbw| 91精品国产入口| 国产一区二区日韩精品| **性色生活片久久毛片| 欧美精品久久天天躁| 美女诱惑一区二区| 亚洲欧美成aⅴ人在线观看| 制服丝袜av成人在线看| 精品一二三四区| 一区二区国产视频| 欧美精品在线一区二区| 国产精品自拍三区| 艳妇臀荡乳欲伦亚洲一区| 日韩精品一区国产麻豆| av中文字幕亚洲| 国产一区二区三区高清播放| 国产精品成人免费在线| 欧美sm极限捆绑bd| 色欧美乱欧美15图片| 琪琪久久久久日韩精品| 一区二区三区自拍| 欧美www视频| 538在线一区二区精品国产| 96av麻豆蜜桃一区二区| 国产自产视频一区二区三区| 天天操天天色综合| 亚洲免费观看在线观看| 久久久久高清精品| 久久精品在线免费观看| 精品国产一区二区亚洲人成毛片 | 国产精选一区二区三区| 亚洲国产精品久久不卡毛片 | 日韩女优电影在线观看| 精品视频在线视频| 欧美日韩在线三级| 欧美性受xxxx| 欧美一区二区三区视频在线| 欧美日韩国产美女| 日本久久精品电影| 欧美卡1卡2卡| 69堂成人精品免费视频| 欧美日本一道本| 欧美日韩在线观看一区二区| 日本精品视频一区二区| 欧美日韩电影一区| 日韩一区二区精品在线观看| 日韩一区二区免费在线观看| 2014亚洲片线观看视频免费| 日本一区免费视频| 国产精品免费丝袜| 亚洲高清在线精品| 国产在线播放一区三区四| 国产精品亚洲视频| 在线观看三级视频欧美| 日韩亚洲欧美高清| 亚洲视频精选在线| 国内欧美视频一区二区| 成人h动漫精品一区二区| 欧美精品乱人伦久久久久久| 国产精品美女一区二区三区| 亚洲综合在线第一页| 久久99精品国产麻豆不卡| 91麻豆精东视频| 久久久久99精品国产片| 亚洲国产欧美在线| 欧美日韩日日夜夜|