Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
// /////////////////////////////////////////////////////
// // DO NOT EDIT. This is a machine generated file. //
// /////////////////////////////////////////////////////
/******************************************************************************/
/* */
/* Copyright (C) 2016, FLIR Systems */
/* All rights reserved. */
/* */
/* This document is controlled to FLIR Technology Level 2. The information */
/* contained in this document pertains to a dual use product controlled for */
/* export by the Export Administration Regulations (EAR). Diversion contrary */
/* to US law is prohibited. US Department of Commerce authorization is not */
/* required prior to export or transfer to foreign persons or parties unless */
/* otherwise prohibited. */
/* */
/******************************************************************************/
#include "Client_Packager.h"
static uint32_t commandCount = 0;
// Begin Module: gao
FLR_RESULT CLIENT_pkgGaoSetGainState(const FLR_ENABLE_E data) {
// Allocate buffers with space for marshalled data
uint32_t sendBytes = 4;
const uint8_t sendData[sendBytes];
uint32_t receiveBytes = 1;
uint8_t receiveData[receiveBytes];
uint8_t *outPtr = (uint8_t *)sendData;
//write data to sendData buffer
{ //Block to allow reuse of inVal
if(outPtr >= (sendData+sendBytes)){
return R_SDK_PKG_BUFFER_OVERFLOW;
}
const FLR_ENABLE_E inVal = data;
INT_32ToByte(inVal, (const uint8_t *) outPtr);
outPtr += 4;
}
FLR_RESULT returncode = CLIENT_dispatcher(commandCount++, GAO_SETGAINSTATE, sendData, sendBytes, receiveData, &receiveBytes);
// Check for any errorcode
if((uint32_t) returncode){
return returncode;
}
uint8_t *inPtr = (uint8_t *)receiveData;
return R_SUCCESS;
}// End of CLIENT_pkgGaoSetGainState()
FLR_RESULT CLIENT_pkgGaoGetGainState(FLR_ENABLE_E *data) {
// Allocate buffers with space for marshalled data
uint32_t sendBytes = 0;
const uint8_t sendData[sendBytes];
uint32_t receiveBytes = 4;
uint8_t receiveData[receiveBytes];
uint8_t *outPtr = (uint8_t *)sendData;
FLR_RESULT returncode = CLIENT_dispatcher(commandCount++, GAO_GETGAINSTATE, sendData, sendBytes, receiveData, &receiveBytes);
// Check for any errorcode
if((uint32_t) returncode){
return returncode;
}
uint8_t *inPtr = (uint8_t *)receiveData;
// read data from receiveData buffer
{ //Block to allow reuse of outVal
if(inPtr >= (receiveData+receiveBytes)){
return R_SDK_PKG_BUFFER_OVERFLOW;
}
int32_t outVal;
byteToINT_32( (const uint8_t *) inPtr, &outVal);
*data = (FLR_ENABLE_E)outVal;
inPtr+=4;
}// end of data handling
return R_SUCCESS;
}// End of CLIENT_pkgGaoGetGainState()
FLR_RESULT CLIENT_pkgGaoSetFfcState(const FLR_ENABLE_E data) {
// Allocate buffers with space for marshalled data
uint32_t sendBytes = 4;
const uint8_t sendData[sendBytes];
uint32_t receiveBytes = 1;
uint8_t receiveData[receiveBytes];
uint8_t *outPtr = (uint8_t *)sendData;
//write data to sendData buffer
{ //Block to allow reuse of inVal
if(outPtr >= (sendData+sendBytes)){
return R_SDK_PKG_BUFFER_OVERFLOW;
}
const FLR_ENABLE_E inVal = data;
INT_32ToByte(inVal, (const uint8_t *) outPtr);
outPtr += 4;
}
FLR_RESULT returncode = CLIENT_dispatcher(commandCount++, GAO_SETFFCSTATE, sendData, sendBytes, receiveData, &receiveBytes);
// Check for any errorcode
if((uint32_t) returncode){
return returncode;
}
uint8_t *inPtr = (uint8_t *)receiveData;
return R_SUCCESS;
}// End of CLIENT_pkgGaoSetFfcState()
FLR_RESULT CLIENT_pkgGaoGetFfcState(FLR_ENABLE_E *data) {
// Allocate buffers with space for marshalled data
uint32_t sendBytes = 0;
const uint8_t sendData[sendBytes];
uint32_t receiveBytes = 4;
uint8_t receiveData[receiveBytes];
uint8_t *outPtr = (uint8_t *)sendData;
FLR_RESULT returncode = CLIENT_dispatcher(commandCount++, GAO_GETFFCSTATE, sendData, sendBytes, receiveData, &receiveBytes);
// Check for any errorcode
if((uint32_t) returncode){
return returncode;
}
uint8_t *inPtr = (uint8_t *)receiveData;
// read data from receiveData buffer
{ //Block to allow reuse of outVal
if(inPtr >= (receiveData+receiveBytes)){
return R_SDK_PKG_BUFFER_OVERFLOW;
}
int32_t outVal;
byteToINT_32( (const uint8_t *) inPtr, &outVal);
*data = (FLR_ENABLE_E)outVal;
inPtr+=4;
}// end of data handling
return R_SUCCESS;
}// End of CLIENT_pkgGaoGetFfcState()
FLR_RESULT CLIENT_pkgGaoSetTempCorrectionState(const FLR_ENABLE_E data) {
// Allocate buffers with space for marshalled data
uint32_t sendBytes = 4;
const uint8_t sendData[sendBytes];
uint32_t receiveBytes = 1;
uint8_t receiveData[receiveBytes];
uint8_t *outPtr = (uint8_t *)sendData;
//write data to sendData buffer
{ //Block to allow reuse of inVal
if(outPtr >= (sendData+sendBytes)){
return R_SDK_PKG_BUFFER_OVERFLOW;
}
const FLR_ENABLE_E inVal = data;
INT_32ToByte(inVal, (const uint8_t *) outPtr);
outPtr += 4;
}
FLR_RESULT returncode = CLIENT_dispatcher(commandCount++, GAO_SETTEMPCORRECTIONSTATE, sendData, sendBytes, receiveData, &receiveBytes);
// Check for any errorcode
if((uint32_t) returncode){
return returncode;
}
uint8_t *inPtr = (uint8_t *)receiveData;
return R_SUCCESS;
}// End of CLIENT_pkgGaoSetTempCorrectionState()
FLR_RESULT CLIENT_pkgGaoGetTempCorrectionState(FLR_ENABLE_E *data) {
// Allocate buffers with space for marshalled data
uint32_t sendBytes = 0;
const uint8_t sendData[sendBytes];
uint32_t receiveBytes = 4;
uint8_t receiveData[receiveBytes];
uint8_t *outPtr = (uint8_t *)sendData;
FLR_RESULT returncode = CLIENT_dispatcher(commandCount++, GAO_GETTEMPCORRECTIONSTATE, sendData, sendBytes, receiveData, &receiveBytes);
// Check for any errorcode
if((uint32_t) returncode){
return returncode;
}
uint8_t *inPtr = (uint8_t *)receiveData;
// read data from receiveData buffer
{ //Block to allow reuse of outVal
if(inPtr >= (receiveData+receiveBytes)){
return R_SDK_PKG_BUFFER_OVERFLOW;
Loading full blame...