IoAbstraction
Classes | Enumerations
MockIoAbstraction.h File Reference

This file contains implementations of IoAbstraction that are very useful for dev & testing. Neither of the implementations in this file are designed for use in production. More...

Go to the source code of this file.

Classes

class  MockedIoAbstraction
 
class  LoggingIoAbstraction
 

Enumerations

enum  MockIoError { NO_ERROR = 0 , PIN_TOO_HIGH = 1 , READ_NOT_INPUT = 2 , WRITE_NOT_OUTPUT = 3 }
 

Detailed Description

This file contains implementations of IoAbstraction that are very useful for dev & testing. Neither of the implementations in this file are designed for use in production.

Enumeration Type Documentation

◆ MockIoError

During any call to the mock version of IoAbstraction, any error detected will be recorded in the error variable. However, only the last one is kept.

Enumerator
NO_ERROR 

No error has occurred during reads and write

PIN_TOO_HIGH 

A pin outside of range has been requested

READ_NOT_INPUT 

A request to read an output pin

WRITE_NOT_OUTPUT 

A request to write to an input pin