PER Firmware
Loading...
Searching...
No Matches
dearunits_test_shim.h File Reference

Declare DearUnits runtime test wrappers. More...

#include <stdbool.h>
Include dependency graph for dearunits_test_shim.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float du_test_meters_from_feet (float x)
 
float du_test_feet_from_meters (float x)
 
float du_test_celsius_from_fahrenheit (float x)
 
float du_test_fahrenheit_from_celsius (float x)
 
float du_test_velocity (float a, float b)
 
float du_test_distance (float a, float b)
 
float du_test_ratio (float a, float b)
 
float du_test_scale (float a, float b)
 
float du_test_scale_left (float a, float b)
 
float du_test_scale_centimeters (float a, float b)
 
float du_test_divide_scalar (float a, float b)
 
float du_test_frequency (float x)
 
float du_test_period (float x)
 
float du_test_square (float x)
 
float du_test_sqrt (float x)
 
float du_test_force_constructor (float mass, float length, float time)
 
float du_test_add (float a, float b)
 
float du_test_subtract (float a, float b)
 
float du_test_min (float a, float b)
 
float du_test_max (float a, float b)
 
float du_test_negate (float x)
 
float du_test_abs (float x)
 
float du_test_clamp (float x, float lo, float hi)
 
bool du_test_lt (float a, float b)
 
bool du_test_gt (float a, float b)
 
bool du_test_le (float a, float b)
 
bool du_test_ge (float a, float b)
 
bool du_test_nearly_equal (float a, float b, float tol)
 

Detailed Description

Declare DearUnits runtime test wrappers.

Author
Irving Wang (irvin.nosp@m.gw@p.nosp@m.urdue.nosp@m..edu)

Function Documentation

◆ du_test_abs()

float du_test_abs ( float x)
Here is the caller graph for this function:

◆ du_test_add()

float du_test_add ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_celsius_from_fahrenheit()

float du_test_celsius_from_fahrenheit ( float x)
Here is the caller graph for this function:

◆ du_test_clamp()

float du_test_clamp ( float x,
float lo,
float hi )
Here is the caller graph for this function:

◆ du_test_distance()

float du_test_distance ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_divide_scalar()

float du_test_divide_scalar ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_fahrenheit_from_celsius()

float du_test_fahrenheit_from_celsius ( float x)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ du_test_feet_from_meters()

float du_test_feet_from_meters ( float x)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ du_test_force_constructor()

float du_test_force_constructor ( float mass,
float length,
float time )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ du_test_frequency()

float du_test_frequency ( float x)
Here is the caller graph for this function:

◆ du_test_ge()

bool du_test_ge ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_gt()

bool du_test_gt ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_le()

bool du_test_le ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_lt()

bool du_test_lt ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_max()

float du_test_max ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_meters_from_feet()

float du_test_meters_from_feet ( float x)
Here is the caller graph for this function:

◆ du_test_min()

float du_test_min ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_nearly_equal()

bool du_test_nearly_equal ( float a,
float b,
float tol )
Here is the caller graph for this function:

◆ du_test_negate()

float du_test_negate ( float x)
Here is the caller graph for this function:

◆ du_test_period()

float du_test_period ( float x)
Here is the caller graph for this function:

◆ du_test_ratio()

float du_test_ratio ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_scale()

float du_test_scale ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_scale_centimeters()

float du_test_scale_centimeters ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_scale_left()

float du_test_scale_left ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_sqrt()

float du_test_sqrt ( float x)
Here is the caller graph for this function:

◆ du_test_square()

float du_test_square ( float x)
Here is the caller graph for this function:

◆ du_test_subtract()

float du_test_subtract ( float a,
float b )
Here is the caller graph for this function:

◆ du_test_velocity()

float du_test_velocity ( float a,
float b )
Here is the caller graph for this function: