• 大小: 1.46MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-08-31
  • 语言: 其他
  • 标签: STM8S  TS  

资源简介

Main Changes • Suppression of STM8L devices with charge-transfer (CT) acquisition. Note: These devices and the CT acquisition are now supported in the new STMTouch driver. • Only STM8S/A devices with RC acquisition are now supported in this driver. • Driver name changed from "STM8 TouchSensing Driver" to "STM8S TouchSensing Driver".

资源截图

代码片段和文件信息

/**
  ******************************************************************************
  * @file    stm8_tsl_api.c
  * @author  MCD Application Team
  * @version V2.5.0
  * @date    14-October-2013
  * @brief   This file defines the memory buffers variables and functions for the user.
  ******************************************************************************
  * @attention
  *
  * 

© COPYRIGHT 2013 STMicroelectronics


  *
  * Licensed under MCD-ST Liberty SW License Agreement V2 (the “License“);
  * You may not use this file except in compliance with the License.
  * You may obtain a copy of the License at:
  *
  *        http://www.st.com/software_license_agreement_liberty_v2
  *
  * Unless required by applicable law or agreed to in writing software
  * distributed under the License is distributed on an “AS IS“ BASIS
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  *
  ******************************************************************************
  */

/* Includes ------------------------------------------------------------------*/
#include “stm8_tsl_api.h“
#include “stm8_tsl_singlechannelkey.h“
#include “stm8_tsl_multichannelkey.h“
#include “stm8_tsl_services.h“

/* Memory section ------------------------------------------------------------*/
#if defined(_COSMIC_) && defined(USE_PRAGMA_SECTION)
#pragma section [TSL_RAM]
#pragma section @tiny [TSL_RAM0]
#pragma section (TSL_CODE)
#pragma section const {TSL_CONST}
#endif


/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/

//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//-----             MEMORY BUFFER API                                    -----
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

TSLState_T TINY TSLState;
u8 TINY KeyIndex;

KeyFlag_T TINY TSL_GlobalSetting;
KeyState_T TINY TSL_GlobalState;
#if NUMBER_OF_SINGLE_CHANNEL_KEYS > 0
Single_Channel_Complete_Info_T * TINY pKeyStruct;
Single_Channel_Complete_Info_T sSCKeyInfo[NUMBER_OF_SINGLE_CHANNEL_KEYS];
#endif
u8 DetectionTimeout;
u8 DetectionIntegrator;
u8 EndDetectionIntegrator;
u8 RecalibrationIntegrator;
u8 ECSTimeStep;
u8 ECSTemporization;
u8 ECS_K_Fast;
u8 ECS_K_Slow;

#if IT_SYNC
volatile IT_Sync_Flags_T IT_Sync_Flags;
#endif

#if NUMBER_OF_MULTI_CHANNEL_KEYS > 0

#if defined(_COSMIC_) && defin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-05-22 13:19  STM8S_TouchSensing_Driver\
     文件       38815  2013-10-14 14:20  STM8S_TouchSensing_Driver\Release_Notes.html
     目录           0  2015-05-22 13:19  STM8S_TouchSensing_Driver\inc\
     文件       12510  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_api.h
     文件       10515  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_checkconfig.h
     文件       19723  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_conf_RC_TOADAPT.h
     文件        2487  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_internal.h
     文件        2647  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_multichannelkey.h
     文件        4711  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_rc_acquisition.h
     文件        3118  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_services.h
     文件        2738  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_singlechannelkey.h
     文件        3326  2013-10-14 14:20  STM8S_TouchSensing_Driver\inc\stm8_tsl_timebase.h
     目录           0  2015-05-22 13:19  STM8S_TouchSensing_Driver\src\
     文件       10165  2013-10-14 14:20  STM8S_TouchSensing_Driver\src\stm8_tsl_api.c
     文件       47779  2013-10-14 14:20  STM8S_TouchSensing_Driver\src\stm8_tsl_multichannelkey.c
     文件       24446  2013-10-14 14:20  STM8S_TouchSensing_Driver\src\stm8_tsl_rc_acquisition.c
     文件       29819  2013-10-14 14:20  STM8S_TouchSensing_Driver\src\stm8_tsl_services.c
     文件       15812  2013-10-14 14:20  STM8S_TouchSensing_Driver\src\stm8_tsl_singlechannelkey.c
     文件        7583  2013-10-14 14:20  STM8S_TouchSensing_Driver\src\stm8_tsl_timebase.c
     文件     1503673  2013-10-14 14:59  STM8S_TouchSensing_Driver\stm8s_ts_driver_um.chm

评论

共有 条评论