feat: Add rfid feature and .gitignore file

This commit is contained in:
lmx
2025-11-28 16:25:35 +08:00
parent 818e8c3778
commit ade4b0a1f8
1244 changed files with 342105 additions and 0 deletions

View File

@ -0,0 +1,28 @@
/*
************************************************************
* Audio Utils
*Brief:数字信号处理常用模块合集
*Notes:
************************************************************
*/
#include "audio_utils.h"
/*
*********************************************************************
* Audio Digital Phase Inverter
* Description: 数字反相器,用来反转数字音频信号的相位
* Arguments : dat 数据buf地址
* len 数据长度(unit:byte)
* Return : None.
* Note(s) : None.
*********************************************************************
*/
void digital_phase_inverter_s16(s16 *dat, int len)
{
int data_size = len / 2;
for (int i = 0; i < data_size; i++) {
dat[i] = (dat[i] == -32768) ? 32767 : -dat[i];
}
}