Open Garden  0.10.1-21
Data Fields
programs_t Struct Reference

#include <ogstruct.h>

Collaboration diagram for programs_t:
Collaboration graph
[legend]

Data Fields

uint8_t check
 
uint8_t number
 
uint8_t qc
 
struct program_t p [MAX_PROGS]
 
struct queue_t q [MAX_PROGS]
 
float tnow
 
float t_mean
 
float dfactor
 
uint8_t position
 
uint8_t valve
 
uint8_t flags
 
uint8_t ioline
 I/O line in use (bitmapped). In bistable valve type, we store the line in use so it can be possible to disable such line once opened in order to close only the correct line. More...
 
uint8_t ioline_alarm
 I/O lines alarm register (bitmapped). More...
 

Detailed Description

Single structure to keep all the program.

Warning
If the struct is changed, you must re-define the CHECK_VALID_CODE to avoid incompatibile program store in the flash to be interpreted.

Field Documentation

◆ check

uint8_t programs_t::check

control code, should be == CHECK_VALID_CODE.

at any new software release this code is used to know if the program stored in the flash memory is still compatibile with the new software.

◆ dfactor

float programs_t::dfactor

Drifting factor

◆ flags

uint8_t programs_t::flags

see FL_ definition for this bit mapped byte flag.

◆ ioline

uint8_t programs_t::ioline

I/O line in use (bitmapped). In bistable valve type, we store the line in use so it can be possible to disable such line once opened in order to close only the correct line.

Note
this value is bitmapped and represent the same situation as the output_port with the MONOSTABLE valve connected.

◆ ioline_alarm

uint8_t programs_t::ioline_alarm

I/O lines alarm register (bitmapped).

This register represent which lines are not subject to an alarm, means it will NOT close the line if an alarm is detected. TRUE the line is not subject. Default to all FALSE = 0

◆ number

uint8_t programs_t::number

number of valid programs 0..MAX_PROGS

◆ p

struct program_t programs_t::p[MAX_PROGS]

array of the programs 0..(MAX_PROGS - 1)

◆ position

uint8_t programs_t::position

sunlight position

◆ q

struct queue_t programs_t::q[MAX_PROGS]

queue programs 0..(MAX_PROGS - 1)

◆ qc

uint8_t programs_t::qc

number of valid queue elements

◆ t_mean

float programs_t::t_mean

arithmetic temperature mean

◆ tnow

float programs_t::tnow

temperature realtime

◆ valve

uint8_t programs_t::valve

valve type


The documentation for this struct was generated from the following file: