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

📄 led.h

📁 用UCOS系统实现的MIPS平台源码
💻 H
字号:
/**************************************************************************
*                                                                         *
*   PROJECT     : TMON (Transparent monitor)                              *
*                                                                         *
*   MODULE      : LED.h                                                   *
*                                                                         *
*   AUTHOR      : Michael Anburaj                                         *
*                 URL  : http://geocities.com/michaelanburaj/             *
*                 EMAIL: michaelanburaj@hotmail.com                       *
*                                                                         *
*   PROCESSOR   : MIPS 4Kc (32 bit RISC) - ATLAS board                    *
*                                                                         *
*   Tool-chain  : SDE & Cygnus                                            *
*                                                                         *
*   DESCRIPTION :                                                         *
*   External interface & Module configuration header for LED module.      *
*                                                                         *
**************************************************************************/

#ifndef __LED_H__
#define __LED_H__

#include "sysdefs.h"

#ifdef __cplusplus
extern "C" {
#endif


/* ********************************************************************* */
/* Module configuration */


/* ********************************************************************* */
/* Interface macro & data definition */


/* ********************************************************************* */
/* Interface function definition */
void LED_vPutsNoClr(U8 *pbStr);

/*
*********************************************************************************************
*                                       LED_vPuts
*
* Description: This routine displays the string on the 8*ASCII LED display after clearing it.
*
* Arguments  : pbStr - String to be displayed.
*
* Return     : none.
*
* Note(s)    : 
*********************************************************************************************
*/
void LED_vPuts(U8 *pbStr);

/*
*********************************************************************************************
*                                       LED_vPuti
*
* Description: This routine displays the Hex value on the 8*ASCII LED display.
*
* Arguments  : wInt - U32 to be displayed.
*
* Return     : none.
*
* Note(s)    : 
*********************************************************************************************
*/
void LED_vPuti(U32 wInt);

/*
*********************************************************************************************
*                                       LED_vPutBar
*
* Description: This routine displays the 8 bit bar graph on the BAR LED display.
*
* Arguments  : bBar - 8 bit bar graph value to be displayed.
*
* Return     : none.
*
* Note(s)    : 
*********************************************************************************************
*/
void LED_vPutBar(U8 bBar);

/*
*********************************************************************************************
*                                       LED_bGetBar
*
* Description: This routine gets the 8 bit bar graph value last displayed on the BAR LED
*              display.
*
* Arguments  : none.
*
* Return     : 8 bit bar graph value last displayed.
*
* Note(s)    : 
*********************************************************************************************
*/
U8 LED_bGetBar(void);

/*
*********************************************************************************************
*                                       LED_vGreen
*
* Description: This routine turns ON or OFF the GREEN LED.
*
* Arguments  : bCmnd - Command.
*                      Flase - Turn OFF.
*                      True  - Turn ON.
*.
*
* Return     : 8 bit bar graph value last displayed.
*
* Note(s)    : 
*********************************************************************************************
*/
U8 LED_vGreen(U8 bCmnd);


/* ********************************************************************* */

#ifdef __cplusplus
}
#endif

#endif /*__LED_H__*/

⌨️ 快捷键说明

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