libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
cordic_common_v1.c File Reference
Include dependency graph for cordic_common_v1.c:

Go to the source code of this file.

Functions

bool cordic_is_result_ready (void)
 Read CORDIC result ready flag. More...
 
void cordic_set_argument_width_32bit (void)
 Set CORDIC to 32 bit argument data width. More...
 
void cordic_set_argument_width_16bit (void)
 Set CORDIC to 16 bit argument data width. More...
 
void cordic_set_result_width_32bit (void)
 Set CORDIC to 32 bit result data width. More...
 
void cordic_set_result_width_16bit (void)
 Set CORDIC to 16 bit result data width. More...
 
void cordic_set_number_of_arguments_1 (void)
 Set number of CORDIC arguments to one 32 bit argument or two 16 bit arguments. More...
 
void cordic_set_number_of_arguments_2 (void)
 Set number of CORDIC arguments to two 32 bit arguments. More...
 
void cordic_set_number_of_results_1 (void)
 Set number of CORDIC results to one 32 bit result or two 16 bit results. More...
 
void cordic_set_number_of_results_2 (void)
 Set number of CORDIC results to two 32 bit results. More...
 
void cordic_enable_dma_write (void)
 Enable DMA for writes to CORDIC_WDATA. More...
 
void cordic_disable_dma_write (void)
 Disable DMA for writes to CORDIC_WDATA. More...
 
void cordic_enable_dma_read (void)
 Enable DMA for read from CORDIC_RDATA. More...
 
void cordic_disable_dma_read (void)
 Disable DMA for read from CORDIC_RDATA. More...
 
void cordic_enable_interrupt (void)
 Enable interrupt when result is ready. More...
 
void cordic_set_scaling_factor (uint8_t n)
 Set scaling factor for CORDIC operations. More...
 
void cordic_set_precision (uint8_t precision)
 Set precision for CORDIC operations. More...
 
void cordic_set_function (uint8_t function)
 Set CORDIC operation type. More...
 
void cordic_write_16bit_argument (uint16_t argument)
 Write single 16 bit argument. More...
 
void cordic_write_16bit_arguments (uint16_t argument1, uint16_t argument2)
 Write two 16 bit arguments. More...
 
void cordic_write_32bit_argument (uint32_t argument)
 Write single 32 bit argument. More...
 
uint16_t cordic_read_16bit_result (void)
 Read single 16 bit result. More...
 
void cordic_read_16bit_results (uint16_t *result1, uint16_t *result2)
 Read two 16 bit results. More...
 
uint32_t cordic_read_32bit_result (void)
 Read 32 bit result. More...
 
void cordic_configure_for_cos_16bit (void)
 Configure cordic for 16 bit cosine. More...
 
void cordic_configure_for_cos_32bit (void)
 Configure cordic for 32 bit cosine. More...
 
void cordic_configure_for_sin_16bit (void)
 Configure cordic for 16 bit sine. More...
 
void cordic_configure_for_sin_32bit (void)
 Configure cordic for 32 bit sine. More...
 
int16_t cordic_cos_16bit (int16_t x)
 Compute 16 bit cosine using CORDIC (blocking) More...
 
void cordic_cos_16bit_async (int16_t x)
 Compute 16 bit cosine using CORDIC (non blocking) More...
 
int32_t cordic_cos_32bit (int32_t x)
 Compute 32 bit cosine using CORDIC (blocking) More...
 
void cordic_cos_32bit_async (int32_t x)
 Compute 32 bit cosine using CORDIC (non blocking) More...
 
int16_t cordic_sin_16bit (int16_t x)
 Compute 16 bit sine using CORDIC (blocking) More...
 
void cordic_sin_16bit_async (int16_t x)
 Compute 16 bit sine using CORDIC (non blocking) More...
 
int32_t cordic_sin_32bit (int32_t x)
 Compute 32 bit sine using CORDIC (blocking) More...
 
void cordic_sin_32bit_async (int32_t x)
 Compute 32 bit sine using CORDIC (non blocking) More...