16 #ifndef API_ROVER_GPIO_HPP_ 17 #define API_ROVER_GPIO_HPP_ 68 static const int LO = 0;
73 static const int HI = 1;
102 void wPiPinMode (
const int pin,
const int set_val);
124 void wPiDelay (
const unsigned int period_ms);
static const int OUTPUT_
Static definition for OUTPUT pin mode for wPiPinMode function.
Definition: rover_gpio.hpp:37
void wPiDelay(const unsigned int period_ms)
Delay function. Blocks some time in milliseconds.
Definition: rover_gpio.cpp:64
int wPiDigitalRead(const int pin)
Wrapper function to wiringPi's digitalRead function.
Definition: rover_gpio.cpp:36
static const int LO
Static definition for digital voltage level : LOW.
Definition: rover_gpio.hpp:68
static const int SOFT_PWM_OUTPUT_
Static definition for SOFT_PWM_OUTPUT pin mode for wPiPinMode function.
Definition: rover_gpio.hpp:52
static const int PWM_TONE_OUTPUT_
Static definition for PWM_TONE_OUTPUT pin mode for wPiPinMode function.
Definition: rover_gpio.hpp:62
void wPiSoftToneWrite(const int pin, const int tone)
Wrapper function to wiringPi's softToneWrite function. Sets up a pin to have PWM soft tone output...
Definition: rover_gpio.cpp:57
rover Namespace contains classes to manage Rover sensors, gpio, buzzer, buttons, driving, utilities, and cloud.
Definition: rover_api.hpp:293
static const int GPIO_CLOCK_
Static definition for GPIO_CLOCK pin mode for wPiPinMode function.
Definition: rover_gpio.hpp:47
void wPiPinMode(const int pin, const int set_val)
Wrapper function to wiringPi's pinMode function.
Definition: rover_gpio.cpp:43
static const int HI
Static definition for digital voltage level : HIGH.
Definition: rover_gpio.hpp:73
RoverGpio class provides the member functions related to basic GPIO operations. This class wraps wiri...
Definition: rover_gpio.hpp:24
RoverGpio()
Constructor function for the RoverGpio class.
Definition: rover_gpio.cpp:24
static const int SOFT_TONE_OUTPUT_
Static definition for SOFT_TONE_OUTPUT pin mode for wPiPinMode function.
Definition: rover_gpio.hpp:57
static const int INPUT_
Static definition for INPUT pin mode for wPiPinMode function.
Definition: rover_gpio.hpp:32
static const int PWM_OUTPUT_
Static definition for PWM_OUTPUT pin mode for wPiPinMode function.
Definition: rover_gpio.hpp:42
void wPiSoftToneCreate(const int pin)
Wrapper function to wiringPi's softToneCreate function. Sets up a pin to have PWM soft tone output...
Definition: rover_gpio.cpp:50
void wPiDigitalWrite(const int pin, const int value)
Wrapper function to wiringPi's digitalWrite function.
Definition: rover_gpio.cpp:29