This demonstrates the process of communicating through ethernet to a SEL-2431 Voltage Regulator Control Panel using SEL Fast Message. Basic device commands and data cna be requested and displayed over a connected serial port. This is a basic version and full testing and documentation has yet to be completed.

Dependencies:   BufferedSerial analogAverager voltageRegulator netStatReg analogMinMax CounterMinMax

nettime.cpp

Committer:
masterkookus
Date:
2019-09-16
Revision:
3:ac1f2af8bd0f
Child:
12:4bb088c27838

File content as of revision 3:ac1f2af8bd0f:

#include "nettime.h"

static volatile unsigned int timerval = 0;
static volatile bool tickflag = false;

int getTime(void)
{
    return timerval;
}

bool getTick(void)
{
    return tickflag;
}

void setTick(bool tickval)
{
    tickflag = tickval;
}

void incTime(void)
{
    timerval=timerval+1;
}