Program Listing for File hss-pal-gpio.hpp

Return to documentation for file (src/pal/hss-pal-gpio.hpp)

#ifndef HSS_PAL_GPIO_HPP_
#define HSS_PAL_GPIO_HPP_

#include <stdint.h>
#include "hss-types.hpp"

namespace hss
{

class GPIOPAL
{
    public:

        enum IntEvent_t
        {
            INT_FALLING_EDGE   = 0,
            INT_RISING_EDGE    = 1,
        };

        enum VLevel_t
        {
            GPIO_LOW   = 0,
            GPIO_HIGH  = 1
        };

        enum VLogic_t
        {
            NEGATIVE = 1,
            POSITIVE = 2,
        };

        virtual Error_t        init        () = 0;

        virtual Error_t       deinit      () = 0;

        virtual VLevel_t       read        () = 0;

        virtual Error_t        write       (VLevel_t level) = 0;

        virtual Error_t        enable      () = 0;

        virtual Error_t        disable     () = 0;

};

}

#endif