📄 csdproperty.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 + -