Skip to content

Class GpioFeature::Gpio

ClassList > GpioFeature > Gpio

Public Types

Type Name
enum int DIRECTION
enum int PULL_MODE

Public Functions

Type Name
void pinMode (int pin, int mode)
void pullMode (int pin, int mode)
int read (int pin)
void write (int pin, int value)

Public Types Documentation

enum DIRECTION

enum GpioFeature::Gpio::DIRECTION {
    DISABLE = static_cast<int>(GPIO_MODE_DISABLE),
    INPUT = static_cast<int>(GPIO_MODE_INPUT),
    OUTPUT = static_cast<int>(GPIO_MODE_OUTPUT),
    OUTPUT_OD = static_cast<int>(GPIO_MODE_OUTPUT_OD),
    INPUT_OUTPUT_OD = static_cast<int>(GPIO_MODE_INPUT_OUTPUT_OD),
    INPUT_OUTPUT = static_cast<int>(GPIO_MODE_INPUT_OUTPUT)
};

enum PULL_MODE

enum GpioFeature::Gpio::PULL_MODE {
    FLOATING = static_cast<int>(GPIO_FLOATING),
    PULL_UP = static_cast<int>(GPIO_PULLUP_ONLY),
    PULL_DOWN = static_cast<int>(GPIO_PULLDOWN_ONLY),
    PULL_UP_DOWN = static_cast<int>(GPIO_PULLUP_PULLDOWN)
};

Public Functions Documentation

function pinMode

inline void GpioFeature::Gpio::pinMode (
    int pin,
    int mode
) 

function pullMode

inline void GpioFeature::Gpio::pullMode (
    int pin,
    int mode
) 

function read

inline int GpioFeature::Gpio::read (
    int pin
) 

function write

inline void GpioFeature::Gpio::write (
    int pin,
    int value
) 

The documentation for this class was generated from the following file demo-projets/jaculus/main/features/gpioFeature.h