C++ API Docs
Embedded Controller Library in C++
Written by: Your Name
Program: C++
IDE/Compiler: Keil uVision 5
OS: WIn10
MCU: STM32F411RE, Nucleo-64
Header File
#include "ecGPIO.h"
Digital In/Out Class
Header File
#include "EC_GPIO.h"
EC_DigitalIn(GPIO_TypeDef *Port, int pin)
Create a DigitalOut connected to the specified pin.
Parameter
int pin: DigitalOut pin to connect to. 0~31
Port: GPIOA~GPIOH
int read ()
Return the output setting, represented as 0 or 1 (int)
void write ( int _outVal)
Set the output, specified as 0 or 1 (int)
Parameters
int _outVal: An integer specifying the pin output value, 0 for logical 0, 1 for logical 1
Last updated