27 #ifndef _LOOKUP_TABLES_H 28 #define _LOOKUP_TABLES_H 33 #include <avr/pgmspace.h> 42 extern const uint16_t
exp_table[] PROGMEM;
45 extern const uint16_t
log_table[] PROGMEM;
84 #endif // LOOKUP_TABLES_H const uint16_t log_table[]
Lookup table for the natural logaritm function.
uint16_t lookup_exp(uint8_t x)
Looks up an exponential value in the corresponding table.
Definition: lookup_tables.h:58
const uint16_t exp_table[]
Lookup table for an exponential function.
uint16_t lookup_sine(uint8_t x)
Looks up a sine function value in the corresponding table.
Definition: lookup_tables.h:78
uint16_t lookup_log(uint8_t x)
Looks up the natural log value in the corresponding table.
Definition: lookup_tables.h:68
const uint16_t sine_table[]
Lookup table for the sine function.
const uint8_t lookup_table_resolution
Resolution (y-axis) of the lookup tables in bits.