SPUC
3.0
|
Simple 1st order All-digital Sigma Delta converter. More...
#include <sigma_delta.h>
Public Member Functions | |
sigma_delta (char nin=8, char nout=1) | |
Constructor. More... | |
signed char | single (signed long in) |
Output <= 8 bits. More... | |
Public Attributes | |
unsigned char | nbit_out |
unsigned char | nbit_in |
Protected Attributes | |
signed long | in |
signed long | acc |
unsigned long | mask |
Simple 1st order All-digital Sigma Delta converter.
All-digital sigma delta converter Performs Sigma Delta function in digital domain for use when output will go to a (nbit_out) D/A converter. Default is 8 bits in, 1 bit out. After construction, call single() to get output. Multirate performed by calling single() with same input at the higher sampling rate.
SPUC::sigma_delta::sigma_delta | ( | char | nin = 8 , |
char | nout = 1 |
||
) |
signed char SPUC::sigma_delta::single | ( | signed long | in | ) |
|
protected |
Referenced by sigma_delta(), and single().
|
protected |
|
protected |
Referenced by sigma_delta(), and single().
unsigned char SPUC::sigma_delta::nbit_in |
Referenced by sigma_delta(), and single().
unsigned char SPUC::sigma_delta::nbit_out |
Referenced by sigma_delta(), and single().