Microchip® Advanced Software Framework

arm_sin_cos_example_f32.c File Reference
#include <asf.h>
#include <math.h>
#include "arm_math.h"

Macros

#define DELTA   (0.0001f)
 
#define MAX_BLOCKSIZE   32
 

Functions

int32_t main (void)
 

Variables

uint32_t blockSize = 32
 
float32_t cosOutput
 
float32_t cosSquareOutput
 
float32_t sinOutput
 
float32_t sinSquareOutput
 
arm_status status
 
const float32_t testInput_f32 [MAX_BLOCKSIZE]
 
float32_t testOutput
 
const float32_t testRefOutput_f32 = 1.000000000
 

#define DELTA   (0.0001f)

Referenced by main().

#define MAX_BLOCKSIZE   32

float32_t cosOutput

Referenced by main().

float32_t cosSquareOutput

Referenced by main().

float32_t sinOutput

Referenced by main().

float32_t sinSquareOutput

Referenced by main().

arm_status status

Referenced by AES_Handler(), afec_process_callback(), at25dfx_read_status(), at45dbx_mem_check(), at45dbx_wait_ready(), atCmd_Connect_Handler(), atCmd_DisConnect_Handler(), atCmd_Iperf_Handler(), att_handle_value_indication_notify_client(), BOARD_TWIHS_Handler(), emit_gatt_complete_event(), event_handler(), hci_emit_dedicated_bonding_result(), hci_initializing_event_handler(), i2s_interrupt_handler(), ICM_Handler(), main(), main_control_transfer_done(), main_iso_in_done(), main_iso_out_done(), main_transfer_done(), MCAN1_INT0_Handler(), mem_read_capacity(), mem_test_unit_ready(), memory_2_ram(), memory_2_usb(), mxt_init_device(), mxt_probe_device(), mxt_process_messages(), mxt_read_info_block(), mxt_read_touch_event(), qspi_flash_access_memory(), qspi_flash_execute_command(), qspi_initialize(), qspi_read(), qspi_set_config(), qspi_write(), ram_2_memory(), RTT_Handler(), run_supc_test(), s25fl1xx_data_protect(), s25fl1xx_data_unprotect(), s25fl1xx_disable_write(), s25fl1xx_enable_wrap(), s25fl1xx_enable_write(), s25fl1xx_erase_64k_block(), s25fl1xx_erase_chip(), s25fl1xx_erase_sector(), s25fl1xx_initialize(), s25fl1xx_protect(), s25fl1xx_read_status(), s25fl1xx_read_status1(), s25fl1xx_read_status2(), s25fl1xx_read_status3(), s25fl1xx_set_quad_mode(), s25fl1xx_set_read_latency_control(), s25fl1xx_unprotect(), smc_ecc_get_status(), stream_mem_to_mem(), SysTick_Handler(), TRNG_Handler(), twihs_master_init(), twihs_master_read(), twihs_master_write(), twihs_slave_read(), twihs_slave_write(), udi_msc_process_trans(), udi_msc_trans_ack(), uhd_get_pipe_dma_interrupt_number(), and usb_2_memory().

const float32_t testInput_f32[MAX_BLOCKSIZE]
Initial value:
=
{
-1.244916875853235400, -4.793533929171324800, 0.360705030233248850, 0.827929644170887320, -3.299532218312426900, 3.427441903227623800, 3.422401784294607700, -0.108308165334010680,
0.941943896490312180, 0.502609575000365850, -0.537345278736373500, 2.088817392965764500, -1.693168684143455700, 6.283185307179590700, -0.392545884746175080, 0.327893095115825040,
3.070147440456292300, 0.170611405884662230, -0.275275082396073010, -2.395492805446796300, 0.847311163536506600, -3.845517018083148800, 2.055818378415868300, 4.672594161978930800,
-1.990923030266425800, 2.469305197656249500, 3.609002606064021000, -4.586736582331667500, -4.147080139136136300, 1.643756718868359500, -1.150866392366494800, 1.985805026477433800
}

Referenced by main().

float32_t testOutput

Referenced by main().

const float32_t testRefOutput_f32 = 1.000000000

Referenced by main().