NIBO Library  2.11
nibo/nds3.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 
00042 #ifndef NIBO_NDS3_H_
00043 #define NIBO_NDS3_H_
00044 #if defined(NIBO_USE_NDS3) || defined (DOXYGEN)
00045 
00046 #include <stdint.h>
00047 
00048 #ifdef __cplusplus
00049 extern "C" {
00050 #endif
00051 
00055 void nds3_init();
00056 
00060 void nds3_reset();
00061 
00067 void nds3_move(uint8_t dir);
00068 
00076 void nds3_measure(uint8_t dir, int8_t step);
00077 
00078 extern uint8_t nds3_distances[181];
00079 
00094 void nds3_read(uint8_t dir, uint8_t step);
00095 
00100 uint8_t nds3_get_pos();
00101 
00106 uint8_t nds3_get_dist();
00107 
00112 uint8_t nds3_get_busy();
00113 
00114 
00118 uint8_t nds3_ddr;
00119 
00123 uint8_t nds3_port;
00124 
00128 uint8_t nds3_pin;
00129 
00133 void nds3_ddr_commit();
00134 
00138 void nds3_port_commit();
00139 
00143 void nds3_pin_update();
00144 
00148 uint16_t nds3_get_analog(uint8_t idx);
00149 
00153 void nds3_move_servo(uint16_t usecs);
00154 
00158 uint16_t nds3_servocalib_hi;
00159 
00163 uint16_t nds3_servocalib_mid;
00164 
00168 uint16_t nds3_servocalib_lo;
00169 
00173 void nds3_servocalib_update();
00174 
00178 void nds3_servocalib_commit();
00179 
00183 uint16_t nds3_distcalib_v0;
00184 
00188 uint16_t nds3_distcalib_d0;
00189 
00193 uint16_t nds3_distcalib_alpha;
00194 
00202 void nds3_distcalib_update();
00203 
00207 void nds3_distcalib_commit();
00208 
00209 
00210 #ifdef __cplusplus
00211 } // extern "C"
00212 #endif
00213 
00214 #endif // NIBO_USE_NDS3
00215 #endif // NIBO_NDS3_H_

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