TactigonDoc  1.3 - 2018-28-12
Documentation of Tactigon libraries exposed in Arduino IDE
Public Types | Public Member Functions | List of all members
T_GPP Class Reference

#include <tactigon_IO.h>

Public Types

enum  GPPid {
  GPP1, GPP2, GPP3, GPP4,
  GPP_TX1, GPP_RX1, GPP_TX3, GPP_RX3,
  NOT_A_PIN
}
 
enum  GPPmode { GPP_IN, GPP_OUT }
 

Public Member Functions

 T_GPP ()
 
void init (GPPid pId, GPPmode mode)
 
void write (uint8_t val)
 
uint8_t read (void)
 

Detailed Description

General Pourpose IO Handler Class

Member Enumeration Documentation

◆ GPPid

Available GPPs

Enumerator
GPP1 

General Purpose Pin1

GPP2 

General Purpose Pin2

GPP3 

General Purpose Pin3

GPP4 

General Purpose Pin4

GPP_TX1 

UART1 TX pin used as GPP

GPP_RX1 

UART1 RX pin used as GPP

GPP_TX3 

UART3 TX pin used as GPP - HW V2 only

GPP_RX3 

UART3 RX pin used as GPP - HW V2 only

◆ GPPmode

GPPs mode

Enumerator
GPP_IN 

Input mode

GPP_OUT 

Output mode

Constructor & Destructor Documentation

◆ T_GPP()

T_GPP::T_GPP ( )

General Purpose Pin (GPP) Class constructor

Member Function Documentation

◆ init()

void T_GPP::init ( GPPid  id,
GPPmode  mode 
)

GPP Class init

Parameters
ididentification enum of pin
modemode of pin

◆ read()

uint8_t T_GPP::read ( void  )

Read in pin

◆ write()

void T_GPP::write ( uint8_t  val)

Write out pin

Parameters
valvalue (0/1) of digital pin

The documentation for this class was generated from the following files: