diff -r fdc24bf62f80 -r 11a82e4fd31b master/ethernet.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/master/ethernet.h Mon Apr 03 14:12:45 2006 +0000 @@ -0,0 +1,51 @@ +/****************************************************************************** + * + * e t h e r n e t . h + * + * Ethernet-over-EtherCAT (EoE) + * + * $Id$ + * + *****************************************************************************/ + +#include + +#include "../include/ecrt.h" +#include "globals.h" +#include "slave.h" +#include "command.h" + +/*****************************************************************************/ + +typedef enum +{ + EC_EOE_IDLE, + EC_EOE_CHECKING, + EC_EOE_FETCHING +} +ec_eoe_state_t; + +/*****************************************************************************/ + +typedef struct +{ + struct list_head list; + ec_slave_t *slave; + ec_eoe_state_t rx_state; +} +ec_eoe_t; + +/*****************************************************************************/ + +void ec_eoe_init(ec_eoe_t *, ec_slave_t *); +void ec_eoe_clear(ec_eoe_t *); +void ec_eoe_run(ec_eoe_t *); +void ec_eoe_print(const ec_eoe_t *); + +/*****************************************************************************/ + +/* Emacs-Konfiguration +;;; Local Variables: *** +;;; c-basic-offset:4 *** +;;; End: *** +*/