C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
probe.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include "pico/stdlib.h"
14
20
class
Probe
21
{
22
private
:
27
uint _gpio;
33
constexpr
static
int
_channel_map[8] = {6, 7, 8, 9, 16, 17, 21, 26};
34
35
public
:
44
Probe
(uint _channel);
49
void
hi
();
54
void
lo
();
60
void
pulse_us
(uint _duration);
66
void
copy
(
bool
_value);
67
};
Probe::pulse_us
void pulse_us(uint _duration)
Generates a HI level pulse on the GPIO during _duration µs.
Definition
probe.cpp:23
Probe::Probe
Probe(uint _channel)
Construct a new Probe object.
Definition
probe.cpp:4
Probe::copy
void copy(bool _value)
Used to copy the boolean _value on th GPIO.
Definition
probe.cpp:30
Probe::hi
void hi()
Generates a HI logical level on the GPIO.
Definition
probe.cpp:13
Probe::lo
void lo()
Generates a LO logical level on the GPIO.
Definition
probe.cpp:18
src
utilities
probe
probe.h
Generated by
1.13.1