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(), at_ble_addr_set(), at_ble_adv_start(), at_ble_att_error(), at_ble_authenticate(), at_ble_connect(), at_ble_disconnect(), at_ble_event_get(), at_ble_gap_error(), at_ble_init(), at_ble_scan_start(), BOARD_TWIHS_Handler(), buffered_uart_tx(), csc_prf_connected_state_handler(), csc_serv_send_data(), dbg_le_get_bd_addr_req_handler(), dbg_le_set_bd_addr_req_handler(), dbg_rd_mem_req_handler(), dbg_rd_mem_req_handler32(), dbg_set_tx_pw_req_handler(), dbg_wr_mem_req_handler(), dbg_wr_mem_req_handler32(), dbg_wr_mem_req_handler32_reset(), event_get(), gapc_bond_cfm_handler_key_exch(), gapc_bond_cfm_handler_pair_resp(), gapc_bond_cmd_handler(), gapc_cmp_evt(), gapc_connection_cfm_handler(), gapc_disconnect_cmd_handler(), gapc_encrypt_cfm_handler(), gapc_encrypt_cmd_handler(), gapc_get_info_cmd_handler(), gapc_get_tx_pwr_req_handler(), gapc_param_update_cfm_handler(), gapc_param_update_cmd_handler(), gapc_security_cmd_handler(), gapc_set_tx_pwr_req_handler(), gapm_cancel_cmd_handler(), gapm_connection_cfm_handler(), gapm_reset_req_handler(), gapm_resolv_addr_cmd_handler(), gapm_set_dev_config_cmd_handler(), gapm_set_dev_name_handler(), gapm_start_adv_cmd_handler(), gapm_start_connection_cmd_handler(), gapm_start_scan_cmd_handler(), gapm_white_list_mgm_cmd(), gattc_complete_evt_handler(), gattc_disc_cmd_handler(), gattc_execute_write_cmd_handler(), gattc_mtu_cmd_handler(), gattc_read_cmd_handler_by_uuid(), gattc_read_cmd_handler_multible(), gattc_read_cmd_handler_simple_read(), gattc_reg_to_peer_handler(), gattc_send_evt_cmd_handler(), gattc_svc_changed_notification_cmd_handler(), gattc_write_cmd_handler(), gattc_write_cmd_ind(), gattc_write_cmd_ind_handler(), i2s_interrupt_handler(), ICM_Handler(), interface_send_wait(), m2m_ssl_cb(), main(), mem_read_capacity(), mem_test_unit_ready(), memory_2_ram(), memory_2_usb(), mxt_init(), mxt_init_device(), mxt_probe_device(), mxt_process_messages(), mxt_read_info_block(), mxt_read_touch_event(), platform_event_wait(), pxp_monitor_encryption_change_handler(), pxp_monitor_pair_done_handler(), pxp_monitor_service_discover(), pxp_monitor_service_found_handler(), pxp_reporter_connected_state_handler(), qspi_flash_access_memory(), qspi_flash_execute_command(), qspi_initialize(), qspi_read(), qspi_set_config(), qspi_write(), ram_2_memory(), RTT_Handler(), 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(), trans_update_ctrl_char_value(), trans_update_tx_char_value(), 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(), usb_2_memory(), wifi_provision_scanlist_receive(), wifiprov_disable(), wifiprov_scan_list_ind_send(), wifiprov_scan_mode_change_ind_send(), wifiprov_start(), and wifiprov_wifi_con_update().

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().