Added Wifi files

This commit is contained in:
Matthias Mitscherlich
2023-01-12 20:41:45 +01:00
parent ae04a540bc
commit 2b58f0e8a0
7 changed files with 5473 additions and 11 deletions
+27 -10
View File
@@ -16,16 +16,6 @@
#ifndef MAIN_INC_GPIO_H_
#define MAIN_INC_GPIO_H_
/**
* gpio implementation
* \defgroup gpio
* \brief {group_description}
* \addtogroup {Layer}
*
* Detailed description
* @{
*/
// --------------------------------------------------------------------------------------------------------------------
@@ -50,13 +40,40 @@
// Type definitions.
// --------------------------------------------------------------------------------------------------------------------
typedef enum
{
GPIO_DIRECTION_INPUT = 0,
GPIO_DIRECTION_OUTPUT = 1
} GPIO_Direction_t;
typedef enum
{
GPIO_VALUE_LOW = 0,
GPIO_VALUE_HIGH = 1
} GPIO_Value_t;
// --------------------------------------------------------------------------------------------------------------------
// Function declarations
// --------------------------------------------------------------------------------------------------------------------
class GPIO
{
public:
bool GPIO(int number, GPIO_Direction_t direction);
bool GPIO_setOutput(GPIO_Value_t value);
GPIO_Value_t GPIO_getInput(void);
private:
int number;
GPIO_Direction_t direction;
GPIO_Value_t value;
};
/** @} */