Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Constants

This group regroups all the constants you can use in your project.

Macros

#define CST_E   2.718281828459045235360287471352662497757
 E definition also known as the natural logarithmic base. More...
 
#define CST_INV_SQUARE_ROOT_2   0.70710678118654752440084436210485
 1/sqrt(2) definition More...
 
#define CST_LN_10   2.3025850929940456840179914546844
 ln(10) definition More...
 
#define CST_LN_2   0.69314718055994530941723212145818
 ln(2) definition More...
 
#define CST_PI   3.141592653589793238462643383279502884197
 PI definition also known as the Archimedes' constant. More...
 
#define CST_SQUARE_ROOT_2   1.4142135623730950488016887242097
 sqrt(2) definition More...
 
#define DSP16_PI_DIV_4   DSP16_Q(CST_PI/4.)
 PI/4 definition for the 16-bit fixed point type. More...
 
#define DSP32_PI_DIV_4   DSP32_Q(CST_PI/4.)
 PI/4 definition for the 32-bit fixed point type. More...
 
#define FALSE   0
 Boolean FALSE constant. More...
 
#define TRUE   1
 Boolean TRUE constant. More...
 

#define CST_E   2.718281828459045235360287471352662497757

E definition also known as the natural logarithmic base.

#define CST_INV_SQUARE_ROOT_2   0.70710678118654752440084436210485

1/sqrt(2) definition

#define CST_LN_10   2.3025850929940456840179914546844

ln(10) definition

#define CST_LN_2   0.69314718055994530941723212145818

ln(2) definition

#define CST_PI   3.141592653589793238462643383279502884197

PI definition also known as the Archimedes' constant.

#define CST_SQUARE_ROOT_2   1.4142135623730950488016887242097

sqrt(2) definition

#define DSP16_PI_DIV_4   DSP16_Q(CST_PI/4.)

PI/4 definition for the 16-bit fixed point type.

#define DSP32_PI_DIV_4   DSP32_Q(CST_PI/4.)

PI/4 definition for the 32-bit fixed point type.

#define FALSE   0

Boolean FALSE constant.

Referenced by init_tc().

#define TRUE   1

Boolean TRUE constant.

Referenced by sys_cpu_48MHz().