📄 byte1.h
字号:
/** ###################################################################
** THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
** Filename : Byte1.H
** Project : Node_B
** Processor : MC9S12C64CFA16
** Beantype : ByteIO
** Version : Bean 02.053, Driver 03.07, CPU db: 2.87.339
** Compiler : Metrowerks HC12 C Compiler
** Date/Time : 2006-11-11, 15:02
** Abstract :
** This bean "ByteIO" implements an one-byte input/output.
** It uses one 8-bit port.
** Note: This bean is set to work in Output direction only.
** Methods of this bean are mostly implemented as a macros
** (if supported by target langauage and compiler).
** Settings :
** Port name : T
**
** Initial direction : Output (direction cannot be changed)
** Initial output value : 255 = 0FFH
** Initial pull option : off
**
** 8-bit data register : PTT [576]
** 8-bit control register : DDRT [578]
**
** ----------------------------------------------------
** Bit | Pin | Name
** ----------------------------------------------------
** 0 | 1 | PT0_PWM0_IOC0
** 1 | 2 | PT1_PWM1_IOC1
** 2 | 3 | PT2_PWM2_IOC2
** 3 | 4 | PT3_PWM3_IOC3
** 4 | 7 | PT4_PWM4_IOC4
** 5 | 8 | PT5_IOC5
** 6 | 9 | PT6_IOC6
** 7 | 10 | PT7_IOC7
** ----------------------------------------------------
** Contents :
** PutVal - void Byte1_PutVal(byte Val);
** SetBit - void Byte1_SetBit(byte Bit);
** ClrBit - void Byte1_ClrBit(byte Bit);
** NegBit - void Byte1_NegBit(byte Bit);
**
** (c) Copyright UNIS, spol. s r.o. 1997-2005
** UNIS, spol. s r.o.
** Jundrovska 33
** 624 00 Brno
** Czech Republic
** http : www.processorexpert.com
** mail : info@processorexpert.com
** ###################################################################*/
#ifndef Byte1_H_
#define Byte1_H_
/* MODULE Byte1. */
/* Including shared modules, which are used in the whole project */
#include "PE_Types.h"
#include "PE_Error.h"
#include "PE_Const.h"
#include "IO_Map.h"
#include "Cpu.h"
#pragma CODE_SEG Byte1_CODE
/*
** ===================================================================
** Method : Byte1_PutVal (bean ByteIO)
**
** Description :
** This method writes the new output value.
** Parameters :
** NAME - DESCRIPTION
** Val - Output value (0 to 255)
** Returns : Nothing
** ===================================================================
*/
#define Byte1_PutVal(Val) ( \
(void)setReg8(PTT, Val) /* PTT0-PTT7=Val[bits 0-7] */ \
)
/*
** ===================================================================
** Method : Byte1_SetBit (bean ByteIO)
**
** Description :
** This method sets (sets to one) the specified bit of the
** output value.
** [ It is the same as "PutBit(Bit,TRUE);" ]
** Parameters :
** NAME - DESCRIPTION
** Bit - Number of the bit to set (0 to 7)
** Returns : Nothing
** ===================================================================
*/
void Byte1_SetBit(byte Bit);
/*
** ===================================================================
** Method : Byte1_ClrBit (bean ByteIO)
**
** Description :
** This method clears (sets to zero) the specified bit
** of the output value.
** [ It is the same as "PutBit(Bit,FALSE);" ]
** Parameters :
** NAME - DESCRIPTION
** Bit - Number of the bit to clear (0 to 7)
** Returns : Nothing
** ===================================================================
*/
void Byte1_ClrBit(byte Bit);
/*
** ===================================================================
** Method : Byte1_NegBit (bean ByteIO)
**
** Description :
** This method negates (inverts) the specified bit of the
** output value.
** Parameters :
** NAME - DESCRIPTION
** Bit - Number of the bit to invert (0 to 7)
** Returns : Nothing
** ===================================================================
*/
void Byte1_NegBit(byte Bit);
#pragma CODE_SEG DEFAULT
/* END Byte1. */
#endif /* #ifndef __Byte1_H_ */
/*
** ###################################################################
**
** This file was created by UNIS Processor Expert 2.96 [03.76]
** for the Freescale HCS12 series of microcontrollers.
**
** ###################################################################
*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -