kopia lustrzana https://github.com/gcallipo/RadioDSP-DNR-Stm32f407
73 wiersze
2.0 KiB
C
73 wiersze
2.0 KiB
C
/**
|
|
******************************************************************************
|
|
* @file general.h
|
|
* @author Giuseppe Callipo - IK8YFW - ik8yfw@libero.it
|
|
* @version V2.0.0
|
|
* @date 25-09-2018
|
|
* @brief IO Routine
|
|
*
|
|
*
|
|
* NOTE: This file is part of RadioDSP project.
|
|
* See main.c file for additional project informations.
|
|
******************************************************************************/
|
|
|
|
#ifndef GENERAL_H_INCLUDED
|
|
#define GENERAL_H_INCLUDED
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define SW_VERSION "1.0.1"
|
|
|
|
/*- Size of sampleing block and fft */
|
|
#define BLOCK_SIZE 256
|
|
#define FFT_SIZE 256
|
|
/* 120 px on the LCD */
|
|
#define FFT_BAR_MAX_HEIGHT 100
|
|
#define MAX_WF_ROWS 100
|
|
|
|
#define COLOR_WF_SKIP FFT_BAR_MAX_HEIGHT/6
|
|
#define COLOR_WF_SKIP_5 COLOR_WF_SKIP*6
|
|
#define COLOR_WF_SKIP_4 COLOR_WF_SKIP*5
|
|
#define COLOR_WF_SKIP_3 COLOR_WF_SKIP*4
|
|
#define COLOR_WF_SKIP_2 COLOR_WF_SKIP*3
|
|
#define COLOR_WF_SKIP_1 COLOR_WF_SKIP*2
|
|
#define COLOR_WF_SKIP_0 COLOR_WF_SKIP
|
|
|
|
#define CW_FFT_MIN_BIN 6
|
|
#define CW_FFT_MAX_BIN 16
|
|
#define CW_THRESHOLD 500
|
|
|
|
//#define EXP_SMOOTING
|
|
|
|
|
|
/********************************************************************
|
|
*
|
|
* VARIABLES
|
|
*
|
|
********************************************************************/
|
|
/*- Global working buffers */
|
|
static float32_t BufferIn [BLOCK_SIZE];
|
|
static float32_t BufferOut [BLOCK_SIZE];
|
|
static float32_t Buffer1 [BLOCK_SIZE];
|
|
//static float32_t Buffer2 [BLOCK_SIZE];
|
|
//static float32_t Buffer3 [BLOCK_SIZE];
|
|
//static float32_t Buffer4 [BLOCK_SIZE];
|
|
|
|
|
|
/********************************************************************
|
|
*
|
|
* METHODS
|
|
*
|
|
********************************************************************/
|
|
uint32_t millis(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* GENERAL_H_INCLUDED */
|
|
|
|
/**************************************END OF FILE****/
|