-
Notifications
You must be signed in to change notification settings - Fork 1
/
dtc.h
26 lines (19 loc) · 780 Bytes
/
dtc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/**
******************************************************************************
* @author Au Wenggee
* @brief Header for dtc.c module
******************************************************************************
* @note
*
* This file include four data type conversion functions.
* Used in conjunction with, for example, the CORDIC module
* and the FMAC module.
******************************************************************************
*/
#ifndef __DTC_H
#define __DTC_H
int Value_To_CORDIC31(float Value, float Coefficient);
void CORDIC31_To_Value(int CORDIC31, double *RES);
int Value_To_CORDIC15(float ValueA , float ValueB, float Coefficient);
void CORDIC15_To_Value(int CORDIC15, float *REA, float *REB);
#endif