The Probe provides a convenient class that can be used to observe behavior of programs. It may be used with a logical analyser. The one used here has eight channels, numbered from 0 to 7.
More...
#include <probe.h>
|
| | Probe (uint _channel) |
| | Construct a new Probe object.
|
| |
|
void | hi () |
| | Generates a HI logical level on the GPIO.
|
| |
|
void | lo () |
| | Generates a LO logical level on the GPIO.
|
| |
| void | pulse_us (uint _duration=1) |
| | Generates a HI level pulse on the GPIO during _duration µs.
|
| |
| void | copy (bool _value) |
| | Used to copy the boolean _value on th GPIO.
|
| |
| void | pulse_train (uint nb) |
| | Generates a train of 10 us pulses on the GPIO.
|
| |
|
|
uint | _gpio |
| | this is the GPIO output on wich signals will be generated. The numbers are those of Raspberry Pi Pico.
|
| |
|
|
static constexpr int | _channel_map [8] = {6, 7, 8, 9, 16, 17, 21, 26} |
| | this is the mapping of GPIO number to the logic analyser channel. The choice of GPIO number is arbitrar. It will depends on free outputs on your specific hardware implementation.
|
| |
The Probe provides a convenient class that can be used to observe behavior of programs. It may be used with a logical analyser. The one used here has eight channels, numbered from 0 to 7.
◆ Probe()
| Probe::Probe |
( |
uint | _channel | ) |
|
Construct a new Probe object.
The Probe provides a convenient class that can be used to observe behavior of programs. It may be used with a logical analyser. The one used here has eight channel, numbered from 0 to 7.
- Parameters
-
| _channel | the channel number as it appears on the logic analyser display |
◆ copy()
| void Probe::copy |
( |
bool | _value | ) |
|
Used to copy the boolean _value on th GPIO.
- Parameters
-
◆ pulse_train()
| void Probe::pulse_train |
( |
uint | nb | ) |
|
Generates a train of 10 us pulses on the GPIO.
- Parameters
-
| nb | Number of pulses to generate. |
◆ pulse_us()
| void Probe::pulse_us |
( |
uint | _duration = 1 | ) |
|
Generates a HI level pulse on the GPIO during _duration µs.
- Parameters
-
The documentation for this class was generated from the following files: