QuadroCopter  0.1.4
pwmOverlay.h
Go to the documentation of this file.
1 /*
2 Copyright (C) 2017 Michael Brookes
3 
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8 
9 This program 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
12 GNU General Public License for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef BEAGLEBONE_PWM_PWMOVERLAY_H
19 #define BEAGLEBONE_PWM_PWMOVERLAY_H
20 
21 #include "../../overlays/overlayBase.h"
22 #include "../exceptions/pwmSetupException.h"
23 
24 namespace quadro {
25 
26  namespace pwm {
27 
32  public:
33 
39  pwmOverlay() throw( pwmSetupException& );
40 
44  struct overlaySettings {
45  const char* overlay = "am33xx_pwm";
46  const char* searchFile = "/sys/devices/ocp.3/48300000.epwmss/modalias";
48  } settings;
49 
50  };
51 
52  }
53 
54 }
55 
56 #endif //BEAGLEBONE_PWM_PWMOVERLAY_H
bool overlayLoaded
overlay Loaded switch
Definition: pwmOverlay.h:47
Definition: overlayBase.h:60
struct quadro::pwm::pwmOverlay::overlaySettings settings
Definition: pwmOverlay.h:31
Definition: pwmOverlay.h:44
Definition: aeronautics.h:23
Definition: pwmSetupException.h:17
pwmOverlay()
Definition: pwmOverlay.cpp:22
const char * overlay
overlay name
Definition: pwmOverlay.h:45
const char * searchFile
overlay created file
Definition: pwmOverlay.h:46