Building Controls Virtual Test Bed
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
simulinkSocket.h
Go to the documentation of this file.
1
21
#ifndef _SIMULINKSOCKET_H_
22
#define _SIMULINKSOCKET_H_
23
24
#include <stdio.h>
25
#include "simstruc.h"
26
#include "
defines.h
"
27
28
int16_T
establishBSDSocket
(int16_T* flag);
29
30
int16_T
exchangeDoublesWithBSDSocket
(int16_T*
sockfd
,
31
int16_T* flaWri,
32
int16_T*
flaRea
,
33
int16_T*
nDblWri
,
34
double
* simTimWri,
35
double
dblValWri[],
36
double
*
simTimRea
,
37
double
dblValRea
[]);
38
39
int16_T
closeBSDSocket
(int16_T*
sockfd
, int16_T* doClose);
40
41
#endif
42
43
/*
44
********************************************************************
45
Copyright Notice
46
----------------
47
48
Building Controls Virtual Test Bed (BCVTB) Copyright (c) 2008, The
49
Regents of the University of California, through Lawrence Berkeley
50
National Laboratory (subject to receipt of any required approvals from
51
the U.S. Dept. of Energy). All rights reserved.
52
53
If you have questions about your rights to use or distribute this
54
software, please contact Berkeley Lab's Technology Transfer Department
55
at TTD@lbl.gov
56
57
NOTICE. This software was developed under partial funding from the U.S.
58
Department of Energy. As such, the U.S. Government has been granted for
59
itself and others acting on its behalf a paid-up, nonexclusive,
60
irrevocable, worldwide license in the Software to reproduce, prepare
61
derivative works, and perform publicly and display publicly. Beginning
62
five (5) years after the date permission to assert copyright is obtained
63
from the U.S. Department of Energy, and subject to any subsequent five
64
(5) year renewals, the U.S. Government is granted for itself and others
65
acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide
66
license in the Software to reproduce, prepare derivative works,
67
distribute copies to the public, perform publicly and display publicly,
68
and to permit others to do so.
69
70
71
Modified BSD License agreement
72
------------------------------
73
74
Building Controls Virtual Test Bed (BCVTB) Copyright (c) 2008, The
75
Regents of the University of California, through Lawrence Berkeley
76
National Laboratory (subject to receipt of any required approvals from
77
the U.S. Dept. of Energy). All rights reserved.
78
79
Redistribution and use in source and binary forms, with or without
80
modification, are permitted provided that the following conditions are met:
81
82
1. Redistributions of source code must retain the above copyright
83
notice, this list of conditions and the following disclaimer.
84
2. Redistributions in binary form must reproduce the above copyright
85
notice, this list of conditions and the following disclaimer in
86
the documentation and/or other materials provided with the
87
distribution.
88
3. Neither the name of the University of California, Lawrence
89
Berkeley National Laboratory, U.S. Dept. of Energy nor the names
90
of its contributors may be used to endorse or promote products
91
derived from this software without specific prior written permission.
92
93
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
94
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
95
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
96
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
97
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
98
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
99
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
100
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
101
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
102
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
103
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
104
105
You are under no obligation whatsoever to provide any bug fixes,
106
patches, or upgrades to the features, functionality or performance of
107
the source code ("Enhancements") to anyone; however, if you choose to
108
make your Enhancements available either publicly, or directly to
109
Lawrence Berkeley National Laboratory, without imposing a separate
110
written license agreement for such Enhancements, then you hereby grant
111
the following license: a non-exclusive, royalty-free perpetual license
112
to install, use, modify, prepare derivative works, incorporate into
113
other computer software, distribute, and sublicense such enhancements or
114
derivative works thereof, in binary and source code form.
115
116
********************************************************************
117
*/
sockfd
function sockfd
Definition:
establishClientSocket.m:1
dblValRea
dblValRea
Definition:
exchangeDoublesWithSocket.m:90
closeBSDSocket
int16_T closeBSDSocket(int16_T *sockfd, int16_T *doClose)
Definition:
simulinkSocket.c:65
simTimRea
simTimRea
Definition:
exchangeDoublesWithSocket.m:89
defines.h
Define statements used by the BCVTB C methods.
flaRea
end Get return values from pointers flaRea
Definition:
exchangeDoublesWithSocket.m:88
establishBSDSocket
int16_T establishBSDSocket(int16_T *flag)
Definition:
simulinkSocket.c:23
nDblWri
nDblWri
Definition:
exchangeDoublesWithSocket.m:56
exchangeDoublesWithBSDSocket
int16_T exchangeDoublesWithBSDSocket(int16_T *sockfd, int16_T *flaWri, int16_T *flaRea, int16_T *nDblWri, double *simTimWri, double dblValWri[], double *simTimRea, double dblValRea[])
Definition:
simulinkSocket.c:33
lib
matlab
simulinkSocket.h
Generated on Wed Apr 20 2016 10:24:19 for Building Controls Virtual Test Bed by
1.8.6