From acf4617c9f264dc5813abb4b305d8c1d76ad19b0 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Tue, 3 Apr 2012 18:35:01 +0200 Subject: digital/beacon: file restructuration (license header) --- digital/beacon/src/sensors.h | 45 +++++++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 7 deletions(-) (limited to 'digital/beacon/src/sensors.h') diff --git a/digital/beacon/src/sensors.h b/digital/beacon/src/sensors.h index 33e96daf..0f868d65 100644 --- a/digital/beacon/src/sensors.h +++ b/digital/beacon/src/sensors.h @@ -1,12 +1,43 @@ +/* sensors.h */ +/* Beacon sensors management. {{{ + * + * Copyright (C) 2012 Florent Duchon + * + * APBTeam: + * Web: http://apbteam.org/ + * Email: team AT apbteam DOT org + * + * 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; either version 2 of the License, or + * (at your option) any later version. + * + * 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, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * }}} */ + #ifndef _SENSORS_H #define _SENSORS_H -void init_ILS(); -void irq_laser(void); -void irq_ILS(void); -void init_sensors(void); -int calcul_temps(); -void regul_vitesse(int temps); -void control_motor_ms(int value); +#define CODEWHEEL_CPR 500 + +/* This function initializes the laser pin input and associated interrupt */ +void sensors_laser_init(void); + +/* This function initializes the codewheel optical sensors and associated interrupt */ +void sensors_codewheel_init(void); + +/* This function returns the wheel position */ +int sensors_codewheel_get_value(void); + +/* IRQ vector for Laser Interrupt */ +void sensors_laser_irq_vector(void); #endif \ No newline at end of file -- cgit v1.2.3