Debinix Team Library Mock
Project development in parallel for hardware and software teams.
|
Arduino Mock methods and mocked Arduino language constructs. More...
#include <Mock.h>
Public Member Functions | |
Mock (void) | |
Constructor. | |
~Mock (void) | |
Deallocate Mock object. | |
Static Public Member Functions | |
static uint16_t | digitalRead (uint8_t pin) |
Mocked Arduino digitalRead(). More... | |
static void | digitalWrite (uint8_t pin, uint8_t value) |
Mocked Arduino digitalWrite() returns without action. More... | |
static void | pinMode (uint8_t pin, uint8_t mode) |
Mocked Arduino pinMode() returns without action. More... | |
static uint16_t | analogRead (uint8_t pin) |
Mocked Arduino analogRead(). More... | |
static void | analogWrite (uint8_t pin, uint16_t value) |
Mocked Arduino analogWrite() returns without action. More... | |
static uint32_t | millis (void) |
Mocked Arduino millis(). More... | |
static uint32_t | micros (void) |
Mocked Arduino micros(). More... | |
static void | delay (uint32_t ms_delay) |
Mocked Arduino delay(). More... | |
static void | delayMicroseconds (uint32_t us_delay) |
Mocked Arduino delayMicroseconds(). More... | |
static uint32_t | map (uint32_t in_value, uint32_t in_min, uint32_t in_max, uint32_t out_min, uint32_t out_max) |
Re-maps a number from one range to another. That is, a value of in_min would get mapped to out_min, a value of in_max to out_max, values in-between to values in-between, etc. More... | |
static uint16_t | read (uint16_t address) |
Mocked EEPROM read(). More... | |
static void | write (uint16_t address, uint16_t value) |
Mocked EEPROM write() returns without action. More... | |
static void | update (uint16_t address, uint16_t value) |
Mocked EEPROM update() returns without action. More... | |
static uint16_t | get (uint16_t address, uint16_t data) |
Mocked EEPROM get(). More... | |
static void | put (uint16_t address, uint16_t data) |
Mocked EEPROM put(). More... | |
static uint16_t | length (void) |
Mocked EEPROM length(). More... | |
static uint16_t | begin (void) |
Mocked EEPROM begin(). More... | |
static uint16_t | end (void) |
Mocked EEPROM end(). More... | |
Arduino Mock methods and mocked Arduino language constructs.
|
inlinestatic |
Mocked Arduino digitalRead().
pin | The digital pin to read from. |
|
inlinestatic |
Mocked Arduino digitalWrite() returns without action.
pin | Arduino pin number for write. |
value | Value is either HIGH or LOW. |
|
inlinestatic |
Mocked Arduino pinMode() returns without action.
pin | Arduino pin number to set the mode. |
mode | Sets the mode to INPUT, OUTPUT, or INPUT_PULLUP. |
|
inlinestatic |
Mocked Arduino analogRead().
pin | The analog pin to read from. |
|
inlinestatic |
Mocked Arduino analogWrite() returns without action.
pin | The analog pin to write to. |
value | The duty cycle: between 0 (off) and 255 (on). |
|
inlinestatic |
Mocked Arduino millis().
|
inlinestatic |
Mocked Arduino micros().
|
inlinestatic |
Mocked Arduino delay().
ms_delay | The time to pause the code execution. |
|
inlinestatic |
Mocked Arduino delayMicroseconds().
us_delay | The time to pause the code execution. |
|
inlinestatic |
Re-maps a number from one range to another. That is, a value of in_min would get mapped to out_min, a value of in_max to out_max, values in-between to values in-between, etc.
in_value | The in value to map. |
in_min | The lower bound of the value’s current range. |
in_max | The upper bound of the value’s current range. |
out_min | The lower bound of the value’s target range. |
out_max | The upper bound of the value’s target range. |
|
inlinestatic |
|
inlinestatic |
Mocked EEPROM write() returns without action.
address | The EEPROM address to write a byte. |
value | The value (byte) to write at that address. |
|
inlinestatic |
Mocked EEPROM update() returns without action.
address | The EEPROM address to write a byte. |
value | The value to write (byte), if different at that address. |
|
inlinestatic |
|
inlinestatic |
Mocked EEPROM put().
address | The EEPROM address to write a byte. |
data | Write data to EEPROM address. |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |