00001
00002
00003 #ifndef _REC_ROBOTINO_COM_C_RELAY_H_
00004 #define _REC_ROBOTINO_COM_C_RELAY_H_
00005
00006 #include "rec/robotino/com/c/globals.h"
00007 #include "rec/robotino/com/c/Com.h"
00008
00016 typedef int RelayId;
00017
00018 #define INVALID_RELAYID -1
00019
00025 DLLEXPORT RelayId Relay_construct( unsigned int number );
00026
00032 DLLEXPORT BOOL Relay_destroy( RelayId id );
00033
00038 DLLEXPORT BOOL Relay_setComId( RelayId id, ComId comId );
00039
00047 DLLEXPORT BOOL Relay_setRelayNumber( RelayId id, unsigned int n );
00048
00052 DLLEXPORT unsigned int numRelays();
00053
00060 DLLEXPORT BOOL Relay_setValue( RelayId id, BOOL on );
00061
00062 #endif //_REC_ROBOTINO_COM_C_RELAY_H_