rec::robotino::api2 C interface
Relay.h
Go to the documentation of this file.
1 // Copyright (C) 2004-2008, Robotics Equipment Corporation GmbH
2 
3 #ifndef _REC_ROBOTINO_API2_C_RELAY_H_
4 #define _REC_ROBOTINO_API2_C_RELAY_H_
5 
6 #include "rec/robotino/api2/c/globals.h"
8 
17 typedef int RelayId;
18 
20 #define INVALID_RELAYID -1
21 
27 DLLEXPORT RelayId Relay_construct( unsigned int number );
28 
34 DLLEXPORT BOOL Relay_destroy( RelayId id );
35 
40 DLLEXPORT BOOL Relay_setComId( RelayId id, ComId comId );
41 
49 DLLEXPORT BOOL Relay_setRelayNumber( RelayId id, unsigned int n );
50 
54 DLLEXPORT unsigned int numRelays();
55 
62 DLLEXPORT BOOL Relay_setValue( RelayId id, BOOL on );
63 
64 #endif //_REC_ROBOTINO_API2_C_RELAY_H_
DLLEXPORT RelayId Relay_construct(unsigned int number)
int RelayId
Definition: Relay.h:17
DLLEXPORT unsigned int numRelays()
DLLEXPORT BOOL Relay_setComId(RelayId id, ComId comId)
DLLEXPORT BOOL Relay_destroy(RelayId id)
In "rec/robotino/api2/c/Com.h" you can find functions for manipulating the communication interface to...
DLLEXPORT BOOL Relay_setValue(RelayId id, BOOL on)
DLLEXPORT BOOL Relay_setRelayNumber(RelayId id, unsigned int n)
int ComId
Definition: Com.h:50