PIDUINO
Loading...
Searching...
No Matches
socpwm.h
1/* Copyright © 2018-2025 Pascal JEAN, All rights reserved.
2 This file is part of the Piduino Library.
3
4 The Piduino Library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 3 of the License, or (at your option) any later version.
8
9 The Piduino Library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public License
15 along with the Piduino Library; if not, see <http://www.gnu.org/licenses/>.
16*/
17#pragma once
18
19
20#include <piduino/converter.h>
21#include <piduino/gpiopin.h>
22
23namespace Piduino {
24
25 class SocPwm : public Converter {
26
27 public:
29 virtual ~SocPwm();
30 const Pin *pin() const;
31
32 protected:
33 class Private;
34 class Bcm2835Engine;
35 class Rp1Engine;
36 class HxEngine;
38
39 private:
41 };
42}
43/* ========================================================================== */
The Converter class provides an interface for analog-to-digital and digital-to-analog converters.
Definition converter.h:34
Represents a general-purpose input/output (GPIO) pin and its configuration.
Definition gpiopin.h:68
virtual ~SocPwm()
SocPwm(Pin *pin)
const Pin * pin() const
SocPwm(Private &dd)
Internal implementation class for GpioDevice.
#define PIMP_DECLARE_PRIVATE(Class)
PIMP_DECLARE_PRIVATE.
Definition global.h:82
Global namespace for Piduino.
Definition board.h:28