library/utility/digital.hh

namespace scarab

The standard scarab namespace.

Functions

template <typename dig_type, typename an_type>
an_type d2a(dig_type dig, const struct dig_calib_params *params)
template <typename an_type, typename dig_type>
dig_type a2d(an_type analog, const struct dig_calib_params *params)
struct dig_calib_params
#include <digital.hh>

Public Members

unsigned bit_depth
unsigned levels
unsigned data_type_size
double v_range
double v_offset
double inv_levels
double inv_v_range
double dac_gain
bool bits_right_aligned