TouchGFX + 0/3 examples
CodeScope will show references to touchgfx::CWRUtil::sine() from the following samples and libraries:
Examples
STM32469I-Discovery
Demonstrations
STM32469I_EVAL
Demonstrations
STM324x9I_EVAL
Demonstrations
 
Symbols
loading...
Files
loading...

touchgfx::CWRUtil::sine() method

@fn static Q15 sine(int i) Find the value of sin(i) with 15 bits precision. Find the value of sin(i) with 15 bits precision. The returned value can be converted to a floating point number and divided by (1<<15) to get the rounded value of of sin(i). By using this function, a complete circle can be drawn without the need for using floating point math.

Syntax

static Q15 sine(int i);

Arguments

i

the angle in degrees. The angle follows the angles of the clock, 0 being straight up and 90 being 3 o'clock.

Return value

the value of sin(i) with 15 bits precision on the fractional part.

Examples

touchgfx::CWRUtil::sine() is referenced by 3 libraries and example projects.

References

Call Tree

Functions calling touchgfx::CWRUtil::sine()
Functions called by touchgfx::CWRUtil::sine()
all items filtered out
touchgfx::CWRUtil::sine()
touchgfx::CWRUtil::Q5::operator int() const
touchgfx::CWRUtil::Q15::operator int() const
touchgfx::CWRUtil::Q5::~Q5()
touchgfx::CWRUtil::Q15::~Q15()
touchgfx::CWRUtil::Q5::operator=()
all items filtered out
Data read by touchgfx::CWRUtil::sine()
Data written by touchgfx::CWRUtil::sine()
touchgfx::CWRUtil::sine()::sineTable
touchgfx::CWRUtil::sine()::_360
touchgfx::CWRUtil::sine()::fraction
touchgfx::CWRUtil::sine()::sineLow
touchgfx::CWRUtil::sine()::sineHigh
touchgfx::CWRUtil::sine()::remainder
all items filtered out
touchgfx::CWRUtil::sine()
all items filtered out
Type of touchgfx::CWRUtil::sine()
touchgfx::CWRUtil::sine()
uint16_t
int16_t
int32_t
all items filtered out