38 lines
1.1 KiB
C
38 lines
1.1 KiB
C
|
/*
|
||
|
* @Description:
|
||
|
* @Version: 1.0
|
||
|
* @Author: lzc
|
||
|
* @Date: 2023-07-21 15:42:16
|
||
|
* @LastEditors: lzc
|
||
|
* @LastEditTime: 2024-12-26 17:08:12
|
||
|
*/
|
||
|
#ifndef __MY_TOOL_H
|
||
|
#define __MY_TOOL_H
|
||
|
#include "main.h"
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#include "arm_math.h"
|
||
|
|
||
|
int MyRadomBreath(void);
|
||
|
int MyRadomHeart(void);
|
||
|
void MySetRandom(uint16_t value);
|
||
|
void MyToolSortValue(float32_t *Input, uint32_t Length);
|
||
|
void MyToolMoveUpdate(float arr[], int len, float new_f);
|
||
|
|
||
|
uint32_t MyToolFindMaxIndex(float32_t *Input, uint32_t Length);
|
||
|
|
||
|
float32_t MyToolStdValue(float32_t *Input, uint32_t Length);
|
||
|
float32_t MyToolAvgValue(float32_t *Input, uint32_t Length);
|
||
|
float32_t MyToolSumValue(float32_t *Input, uint32_t Length);
|
||
|
float32_t MyToolMidValue(float32_t *Input, uint32_t Length);
|
||
|
float32_t MyToolFindMaxValue(float32_t *Input, uint32_t Length);
|
||
|
float32_t MyToolFindMinValue(float32_t *Input, uint32_t Length);
|
||
|
|
||
|
int MyRadomHeart(void);
|
||
|
int MyRadomBreath(void);
|
||
|
int peakProcess(float *nums, int numsSize, int *max_peak_index, float *max_peak_value);
|
||
|
int MyToolSelectHp(float *hpList, float *ratioList, float *formerHps, uint16_t time_result);
|
||
|
|
||
|
#endif
|