-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathFunctionFake.h
47 lines (34 loc) · 1.46 KB
/
FunctionFake.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#pragma once
#include "fakeit.hpp"
struct FunctionFake
{
virtual void init(void) = 0;
virtual void loop(void) = 0;
virtual void setup(void) = 0;
virtual void pinMode(uint8_t, uint8_t) = 0;
virtual void digitalWrite(uint8_t, uint8_t) = 0;
virtual int digitalRead(uint8_t) = 0;
virtual int analogRead(uint8_t) = 0;
virtual void analogReference(uint8_t) = 0;
virtual void analogReadResolution(uint8_t) = 0;
virtual void analogWrite(uint8_t, int) = 0;
virtual unsigned long millis(void) = 0;
virtual unsigned long micros(void) = 0;
virtual void delay(unsigned long) = 0;
virtual void delayMicroseconds(unsigned int) = 0;
virtual unsigned long pulseIn(uint8_t, uint8_t, unsigned long) = 0;
virtual unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout) = 0;
virtual void shiftOut(uint8_t, uint8_t, uint8_t, uint8_t) = 0;
virtual uint8_t shiftIn(uint8_t, uint8_t, uint8_t) = 0;
virtual void detachInterrupt(uint8_t) = 0;
virtual void attachInterrupt(uint8_t, void (*)(void), int mode) = 0;
virtual void cli() = 0;
virtual void sei() = 0;
virtual void tone(uint8_t _pin, unsigned int frequency, unsigned long duration) = 0;
virtual void noTone(uint8_t _pin) = 0;
virtual long random(long) = 0;
virtual long random(long, long) = 0;
virtual void randomSeed(unsigned long) = 0;
virtual long map(long, long, long, long, long) = 0;
virtual void yield() = 0;
};