NIBO Library  2.11
nibo/copro_prot.h
gehe zur Dokumentation dieser Datei
00001 /*  BSD-License:
00002 
00003 Copyright (c) 2007 by Nils Springob, nicai-systems, Germany
00004 
00005 All rights reserved.
00006 
00007 Redistribution and use in source and binary forms, with or without modification,
00008 are permitted provided that the following conditions are met:
00009 
00010   * Redistributions of source code must retain the above copyright notice,
00011     this list of conditions and the following disclaimer.
00012   * Redistributions in binary form must reproduce the above copyright notice,
00013     this list of conditions and the following disclaimer in the documentation
00014     and/or other materials provided with the distribution.
00015   * Neither the name nicai-systems nor the names of its contributors may be
00016     used to endorse or promote products derived from this software without
00017     specific prior written permission.
00018 
00019 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00020 "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00021 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
00022 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
00023 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00024 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
00025 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
00026 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
00027 LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
00028 NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
00029 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
00030 
00031 */
00032 
00039 #ifndef NIBO_COPRO_PROT_H_
00040 #define NIBO_COPRO_PROT_H_
00041 
00042 #include <util/delay.h>
00043 #include <stdint.h>
00044 
00045 #ifdef __cplusplus
00046 extern "C" {
00047 #endif
00048 
00049 enum {
00050   COPRO_CMD_INVALID        =  0, // () - 0 byte
00051   COPRO_CMD_STOP           =  1, // () - 0 byte
00052   COPRO_CMD_SETSPEED       =  2, // (int16_t left, int16_t right) - 4 byte
00053   COPRO_CMD_SETTARGET_ABS  =  3, // (int16_t left, int16_t right, uint16_t speed) - 6 byte
00054   COPRO_CMD_SETTARGET_REL  =  4, // (int16_t left, int16_t right, uint16_t speed) - 6 byte
00055   COPRO_CMD_SETPWM         =  5, // (int16_t left, int16_t right) - 4 byte
00056   COPRO_CMD_SETPARAMETERS  =  6, // (int8_t p, int8_t i, int8_t d) - 3 byte
00057   COPRO_CMD_STOP_IMMEDIATE = 10, // () - 0 byte
00058   
00059   COPRO_CMD_START_IR       =  7, // () - 0 byte
00060   COPRO_CMD_STOP_IR        =  8, // () - 0 byte
00061   COPRO_CMD_SEND_RC5       =  9, // (uint16_t rc5, uint8_t dummy) - 3 byte
00062 
00063   COPRO_CMD_NONE           = 0xff
00064 };
00065 
00066 
00067 #ifdef __cplusplus
00068 } // extern "C"
00069 #endif
00070 
00071 #endif // NIBO_COPRO_PROT_H_
00072 

Erzeugt am Fre Jun 3 2011 15:48:39 für NIBO Library von doxygen 1.7.4-20110426