/ src / client / def / mcpropertywrite.inc
mcpropertywrite.inc
 1  EIBC_LICENSE(
 2  /*
 3      EIBD client library
 4      Copyright (C) 2005-2011 Martin Koegler <mkoegler@auto.tuwien.ac.at>
 5  
 6      This program is free software; you can redistribute it and/or modify
 7      it under the terms of the GNU General Public License as published by
 8      the Free Software Foundation; either version 2 of the License, or
 9      (at your option) any later version.
10  
11      In addition to the permissions in the GNU General Public License, 
12      you may link the compiled version of this file into combinations
13      with other programs, and distribute those combinations without any 
14      restriction coming from the use of this file. (The General Public 
15      License restrictions do apply in other respects; for example, they 
16      cover modification of the file, and distribution when not linked into 
17      a combine executable.)
18  
19      This program is distributed in the hope that it will be useful,
20      but WITHOUT ANY WARRANTY; without even the implied warranty of
21      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22      GNU General Public License for more details.
23  
24      You should have received a copy of the GNU General Public License
25      along with this program; if not, write to the Free Software
26      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27  */
28  )
29  
30  EIBC_COMPLETE (EIB_MC_PropertyWrite,
31    EIBC_GETREQUEST
32    EIBC_CHECKRESULT (EIB_MC_PROP_WRITE, 2)
33    EIBC_RETURN_BUF (2)
34  )
35  
36  EIBC_ASYNC (EIB_MC_PropertyWrite, ARG_UINT8 (obj, ARG_UINT8a (propertyno, ARG_UINT16 (start, ARG_UINT8b (nr_of_elem, ARG_INBUF (buf, ARG_OUTBUF (res, ARG_NONE)))))),
37    EIBC_INIT_SEND (7)
38    EIBC_SETUINT8 (obj, 2)
39    EIBC_SETUINT8 (propertyno, 3)
40    EIBC_SETUINT16 (start, 4)
41    EIBC_SETUINT8 (nr_of_elem, 6)
42    EIBC_SEND_BUF (buf)
43    EIBC_READ_BUF (res) 
44    EIBC_SEND (EIB_MC_PROP_WRITE)
45    EIBC_INIT_COMPLETE (EIB_MC_PropertyWrite)
46  )