rgbled.h

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

H
34
字号
//*****************************************************************************
//*****************************************************************************
//  FILENAME:  `@LIB_NAME`_RGBLED.h
//  Version: 1.1, Updated on 2007/03/08 at 09:37:41 
//  Application: PSoC Express 2.0
//
//  DESCRIPTION:  Header file for the RGBLED Driver
//-----------------------------------------------------------------------------
//      Copyright (c) Cypress MicroSystems 2007. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************

#ifndef `@LIB_NAME`_RGBLED_include
#define `@LIB_NAME`_RGBLED_include

#include <M8C.h>
#include "`@LIB_NAME`_dio.h"

////////////////////////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////////////////////////
// parameter block
typedef struct
{
	const `@LIB_NAME`_DIO_ParameterBlock * DriverPin_BLUE;
	const `@LIB_NAME`_DIO_ParameterBlock * DriverPin_GREEN;
	const `@LIB_NAME`_DIO_ParameterBlock * DriverPin_RED;		//subdriver parameter blocks
	BYTE bDrivePolarity;									// xor mask for Sourcing or Sinking LEDs 
}`@LIB_NAME`_RGBLED_ParameterBlock;

void `@LIB_NAME`_RGBLED_SetValue(const CMX_RGBLED_ParameterBlock * thisBLK, BYTE bState);
void `@LIB_NAME`_RGBLED_Instantiate(const CMX_RGBLED_ParameterBlock * thisBLK);
#endif

⌨️ 快捷键说明

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