/**
* This file is part of license combination gpl version 3 license and eCos.
* The corresponding license terms are below.
*
* gpl version 3 Licence:
*
* The file were developed during the student thesis "Datensammlung in Wireless
* Sensor Networks fuer Autonomic Home NetworkingÒ of Thomas Kothmayr and is
* included in the dissertation "Secure Data Transmission in Wireless
* Sensor Networks" by Corinna Schmitt during employment at the Technische
* UniversitŠt MŸnchen, Department Computer Science, Chair Network
* Architectures and Services (Germany).
* Copyright (C) 2013
* Authors: Thomas Kothmayr and Corinna Schmitt (schmitt[at]net.in.tum.de)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see
TransformCounterC decreases precision and/or widens an Counter.
See TEP102 for more details.
to_precision_tag
- A type indicating the precision of the transformed
Counter.
to_size_type
- The type for the width of the transformed Counter.
from_precision_tag
- A type indicating the precision of the original
Counter.
from_size_type
- The type for the width of the original Counter.
bit_shift_right
- Original time units will be 2 to the power
bit_shift_right
larger than transformed time units.
upper_count_type
- A type large enough to store the upper bits --
those needed above from_size_type after its shift right to fill
to_size_type.