Manages the Pip sensor sweep and associated data.
More...
#include <Pip.hpp>
|
| uint8_t | dac_pin |
| | The pin for the DAC output.
|
| |
| int | delay_us |
| | The delay between steps in the sweep. Measured in microseconds.
|
| |
| Max1148 & | adc |
| | The ADC object for the Pip to use. Assuming each pip will use a different ADC channel.
|
| |
| uint16_t | avg_num |
| | The number of samples to average when querying the ADC.
|
| |
| uint16_t | num_samples |
| | The number of samples to take during the sweep. AKA the number of steps in the sweep.
|
| |
| uint16_t | sweep_min |
| | The minimum and maximum values for the sweep.
|
| |
| uint16_t | sweep_max |
| |
Manages the Pip sensor sweep and associated data.
Definition at line 33 of file Pip.hpp.
◆ Pip()
| Pip::Pip |
( |
int |
delay, |
|
|
uint16_t |
avg_num, |
|
|
uint16_t |
num_samples, |
|
|
uint16_t |
min, |
|
|
uint16_t |
max, |
|
|
uint8_t |
dac_pin, |
|
|
Max1148 & |
adc |
|
) |
| |
Constructor for the Pip class.
Definition at line 7 of file Pip.cpp.
◆ clear_data()
| void Pip::clear_data |
( |
uint16_t |
data[], |
|
|
uint16_t |
size |
|
) |
| |
|
private |
Clears the data array.
Clears the data array.
- Parameters
-
| data | The data array to clear. |
| size | The size of the data array. |
- Parameters
-
| data | The data array to clear. |
| size | The size of the data array. |
Definition at line 14 of file Pip.cpp.
◆ read_adc()
| uint16_t Pip::read_adc |
( |
| ) |
|
|
private |
◆ PipController
◆ adc
The ADC object for the Pip to use. Assuming each pip will use a different ADC channel.
Definition at line 48 of file Pip.hpp.
◆ avg_num
The number of samples to average when querying the ADC.
Definition at line 52 of file Pip.hpp.
◆ dac_pin
The pin for the DAC output.
Definition at line 39 of file Pip.hpp.
◆ data
The data array for the sweep.
Definition at line 81 of file Pip.hpp.
◆ delay_us
The delay between steps in the sweep. Measured in microseconds.
Definition at line 43 of file Pip.hpp.
◆ num_samples
| uint16_t Pip::num_samples |
|
private |
The number of samples to take during the sweep. AKA the number of steps in the sweep.
Definition at line 56 of file Pip.hpp.
◆ sweep_max
◆ sweep_min
The minimum and maximum values for the sweep.
Definition at line 60 of file Pip.hpp.
The documentation for this class was generated from the following files: