Program Listing for File iplo.hh

Return to documentation for file (include/iplo/iplo.hh)

#ifndef HIVLE_IPLO_HH
#define HIVLE_IPLO_HH

#include <cstdint>

namespace iplo {

enum PinMode : std::uint8_t {
    INPUT = 0x0,
    OUTPUT = 0x1,
    INPUT_PULLUP = 0x2,
};

enum PinState : std::uint8_t {
    HIGH = 1,
    LOW = 0,
};

enum MCP230XXStatus : std::uint8_t {
    OK = 0x01,
    PIN_ERROR = 0x81,
    I2C_ERROR = 0x82,
    VALUE_ERROR = 0x83,
    PORT_ERROR = 0x84,
    INVALID_READ = 0x99,
};

}  // namespace iplo


#endif /* HIVLE_IPLO_HH */