Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
environment2_voc.c File Reference
#include "environment2_drv.h"
Include dependency graph for environment2_voc.c:

Macros

#define FIX16_MAXIMUM   0x7FFFFFFF
 Environment 2 the maximum value of fix16_t. More...
 
#define FIX16_MINIMUM   0x80000000
 Environment 2 the minimum value of fix16_t. More...
 
#define FIX16_OVERFLOW   0x80000000
 Environment 2 the value used to indicate overflows when FIXMATH_NO_OVERFLOW is not specified. More...
 
#define FIX16_ONE   0x00010000
 Environment 2 fix16_t value of 1. More...
 
#define NUM_EXP_VALUES   4
 

Functions

fix16_t fix16_from_int (int32_t a)
 
int32_t fix16_cast_to_int (fix16_t a)
 
void environment2_voc_algorithm_configuration (environment2_voc_algorithm_params *params)
 
void environment2_voc_config (void)
 
void environment2_voc_algorithm_process (environment2_voc_algorithm_params *params, int32_t sraw, int32_t *voc_index)
 
void environment2_voc_algorithm (int32_t sraw, int32_t *voc_index)
 

Macro Definition Documentation

◆ FIX16_MAXIMUM

#define FIX16_MAXIMUM   0x7FFFFFFF

Environment 2 the maximum value of fix16_t.

◆ FIX16_MINIMUM

#define FIX16_MINIMUM   0x80000000

Environment 2 the minimum value of fix16_t.

◆ FIX16_ONE

#define FIX16_ONE   0x00010000

Environment 2 fix16_t value of 1.

◆ FIX16_OVERFLOW

#define FIX16_OVERFLOW   0x80000000

Environment 2 the value used to indicate overflows when FIXMATH_NO_OVERFLOW is not specified.

◆ NUM_EXP_VALUES

#define NUM_EXP_VALUES   4

Function Documentation

◆ environment2_voc_algorithm()

void environment2_voc_algorithm ( int32_t  sraw,
int32_t *  voc_index 
)

◆ environment2_voc_algorithm_configuration()

void environment2_voc_algorithm_configuration ( environment2_voc_algorithm_params params)

◆ environment2_voc_algorithm_process()

void environment2_voc_algorithm_process ( environment2_voc_algorithm_params params,
int32_t  sraw,
int32_t *  voc_index 
)

◆ environment2_voc_config()

void environment2_voc_config ( void  )

◆ fix16_cast_to_int()

int32_t fix16_cast_to_int ( fix16_t  a)
inline

◆ fix16_from_int()

fix16_t fix16_from_int ( int32_t  a)
inline