2 * Copyright Droids Corporation, Microb Technology, Eirbot (2005)
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * Revision : $Id: encoders_eirbot.h,v 1.3.4.2 2007-05-23 17:18:13 zer0 Exp $
22 /** \file encoders_eirbot.h
23 * \brief universal Interface for incremental coders
26 #ifndef _ENCODERS_EIRBOT_H_
27 #define _ENCODERS_EIRBOT_H_
29 #include <base/utils/aversive.h>
30 #include <encoders_eirbot_config.h>
32 typedef int32_t encoders;
35 * Initialisation of counters, variables
37 void encoders_init(void);
41 * Update counter values, need to be done quite (depends on which counter)
43 void encoders_manage(void);
46 /** Extract counter value */
47 encoders encoders_get_value(uint8_t number);