csdproperty.c
来自「 PSoC(可编程片上系统)是Cypress半导体公司生产的包含有8位微处理器核」· C语言 代码 · 共 48 行
C
48 行
//*****************************************************************************
//*****************************************************************************
// 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 + =
减小字号Ctrl + -
显示快捷键?