/***************************************************************************** Project : Roboboard Date : 1/14/2007 Author : Gunter Logemann (C) ALL RIGHTS RESERVED Comments: This project is optimized to work with the Mikrocopter (www.mikrokopter.de) Redistributions of this source code (with or without modifications) or parts of this sourcode must retain the above copyright notice, this list of conditions and the following disclaimer. * Neither the name of the copyright holders nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission. * The use of this source code permittet for non-commercial use (directly or indirectly) only. * Commercial use Is only permitted with our written permission by Gunter Logemann (gunter@pccon.de) THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Chip type : ATmega8 Program type : Application Clock frequency : CPUSPEED *****************************************************************************/ #define XIDENTIFIER_EXCEPTION 0x00 #define XIDENTIFIER_VERSION 0x01 #define XIDENTIFIER_ANALOG 0x02 //--------------------------------------------------------------------------- struct str_VersionInfo { unsigned char identifier; unsigned char majorversion; unsigned char minorversion; }; extern struct str_VersionInfo VersionInfo; #define MAJORVERSION 0x00 #define MINORVERSION 0x01 //--------------------------------------------------------------------------- struct str_AnalogData { unsigned char identifier; int analog[8]; }; extern struct str_AnalogData AnalogData; //--------------------------------------------------------------------------- struct str_Exception { unsigned char identifier; unsigned char errorcode; }; extern struct str_Exception Exception; #define ERRORCODE_NOTIMPLEMENTED 0x00 #define ERRORCODE_WRONGPARAMETER 0x01