SW006014 Microchip Technology, SW006014 Datasheet - Page 216

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
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 SW006014