Audio Spectrum analyser - FFT using mbed-dsp - driving RGB(W) LED or PC python script.
Dependencies: HSI2RGBW_PWM NVIC_set_all_priorities mbed-dsp mbed FastAnalogIn
arm_const_structs.h
00001 /* ---------------------------------------------------------------------- 00002 * Copyright (C) 2010-2013 ARM Limited. All rights reserved. 00003 * 00004 * $Date: 17. January 2013 00005 * $Revision: V1.4.1 00006 * 00007 * Project: CMSIS DSP Library 00008 * Title: arm_const_structs.h 00009 * 00010 * Description: This file has constant structs that are initialized for 00011 * user convenience. For example, some can be given as 00012 * arguments to the arm_cfft_f32() function. 00013 * 00014 * Target Processor: Cortex-M4/Cortex-M3 00015 * 00016 * Redistribution and use in source and binary forms, with or without 00017 * modification, are permitted provided that the following conditions 00018 * are met: 00019 * - Redistributions of source code must retain the above copyright 00020 * notice, this list of conditions and the following disclaimer. 00021 * - Redistributions in binary form must reproduce the above copyright 00022 * notice, this list of conditions and the following disclaimer in 00023 * the documentation and/or other materials provided with the 00024 * distribution. 00025 * - Neither the name of ARM LIMITED nor the names of its contributors 00026 * may be used to endorse or promote products derived from this 00027 * software without specific prior written permission. 00028 * 00029 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 00030 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 00031 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 00032 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 00033 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 00034 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 00035 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 00036 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00037 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00038 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 00039 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00040 * POSSIBILITY OF SUCH DAMAGE. 00041 * -------------------------------------------------------------------- */ 00042 00043 #ifndef _ARM_CONST_STRUCTS_H 00044 #define _ARM_CONST_STRUCTS_H 00045 00046 #include "arm_math.h" 00047 #include "arm_common_tables.h" 00048 00049 const arm_cfft_instance_f32 arm_cfft_sR_f32_len16 = { 00050 16, twiddleCoef_16, armBitRevIndexTable16, ARMBITREVINDEXTABLE__16_TABLE_LENGTH 00051 }; 00052 00053 const arm_cfft_instance_f32 arm_cfft_sR_f32_len32 = { 00054 32, twiddleCoef_32, armBitRevIndexTable32, ARMBITREVINDEXTABLE__32_TABLE_LENGTH 00055 }; 00056 00057 const arm_cfft_instance_f32 arm_cfft_sR_f32_len64 = { 00058 64, twiddleCoef_64, armBitRevIndexTable64, ARMBITREVINDEXTABLE__64_TABLE_LENGTH 00059 }; 00060 00061 const arm_cfft_instance_f32 arm_cfft_sR_f32_len128 = { 00062 128, twiddleCoef_128, armBitRevIndexTable128, ARMBITREVINDEXTABLE_128_TABLE_LENGTH 00063 }; 00064 00065 const arm_cfft_instance_f32 arm_cfft_sR_f32_len256 = { 00066 256, twiddleCoef_256, armBitRevIndexTable256, ARMBITREVINDEXTABLE_256_TABLE_LENGTH 00067 }; 00068 00069 const arm_cfft_instance_f32 arm_cfft_sR_f32_len512 = { 00070 512, twiddleCoef_512, armBitRevIndexTable512, ARMBITREVINDEXTABLE_512_TABLE_LENGTH 00071 }; 00072 00073 const arm_cfft_instance_f32 arm_cfft_sR_f32_len1024 = { 00074 1024, twiddleCoef_1024, armBitRevIndexTable1024, ARMBITREVINDEXTABLE1024_TABLE_LENGTH 00075 }; 00076 00077 const arm_cfft_instance_f32 arm_cfft_sR_f32_len2048 = { 00078 2048, twiddleCoef_2048, armBitRevIndexTable2048, ARMBITREVINDEXTABLE2048_TABLE_LENGTH 00079 }; 00080 00081 const arm_cfft_instance_f32 arm_cfft_sR_f32_len4096 = { 00082 4096, twiddleCoef_4096, armBitRevIndexTable4096, ARMBITREVINDEXTABLE4096_TABLE_LENGTH 00083 }; 00084 00085 #endif 00086
Generated on Thu Jul 14 2022 01:02:10 by 1.7.2