BusBricks: /Users/felixschulke/Developement/Arduino/Modbus_RTU/Modbus_RTU/Modbus-RTU/lib/mockArduino/mockArduino.h File Reference
BusBricks  0.1
Customize bus-communication
Loading...
Searching...
No Matches
mockArduino.h File Reference
#include <iostream>
#include <string>
#include <sstream>
#include <chrono>
#include <queue>
#include <functional>
Include dependency graph for mockArduino.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  arduinoMocking::MockTime
 Simulates Arduino's time functions for testing purposes. More...
 
class  arduinoMocking::MockSerial
 Simulates Arduino's Serial class for testing purposes. More...
 

Namespaces

namespace  arduinoMocking
 Provides mock implementations of Arduino framework functions and classes for native builds.
 

Macros

#define OUTPUT   1
 Define constant for OUTPUT mode.
 
#define INPUT   0
 Define constant for INPUT mode.
 

Typedefs

typedef std::string arduinoMocking::String
 Alias for std::string to simulate Arduino's String type.
 

Functions

void arduinoMocking::pinMode (int pin, int mode)
 Simulates the pinMode function for setting pin modes.
 
unsigned long arduinoMocking::millis ()
 Simulates the millis function to get the number of milliseconds since the program started.
 
unsigned long arduinoMocking::micros ()
 Simulates the micros function to get the number of microseconds since the program started.
 

Detailed Description

Author
Felix Schuelke (flxsc.nosp@m.ode@.nosp@m.gmail.nosp@m..com)
Version
0.1
Date
2024-08-18

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.