- 用 DLD154V4B vd1_task/per_channel 替换 vds_task 复杂算法
- 移除 FUNCTION_B/二次判断/快速变化/多重确认等增强特性
- 保留平坦性离开算法 (CN200910309382),每通道独立状态
- 灵敏度表改为 DLD154V4B 4级: {216,108,36,10} / {108,72,18,9}
- 清理废弃类型: FltHistoryManager, Loop_ACS_Info, StageRangeConfig 等
- 首次添加 vd960DBN 完整源码
68 lines
1.9 KiB
C
68 lines
1.9 KiB
C
/********************************** (C) COPYRIGHT *******************************
|
|
* File Name : peripheral.h
|
|
* Author : WCH
|
|
* Version : V1.0
|
|
* Date : 2018/12/11
|
|
* Description :
|
|
*********************************************************************************
|
|
* Copyright (c) 2021 Nanjing Qinheng Microelectronics Co., Ltd.
|
|
* Attention: This software (modified or not) and binary are used for
|
|
* microcontroller manufactured by Nanjing Qinheng Microelectronics.
|
|
*******************************************************************************/
|
|
|
|
#ifndef PERIPHERAL_H
|
|
#define PERIPHERAL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*********************************************************************
|
|
* INCLUDES
|
|
*/
|
|
#include "dbn_ble_srv.h"
|
|
/*********************************************************************
|
|
* CONSTANTS
|
|
*/
|
|
|
|
// Peripheral Task Events
|
|
#define SBP_START_DEVICE_EVT 0x0001
|
|
#define SBP_PERIODIC_EVT 0x0002
|
|
#define SBP_READ_RSSI_EVT 0x0004
|
|
#define SBP_PARAM_UPDATE_EVT 0x0008
|
|
#define SBP_PHY_UPDATE_EVT 0x0010
|
|
|
|
/*********************************************************************
|
|
* MACROS
|
|
*/
|
|
typedef struct
|
|
{
|
|
uint16_t connHandle; // Connection handle of current connection
|
|
uint16_t connInterval;
|
|
uint16_t connSlaveLatency;
|
|
uint16_t connTimeout;
|
|
} peripheralConnItem_t;
|
|
|
|
/*********************************************************************
|
|
* FUNCTIONS
|
|
*/
|
|
|
|
/*
|
|
* Task Initialization for the BLE Application
|
|
*/
|
|
extern void Peripheral_Init(void);
|
|
|
|
/*
|
|
* Task Event Processor for the BLE Application
|
|
*/
|
|
extern uint16_t Peripheral_ProcessEvent(uint8_t task_id, uint16_t events);
|
|
|
|
/*********************************************************************
|
|
*********************************************************************/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|