ME 405
lpf Namespace Reference

Functions

def cb (timer)
 
def sine_sweep (start, end, mult)
 

Variables

 dac1 = pyb.DAC(1)
 
 dac2 = pyb.DAC(2)
 
 adc = pyb.ADC("X7")
 
 tim = pyb.Timer(4, freq=2000)
 
 coeffs
 
 ncoeffs = len(coeffs)
 
 data = array.array('i', [0]*(ncoeffs +3))
 

Function Documentation

◆ cb()

def lpf.cb (   timer)

◆ sine_sweep()

def lpf.sine_sweep (   start,
  end,
  mult 
)

Variable Documentation

◆ adc

lpf.adc = pyb.ADC("X7")

◆ coeffs

lpf.coeffs
Initial value:
1 = array.array('i', (72, 47, 61, 75, 90, 105, 119, 132, 142, 149, 152, 149,
2  140, 125, 102, 71, 33, -12, -65, -123, -187, -254, -322, -389, -453, -511, -561,
3  -599, -622, -628, -615, -579, -519, -435, -324, -187, -23, 165, 375, 607, 855,
4  1118, 1389, 1666, 1941, 2212, 2472, 2715, 2938, 3135, 3303, 3437, 3535, 3594,
5  3614, 3594, 3535, 3437, 3303, 3135, 2938, 2715, 2472, 2212, 1941, 1666, 1389,
6  1118, 855, 607, 375, 165, -23, -187, -324, -435, -519, -579, -615, -628, -622,
7  -599, -561, -511, -453, -389, -322, -254, -187, -123, -65, -12, 33, 71, 102, 125,
8  140, 149, 152, 149, 142, 132, 119, 105, 90, 75, 61, 47, 72))

◆ dac1

lpf.dac1 = pyb.DAC(1)

◆ dac2

lpf.dac2 = pyb.DAC(2)

◆ data

lpf.data = array.array('i', [0]*(ncoeffs +3))

◆ ncoeffs

lpf.ncoeffs = len(coeffs)

◆ tim

lpf.tim = pyb.Timer(4, freq=2000)