ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <arpirobot/devices/gpio/GPIOPin.hpp>
Public Types | |
enum class | Mode { Input = 0 , Output = 1 } |
enum class | Level { Low = 0 , High = 1 } |
Public Member Functions | |
GPIOPin (unsigned int pin) | |
GPIOPin (const GPIOPin &other)=delete | |
GPIOPin & | operator= (const GPIOPin &other)=delete |
void | setMode (Mode mode) |
void | setLevel (Level level) |
Level | getLevel () |
void | setPwmValue (uint8_t val) |
uint8_t | getPwmValue () |
void | setPwmFrequency (unsigned int freq) |
unsigned int | getPwmFrequency () |
![]() | |
virtual std::string | getDeviceName () |
bool | isLockedByAction (std::shared_ptr< Action > action=nullptr) |
Check if a given action locks the device. More... | |
bool | isLockedByAction (Action &action) |
Check if a given action locks the device. More... | |
Additional Inherited Members | |
![]() | |
bool | initialized = false |
std::string | deviceName |
Use this device to directly control a GPIO pin This allows using the pin either as an input or an output Supported operations: