?? bit1.h
字號(hào):
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : Bit1.H
** Project : vvvf_56F8346
** Processor : 56F8346
** Beantype : BitIO
** Version : Bean 02.047, Driver 01.08, CPU db: 2.87.069
** Compiler : Metrowerks DSP C Compiler
** Date/Time : 2008-2-3, 下午 02:57
** Abstract :
** This bean "BitIO" implements an one-bit input/output.
** It uses one bit/pin of a port.
** Methods of this bean are mostly implemented as a macros
** (if supported by target language and compiler).
** Settings :
** Used pin :
** ----------------------------------------------------
** Number (on package) | Name
** ----------------------------------------------------
** 4 | GPIOE0_TxD0
** ----------------------------------------------------
**
** Port name : GPIOE_Low
**
** Bit number (in port) : 0
** Bit mask of the port : 1
**
** Initial direction : Output (direction can be changed)
** Safe mode : yes
** Initial output value : 0
** Initial pull option : off
**
** Port data register : GPIO_E_DR [62257]
** Port control register : GPIO_E_DDR [62258]
** Port function register : GPIO_E_PER [62259]
**
** Optimization for : speed
** Contents :
** SetDir - void Bit1_SetDir(bool Dir);
** GetVal - bool Bit1_GetVal(void);
** PutVal - void Bit1_PutVal(bool Val);
** ClrVal - void Bit1_ClrVal(void);
** SetVal - void Bit1_SetVal(void);
**
** (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
** ###################################################################*/
#ifndef __Bit1_H
#define __Bit1_H
/* MODULE Bit1. */
/*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"
#define Bit1_PIN_MASK (byte)1 /* Pin mask */
/*
** ===================================================================
** Method : Bit1_GetVal (bean BitIO)
**
** Description :
** This method returns an input value.
** a) direction = Input : reads the input value from the
** pin and returns it
** b) direction = Output : returns the last written value
** Parameters : None
** Returns :
** --- - Input value (FALSE or TRUE)
** FALSE = "0" or "Low", TRUE = "1" or "High"
** ===================================================================
*/
#define Bit1_GetVal() (bool)(getRegBits(GPIO_E_DR,Bit1_PIN_MASK))
/*
** ===================================================================
** Method : Bit1_PutVal (bean BitIO)
**
** 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 pin
** Parameters :
** NAME - DESCRIPTION
** Val - Output value (FALSE or TRUE)
** FALSE = "0" or "Low", TRUE = "1" or "High"
** Returns : Nothing
** ===================================================================
*/
void Bit1_PutVal(bool Val);
/*
** ===================================================================
** Method : Bit1_SetDir (bean BitIO)
**
** 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 Bit1_SetDir(bool Dir);
/*
** ===================================================================
** Method : Bit1_ClrVal (bean BitIO)
**
** Description :
** This method clears (sets to zero) the output value.
** a) direction = Input : sets the output value to "0";
** this operation will be shown on
** output after the direction has
** been switched to output
** (SetDir(TRUE);)
** b) direction = Output : directly writes "0" to the
** appropriate pin
** Parameters : None
** Returns : Nothing
** ===================================================================
*/
#define Bit1_ClrVal() ((Shadow_GPIO_E_DR &= ~Bit1_PIN_MASK), (clrRegBits(GPIO_E_DR,Bit1_PIN_MASK)))
/*
** ===================================================================
** Method : Bit1_SetVal (bean BitIO)
**
** Description :
** This method sets (sets to one) the output value.
** a) direction = Input : sets the output value 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 : None
** Returns : Nothing
** ===================================================================
*/
#define Bit1_SetVal() ((Shadow_GPIO_E_DR |= Bit1_PIN_MASK), (setRegBits(GPIO_E_DR,Bit1_PIN_MASK)))
/* END Bit1. */
#endif /* __Bit1_H*/
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 03.47 for
** the Motorola 56800 series of microcontrollers.
**
** ###################################################################
*/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -