libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
CSR CORDIC control/status register
Collaboration diagram for CSR CORDIC control/status register:

Modules

 SCALE: Scaling factor
 
 PRECISION: Precision of CORDIC operation (number of iterations)
 
 FUNCTION: CORDIC operation to be performed
 

Macros

#define CORDIC_CSR_RRDY   (0x1 << 31)
 RRDY: result ready flag. More...
 
#define CORDIC_CSR_ARGSIZE   (0x1 << 22)
 ARGSIZE: Width of input data. More...
 
#define CORDIC_CSR_RESSIZE   (0x1 << 21)
 RESSIZE: Width of result data. More...
 
#define CORDIC_CSR_NARGS   (0x1 << 20)
 NARGS: Number of input data writes. More...
 
#define CORDIC_CSR_NRES   (0x1 << 19)
 NRES: Number of result data reads. More...
 
#define CORDIC_CSR_DMAWEN   (0x1 << 18)
 DMAWEN: DMA write enable. More...
 
#define CORDIC_CSR_DMAREN   (0x1 << 17)
 DMAREN: DMA write enable. More...
 
#define CORDIC_CSR_IEN   (0x1 << 16)
 DMAREN: Interrupt enable. More...
 
#define CORDIC_CSR_SCALE_SHIFT   (8)
 
#define CORDIC_CSR_SCALE_MASK   (0x7 << CORDIC_CSR_SCALE_SHIFT)
 
#define CORDIC_CSR_PRECISION_SHIFT   (4)
 
#define CORDIC_CSR_PRECISION_MASK   (0xF << CORDIC_CSR_PRECISION_SHIFT)
 
#define CORDIC_CSR_FUNC_SHIFT   (0)
 
#define CORDIC_CSR_FUNC_MASK   (0xF << CORDIC_CSR_FUNC_SHIFT)
 

Detailed Description

Macro Definition Documentation

◆ CORDIC_CSR_ARGSIZE

#define CORDIC_CSR_ARGSIZE   (0x1 << 22)

ARGSIZE: Width of input data.

Definition at line 57 of file cordic_common_v1.h.

◆ CORDIC_CSR_DMAREN

#define CORDIC_CSR_DMAREN   (0x1 << 17)

DMAREN: DMA write enable.

Definition at line 67 of file cordic_common_v1.h.

◆ CORDIC_CSR_DMAWEN

#define CORDIC_CSR_DMAWEN   (0x1 << 18)

DMAWEN: DMA write enable.

Definition at line 65 of file cordic_common_v1.h.

◆ CORDIC_CSR_FUNC_MASK

#define CORDIC_CSR_FUNC_MASK   (0xF << CORDIC_CSR_FUNC_SHIFT)

Definition at line 120 of file cordic_common_v1.h.

◆ CORDIC_CSR_FUNC_SHIFT

#define CORDIC_CSR_FUNC_SHIFT   (0)

Definition at line 119 of file cordic_common_v1.h.

◆ CORDIC_CSR_IEN

#define CORDIC_CSR_IEN   (0x1 << 16)

DMAREN: Interrupt enable.

Definition at line 69 of file cordic_common_v1.h.

◆ CORDIC_CSR_NARGS

#define CORDIC_CSR_NARGS   (0x1 << 20)

NARGS: Number of input data writes.

Definition at line 61 of file cordic_common_v1.h.

◆ CORDIC_CSR_NRES

#define CORDIC_CSR_NRES   (0x1 << 19)

NRES: Number of result data reads.

Definition at line 63 of file cordic_common_v1.h.

◆ CORDIC_CSR_PRECISION_MASK

#define CORDIC_CSR_PRECISION_MASK   (0xF << CORDIC_CSR_PRECISION_SHIFT)

Definition at line 104 of file cordic_common_v1.h.

◆ CORDIC_CSR_PRECISION_SHIFT

#define CORDIC_CSR_PRECISION_SHIFT   (4)

Definition at line 103 of file cordic_common_v1.h.

◆ CORDIC_CSR_RESSIZE

#define CORDIC_CSR_RESSIZE   (0x1 << 21)

RESSIZE: Width of result data.

Definition at line 59 of file cordic_common_v1.h.

◆ CORDIC_CSR_RRDY

#define CORDIC_CSR_RRDY   (0x1 << 31)

RRDY: result ready flag.

Definition at line 55 of file cordic_common_v1.h.

◆ CORDIC_CSR_SCALE_MASK

#define CORDIC_CSR_SCALE_MASK   (0x7 << CORDIC_CSR_SCALE_SHIFT)

Definition at line 83 of file cordic_common_v1.h.

◆ CORDIC_CSR_SCALE_SHIFT

#define CORDIC_CSR_SCALE_SHIFT   (8)

Definition at line 82 of file cordic_common_v1.h.