From ecc3c0a1f65123a164ee2afeb755a09afa4097c9 Mon Sep 17 00:00:00 2001 From: dufourj Date: Thu, 25 May 2006 01:04:18 +0000 Subject: ES : - gestion des acks pour le barillet. --- n/es-2006/src/ack.h | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'n/es-2006/src/ack.h') diff --git a/n/es-2006/src/ack.h b/n/es-2006/src/ack.h index 98b0dfa..c4bcd12 100644 --- a/n/es-2006/src/ack.h +++ b/n/es-2006/src/ack.h @@ -24,42 +24,31 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // // }}} +#include "common.h" /** Module for telling upper class something important has occured ! */ -/* Do not use, it's only for the main */ -extern uint8_t ack_value; - /** List here what you want to tell to the world and put a description. * You must use a different number for each code and it must be lower than 255 * of course ! */ #define ACK_NOTHING 0 /* Nothing to ack */ #define ACK_CONTACT_FRONT 1 /* Something in the front */ +#define ACK_BARILLET_BALL_FRONT 2 /* A ball has been get from the front + */ +#define ACK_BARILLET_BALL_REAR 3 /* Ball in the rear */ // FIXME, inline ? static ? /** Reset ack status */ -void ack_reset (void) -{ - ack_value = ACK_NOTHING; -} +void ack_reset (void); /** Init to nothing. */ -void init_ack (void) -{ - ack_reset (); -} +void ack_init (void); /* Set an ack */ -void ack_set (uint8_t ack_code) -{ - ack_value = ack_code; -} +void ack_set (uint8_t ack_code); /* Get current ack */ -uint8_t ack_get (void) -{ - return ack_value; -} +uint8_t ack_get (void); #endif // ack_h -- cgit v1.2.3