278 *result2 = temp >> 16;
#define CORDIC_CSR_FUNC_COS
#define CORDIC_CSR_FUNC_SIN
#define CORDIC_CSR_PRECISION_ITER_28
#define CORDIC_CSR_PRECISION_ITER_20
#define CORDIC_CSR_NARGS
NARGS: Number of input data writes.
#define CORDIC_CSR_DMAWEN
DMAWEN: DMA write enable.
#define CORDIC_CSR_IEN
DMAREN: Interrupt enable.
#define CORDIC_CSR_DMAREN
DMAREN: DMA write enable.
#define CORDIC_CSR_PRECISION_SHIFT
#define CORDIC_CSR_RRDY
RRDY: result ready flag.
#define CORDIC_CSR_ARGSIZE
ARGSIZE: Width of input data.
#define CORDIC_CSR_FUNC_SHIFT
#define CORDIC_CSR_SCALE_SHIFT
#define CORDIC_CSR_RESSIZE
RESSIZE: Width of result data.
#define CORDIC_CSR_NRES
NRES: Number of result data reads.
int32_t cordic_sin_32bit(int32_t x)
Compute 32 bit sine using CORDIC (blocking)
void cordic_configure_for_cos_16bit(void)
Configure cordic for 16 bit cosine.
void cordic_write_16bit_arguments(uint16_t argument1, uint16_t argument2)
Write two 16 bit arguments.
void cordic_configure_for_sin_16bit(void)
Configure cordic for 16 bit sine.
void cordic_set_number_of_arguments_2(void)
Set number of CORDIC arguments to two 32 bit arguments.
void cordic_configure_for_cos_32bit(void)
Configure cordic for 32 bit cosine.
void cordic_set_result_width_16bit(void)
Set CORDIC to 16 bit result data width.
int16_t cordic_cos_16bit(int16_t x)
Compute 16 bit cosine using CORDIC (blocking)
void cordic_set_number_of_results_2(void)
Set number of CORDIC results to two 32 bit results.
void cordic_enable_interrupt(void)
Enable interrupt when result is ready.
int32_t cordic_cos_32bit(int32_t x)
Compute 32 bit cosine using CORDIC (blocking)
void cordic_set_precision(uint8_t precision)
Set precision for CORDIC operations.
void cordic_cos_32bit_async(int32_t x)
Compute 32 bit cosine using CORDIC (non blocking)
void cordic_disable_dma_write(void)
Disable DMA for writes to CORDIC_WDATA.
void cordic_set_scaling_factor(uint8_t n)
Set scaling factor for CORDIC operations.
bool cordic_is_result_ready(void)
Read CORDIC result ready flag.
void cordic_set_number_of_results_1(void)
Set number of CORDIC results to one 32 bit result or two 16 bit results.
int16_t cordic_sin_16bit(int16_t x)
Compute 16 bit sine using CORDIC (blocking)
void cordic_enable_dma_read(void)
Enable DMA for read from CORDIC_RDATA.
uint16_t cordic_read_16bit_result(void)
Read single 16 bit result.
void cordic_write_32bit_argument(uint32_t argument)
Write single 32 bit argument.
void cordic_read_16bit_results(uint16_t *result1, uint16_t *result2)
Read two 16 bit results.
void cordic_configure_for_sin_32bit(void)
Configure cordic for 32 bit sine.
void cordic_set_argument_width_16bit(void)
Set CORDIC to 16 bit argument data width.
void cordic_set_function(uint8_t function)
Set CORDIC operation type.
void cordic_sin_16bit_async(int16_t x)
Compute 16 bit sine using CORDIC (non blocking)
void cordic_sin_32bit_async(int32_t x)
Compute 32 bit sine using CORDIC (non blocking)
void cordic_write_16bit_argument(uint16_t argument)
Write single 16 bit argument.
void cordic_disable_dma_read(void)
Disable DMA for read from CORDIC_RDATA.
void cordic_enable_dma_write(void)
Enable DMA for writes to CORDIC_WDATA.
void cordic_set_argument_width_32bit(void)
Set CORDIC to 32 bit argument data width.
void cordic_set_number_of_arguments_1(void)
Set number of CORDIC arguments to one 32 bit argument or two 16 bit arguments.
void cordic_cos_16bit_async(int16_t x)
Compute 16 bit cosine using CORDIC (non blocking)
void cordic_set_result_width_32bit(void)
Set CORDIC to 32 bit result data width.
uint32_t cordic_read_32bit_result(void)
Read 32 bit result.
#define CORDIC_WDATA
CORDIC argument register.
#define CORDIC_RDATA
CORDIC result register.
#define CORDIC_CSR
CORDIC control/status register.