/** * @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 LV_TRIGO_SIN_MAX 32767 #define LV_TRIGO_SHIFT 15 /* >> LV_TRIGO_SHIFT to normalize*/ /********************** * 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