/*
 * TLGB_Contatori.h
 *
 *  Created on: 05/gen/2016
 *      Author: gozzini.davide
 */

#ifndef TLGB_CONTATORI_H_
#define TLGB_CONTATORI_H_

//==============================================================================
// Include files

#include "TLGB/TLGB_Messaggi.h"

//==============================================================================
// Constants

//==============================================================================
// Types

typedef struct
{
	unsigned long Buoni;
	unsigned long Incerti;
	unsigned long Scarti;
	unsigned long Anomalie;
}TLotto;

typedef struct
{
	unsigned long STAT00; //
	unsigned long STAT01; //
	unsigned long STAT02; //
	unsigned long STAT03; //
	unsigned long STAT04; //
	unsigned long STAT05; //
	unsigned long STAT06; //
	unsigned long STAT07; //
	unsigned long STAT08; //
	unsigned long STAT09; //
	unsigned long STAT10; //
	unsigned long STAT11; //
	unsigned long STAT12; //
	unsigned long STAT13; //
	unsigned long STAT14; //
	unsigned long STAT15; //
	unsigned long STAT16; //
	unsigned long STAT17; //
	unsigned long STAT18; //
	unsigned long STAT19; //
}TStatistiche;

//==============================================================================
// External variables

extern TLotto Lotto[numero_stazioni];
extern TStatistiche Statistiche[numero_stazioni];

//==============================================================================
// Global functions

void SumLotto (unsigned long stazione, E_Messaggi risultato);
void AzzeraLotto (unsigned long stazione);
void AzzeraStatistiche (unsigned long stazione);


#endif /* TLGB_CONTATORI_H_ */
