led2.h

来自「BLDC电机控制源代码」· C头文件 代码 · 共 135 行

H
135
字号
/** ###################################################################
**     THIS BEAN MODULE IS GENERATED BY THE TOOL. DO NOT MODIFY IT.
**     Filename  : LED2.H
**     Project   : BLDC_sensor
**     Processor : 56F8013VFAE
**     Beantype  : Led
**     Version   : Bean 01.006, Driver 01.05, CPU db: 2.87.068
**     Compiler  : Metrowerks DSP C Compiler
**     Date/Time : 2006-07-24, 16:32
**     Abstract  :
**          This bean provide methods for driving of LED device.
**          Methods On, Off, Set and Toggle (or only initialization code)
**          could be used to drive it. Output value, defined by Init.
**          value property, is used for initialization implicitly.
**          It is not necessary to use any method explicitly in start up.
**          Method Status return current status of the LED device.
**          LED drivers without output inverter are supported
**          via Inverted value property.
**     Settings  :
**          Output PIN                                     :GPIOA0_PWM0
**          Initialize Value                               :Off
**          Inverted Value                                 :no
**     Contents  :
**         On     - void LED2_On(void);
**         Off    - void LED2_Off(void);
**         Toggle - void LED2_Toggle(void);
**         Set    - void LED2_Set(bool Output);
**         Status - bool LED2_Status(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 __LED2
#define __LED2

/* MODULE LED2. */

/*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 inherited beans */
#include "Inhr2.h"

#include "Cpu.h"


#define LED2_On() Inhr2_SetVal()
/*
** ===================================================================
**     Method      :  LED2_On (bean Led)
**
**     Description :
**         Switch ON the LED device
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

#define LED2_Off() Inhr2_ClrVal()
/*
** ===================================================================
**     Method      :  LED2_Off (bean Led)
**
**     Description :
**         Switch OFF the LED device
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

#define LED2_Toggle() Inhr2_NegVal()
/*
** ===================================================================
**     Method      :  LED2_Toggle (bean Led)
**
**     Description :
**         Toggle the LED device value
**     Parameters  : None
**     Returns     : Nothing
** ===================================================================
*/

#define LED2_Set(Output) Inhr2_PutVal(Output)
/*
** ===================================================================
**     Method      :  LED2_Set (bean Led)
**
**     Description :
**         Put the specified value to the LED
**     Parameters  :
**         NAME            - DESCRIPTION
**         Output          - Set LED status (ON/OFF) accordant
**                           with the 'Output' value
**                           TRUE - Turn the LED ON
**                           FALSE - Turn the LED OFF
**     Returns     : Nothing
** ===================================================================
*/

#define LED2_Status() Inhr2_GetVal()
/*
** ===================================================================
**     Method      :  LED2_Status (bean Led)
**
**     Description :
**         Return the last written value of the LED device
**     Parameters  : None
**     Returns     :
**         ---             - The last written value of the LED
**                           device.
**                           TRUE - The LED is ON
**                           FALSE - The LED is OFF
** ===================================================================
*/

/* END LED2. */

#endif /* ifndef __LED2 */
/*
** ###################################################################
**
**     This file was created by UNIS Processor Expert 2.96 [03.65]
**     for the Freescale 56800 series of microcontrollers.
**
** ###################################################################
*/

⌨️ 快捷键说明

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