/**
* @file icss.c
*
* @brief contains ICSS ALE API functions
*
* \par
* Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/
* \par
*/


/* ========================================================================== */
/*                             Include Files                                  */
/* ========================================================================== */
#include "icss_learning.h"

/**External structure containing the Learning table*/
extern HashTable *table[2];

/* ========================================================================== */
/*                          Function Definitions                              */
/* ========================================================================== */

/**
* @internal
* @brief Function increments all time counters in both the port tables.
* @details called periodically to implement Ageing effectively
*
* @param  none
*
* @retval none
*/
void ICSSALECounter(void)
{
	incrementCounter();
}
/**
* @internal
* @brief Function to Clear ALE table entries
*
* @param  none
*
* @retval none
*/
void ICSSALEClearTable(void)
{
	purgeTable(0);
	purgeTable(1);
}
/**
* @internal
* @brief Function to initialize ALE and Clear table
*
* @param  none
*
* @retval none
*/
void ICSSALEInit(void)
{
	ICSSALEClearTable();
}
/**
* @internal
* @brief Function removes (free up) any ageable table entry
*
* @param  none
*
* @retval none
*/
void ICSSALEAgeOutNow(void)
{
	ageingRoutine(0);
	ageingRoutine(1);
}


