/** * @file lv_trig.h * Basic trigonometric integer functions */ #ifndef LV_TRIGO_H #define LV_TRIGO_H #ifdef __cplusplus extern "C" { #endif /********************* * INCLUDES *********************/ #include /********************* * DEFINES *********************/ #define TRIGO_SIN_MAX 32767 /********************** * TYPEDEFS **********************/ /********************** * GLOBAL PROTOTYPES **********************/ /** * Return with sinus of an angle * @param angle * @return sinus of 'angle'. sin(-90) = -32767, sin(90) = 32767 */ int16_t lv_trigo_sin(int16_t angle); /********************** * MACROS **********************/ #ifdef __cplusplus } /* extern "C" */ #endif #endif