Speeduino
Loading...
Searching...
No Matches
Macros | Functions | Variables
utilities.h File Reference
#include <Arduino.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define COMPARATOR_EQUAL   0
 
#define COMPARATOR_NOT_EQUAL   1
 
#define COMPARATOR_GREATER   2
 
#define COMPARATOR_GREATER_EQUAL   3
 
#define COMPARATOR_LESS   4
 
#define COMPARATOR_LESS_EQUAL   5
 
#define COMPARATOR_AND   6
 
#define COMPARATOR_XOR   7
 
#define BITWISE_DISABLED   0
 
#define BITWISE_AND   1
 
#define BITWISE_OR   2
 
#define BITWISE_XOR   3
 
#define REUSE_RULES   240
 

Functions

void initialiseProgrammableIO (void)
 
void checkProgrammableIO (void)
 
int16_t ProgrammableIOGetData (uint16_t index)
 

Variables

uint8_t ioOutDelay [sizeof(configPage13.outputPin)]
 
uint8_t ioDelay [sizeof(configPage13.outputPin)]
 
uint8_t pinIsValid
 
uint8_t currentRuleStatus
 

Macro Definition Documentation

◆ BITWISE_AND

#define BITWISE_AND   1

◆ BITWISE_DISABLED

#define BITWISE_DISABLED   0

◆ BITWISE_OR

#define BITWISE_OR   2

◆ BITWISE_XOR

#define BITWISE_XOR   3

◆ COMPARATOR_AND

#define COMPARATOR_AND   6

◆ COMPARATOR_EQUAL

#define COMPARATOR_EQUAL   0

◆ COMPARATOR_GREATER

#define COMPARATOR_GREATER   2

◆ COMPARATOR_GREATER_EQUAL

#define COMPARATOR_GREATER_EQUAL   3

◆ COMPARATOR_LESS

#define COMPARATOR_LESS   4

◆ COMPARATOR_LESS_EQUAL

#define COMPARATOR_LESS_EQUAL   5

◆ COMPARATOR_NOT_EQUAL

#define COMPARATOR_NOT_EQUAL   1

◆ COMPARATOR_XOR

#define COMPARATOR_XOR   7

◆ REUSE_RULES

#define REUSE_RULES   240

Function Documentation

◆ checkProgrammableIO()

void checkProgrammableIO ( void  )

Check all (8) programmable I/O:s and carry out action on output pin as needed. Compare 2 (16 bit) vars in a way configured by cmpOperation (see also config13::operation). Use ProgrammableIOGetData() to get 2 vars to compare. Skip all programmable I/O:s where output pin is set 0 (meaning: not programmed).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialiseProgrammableIO()

void initialiseProgrammableIO ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ProgrammableIOGetData()

int16_t ProgrammableIOGetData ( uint16_t  index)

Get single I/O data var (from currentStatus) for comparison.

Parameters
index- Field index/number (?)
Returns
16 bit (int) result
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ currentRuleStatus

uint8_t currentRuleStatus
extern

◆ ioDelay

uint8_t ioDelay[sizeof(configPage13.outputPin)]
extern

◆ ioOutDelay

uint8_t ioOutDelay[sizeof(configPage13.outputPin)]
extern

◆ pinIsValid

uint8_t pinIsValid
extern