SW006014 Microchip Technology, SW006014 Datasheet - Page 221

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
© 2008 Microchip Technology Inc.
_Q15sqrt
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15sub
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15tan
Description:
Include:
Prototype:
Argument:
Return Value:
_Q15tanPI
Description:
Include:
Prototype:
Argument:
Return Value:
This function finds the square root of a Q15 value.
<libq.h>
_Q15 _Q15sqrt(_Q15 x);
x
2
This function returns the square root of x in Q15 format. This value
ranges from 1 to 32767.
The function finds the difference of two Q15 values. This function takes
care of saturation during overflow and underflow occurrences.
<libq.h>
_Q15 _Q15sub(_Q15 x,_Q15 y);
x
2
y
2
This function returns x minus y in Q15 format. This value ranges from
-32768 to 32767.
This function finds the tangent of a Q15 value.
<libq.h>
_Q15 _Q15tan(_Q15 x);
x
2
This function returns the tangent of x in Q15 format. This value ranges
from -32768 to 32767.
This function finds the tangent of PI (π) times a Q15 value.
<libq.h>
_Q15 _Q15tanPI(_Q15 x);
x
2
This function returns the tangent of PI times x in Q15 format. This value
ranges from -32768 to 32767.
15
15
15
15
15
-1. The value of this argument ranges from 1 to 32767.
-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 -25736 to 25735.
-1. The value of this argument ranges from -32768 to 32767.
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 fixed point number in Q15 format, which ranges from -2
a fixed point number in Q15 format, which ranges from -2
DS51456E-page 217
15
15
15
15
15
to
to
to
to
to

Related parts for SW006014