SW006013 Microchip Technology, SW006013 Datasheet - Page 216

MPLAB C Compiler For DsPIC DSCs

SW006013

Manufacturer Part Number
SW006013
Description
MPLAB C Compiler For DsPIC DSCs
Manufacturer
Microchip Technology
Series
DsPIC30F/33Fr
Type
MPLAB® C Compilerr
Datasheet

Specifications of SW006013

Supported Families
DsPIC30F, DsPIC33F
Core Architecture
DsPIC
Kit Contents
Software And Docs
Mcu Supported Families
DsPIC30F And DsPIC33F
Tool Function
Compiler
Tool Type
Compiler
Processor Series
dsPIC
Lead Free Status / RoHS Status
na
For Use With/related Products
dSPIC DSCs
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
DS51456E-page 212
_Q15cos
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15cosPI
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15exp
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15ftoi
Description:
Include:
Prototype:
Argument:
Return Value:
This function finds the cosine of a Q15 value.
<libq.h>
_Q15 _Q15cos(_Q15 x);
x
2
This function returns the cosine of x in Q15 format. This value ranges
from 17705 to 32767.
This function finds the cosine of PI (π) times a Q15 value.
<libq.h>
_Q15 _Q15cosPI(_Q15 x);
x
2
This function returns the cosine of PI times x in Q15 format. This value
ranges from -32768 to 32767.
This function finds the exponential value of a Q15 value.
<libq.h>
_Q15 _Q15exp(_Q15 x);
x
2
This function returns the exponent value of x in Q15 format. This value
ranges from 12055 to 32767.
This function converts a single-precision floating point value into its
corresponding Q15 value.
<libq.h>
_Q15 _Q15ftoi(float x);
x
range is -1 to 0.99996.
This function returns a fixed point number in Q15 format. This value
ranges from -32768 to 32767.
15
15
15
-1. The value of this argument ranges from -32768 to 32767.
-1. The value of this argument ranges from -32768 to 32767.
-1. The value of this argument ranges from -32768 to 0.
a fixed point number in Q15 format, which ranges from -2
a fixed point number in Q15 format, which ranges from -2
a fixed point number in Q15 format, which ranges from -2
a floating point equivalent number. The corresponding floating point
© 2008 Microchip Technology Inc.
15
15
15
to
to
to

Related parts for SW006013