HomeGPT v.1.0
HomeGPT revolutionizes home automation with advanced features such as facial recognition for secure access, mood-responsive lighting, RFID-enabled garage entry, and clap-activated door closures. This system elevates the living experience by seamlessly blending security, convenience, and ambiance-enhancing technology.
Loading...
Searching...
No Matches
sys_gpio_impl.h
Go to the documentation of this file.
1// Copyright (C) 2021 twyleg
2#pragma once
3
4#include <mfrc522/igpio.h>
5#include <spidevpp/gpio.h>
6
7class SysGpio : public mfrc522::IGpio {
8
9public:
10 SysGpio(unsigned int pin, spidevpp::Gpio::Direction direction, spidevpp::Gpio::Value value)
11 : mGpio(pin, direction, value)
12 {}
13
14 void setValue(Value value) final {
15 mGpio.setValue(static_cast<spidevpp::Gpio::Value>(value));
16 }
17
18 Value getValue() final {
19 return static_cast<mfrc522::IGpio::Value>(mGpio.getValue());
20 }
21
23
24};
Definition: sys_gpio_impl.h:7
SysGpio(unsigned int pin, spidevpp::Gpio::Direction direction, spidevpp::Gpio::Value value)
Definition: sys_gpio_impl.h:10
Value getValue() final
Definition: sys_gpio_impl.h:18
void setValue(Value value) final
Definition: sys_gpio_impl.h:14
spidevpp::Gpio mGpio
Definition: sys_gpio_impl.h:22
Definition: gpio.h:8
Direction
Definition: gpio.h:12
Value
Definition: gpio.h:17
Value getValue()
Definition: gpio.cc:63
void setValue(Value)
Definition: gpio.cc:56
Definition: igpio.h:8
Value
Definition: igpio.h:10