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

📄 csdproperty.c

📁  PSoC(可编程片上系统)是Cypress半导体公司生产的包含有8位微处理器核和数字与模拟混合的信号阵列芯片
💻 C
字号:
//*****************************************************************************
//*****************************************************************************
//  FILENAME:  `@LIB_NAME`_CSDPROPERTY.c
//  Version: 1.1.0.2, Updated on 2007/06/06 at 13:55:56
//  Application: PSoC Express 2.0
//
//  DESCRIPTION:  This Driver senses a capacitive button press and provides
//          means for outputting "tuning" values
//
//-----------------------------------------------------------------------------
//      Copyright (c) Cypress MicroSystems 2006. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************
#include "m8c.h"
#include "`@LIB_NAME`_CSDPROPERTY.h"
#include "cmx.h"
// channel type header file
#include "CMX_CSD_CHAN.h"
#include "CMXSystemExtern.h"

//-----------------------------------------------------------------------------
//  FUNCTION NAME: CSDPROPERTY_Instantiate(const `@LIB_NAME`_CSDPROPERTY_ParameterBlock * pPBlock)
//
//  DESCRIPTION:
//    CSDPROPERTY Initialization.
//
//-----------------------------------------------------------------------------
//
//  ARGUMENTS: parameter block
//
//  RETURNS:
//
//  SIDE EFFECTS: 
//
//  THEORY of OPERATION or PROCEDURE: Sets the initial status of the button.
//   TODO
//
////////////////////////////////////////////////////////////////////////////////
void `@LIB_NAME`_CSDPROPERTY_Instantiate(const `@LIB_NAME`_CSDPROPERTY_ParameterBlock * pPBlock)
{
	CSD_bNoiseThreshold = pPBlock->pCSDProperties->NoiseThreshold;
	CSD_bBaselineUpdateThreshold = pPBlock->pCSDProperties->BaselineUpdateThreshold;
	CSD_bNegativeNoiseThreshold = pPBlock->pCSDProperties->NegativeNoiseThreshold;
	CSD_bLowBaselineReset = pPBlock->pCSDProperties->LowBaselineReset;
	CSD_bHysteresis = pPBlock->pCSDProperties->Hysteresis;
	CSD_bDebounce = pPBlock->pCSDProperties->Debounce;
}

⌨️ 快捷键说明

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