blinkingled.h

来自「 PSoC(可编程片上系统)是Cypress半导体公司生产的包含有8位微处理器核」· C头文件 代码 · 共 41 行

H
41
字号
//*****************************************************************************
//*****************************************************************************
//  FILENAME:  `@LIB_NAME`_BlinkingLed.h
//  Version: 1.1.0.1, Updated on 2007/05/18 at 17:38:12
//  Application: PSoC Express 2.0
//
//  DESCRIPTION:  Header file for the BlinkingLed Driver
//-----------------------------------------------------------------------------
//      Copyright (c) Cypress MicroSystems 2004. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************

#ifndef `@LIB_NAME`_BlinkingLed_include
#define `@LIB_NAME`_BlinkingLed_include
#include "cmx_dio_chan.h" 
#include <M8C.h>

`@BLINKINGLED_ORDINAL_DEFINE_BLOCK`
#define `@LIB_NAME`_BLINKINGLED_COUNT `@BLINKINGLED_COUNT`

////////////////////////////////////////////////////////////////////////////////////////////
// parameter block
typedef struct
{
    BYTE BLINKINGLED_ID;			// Instance ID
    BYTE BLINKINGLED_BlinkRate;		// Blinking Rate
	BYTE BLINKINGLED_DRIVESENSE;	// Active state of pin		
    BYTE BLINKINGLED_INITIALSTATE;	// Initial pin state
	BYTE BLINKINGLED_DriveMode;		//PSoC drive mode 0 - 7	
    BYTE BLINKINGLED_INSTANCE;
    BYTE BLINKINGLED_ChannelID;
}`@LIB_NAME`_BLINKINGLED_ParameterBlock;

//*********************
// Function Prototypes
//*********************
void `@LIB_NAME`_BLINKINGLED_SetValue(const CMX_BLINKINGLED_ParameterBlock * pPBlock, BYTE bMode);
void `@LIB_NAME`_BLINKINGLED_Instantiate(const CMX_BLINKINGLED_ParameterBlock * pPBlock);

#endif

⌨️ 快捷键说明

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