Gocator API
 All Classes Files Functions Variables Typedefs Macros Modules Pages
GoSensor.h
Go to the documentation of this file.
1 /**
2  * @file GoSensor.h
3  * @brief Declares the GoSensor class.
4  *
5  * @internal
6  * Copyright (C) 2016-2020 by LMI Technologies Inc.
7  * Licensed under the MIT License.
8  * Redistributed files must retain the above copyright notice.
9  */
10 #ifndef GO_SENSOR_H
11 #define GO_SENSOR_H
12 
13 #include <GoSdk/GoSdkDef.h>
14 #include <GoSdk/GoSetup.h>
15 #include <GoSdk/GoPartModel.h>
16 #include <GoSdk/GoReplay.h>
17 #include <GoSdk/GoTransform.h>
18 #include <GoSdk/GoSensorInfo.h>
19 #include <GoSdk/GoGeoCal.h>
22 #include <GoSdk/Outputs/GoOutput.h>
23 #include <GoSdk/Tools/GoTools.h>
24 
25 #define GO_SENSOR_LIVE_JOB_NAME "_live.job" //<<< Represents the active live job on the sensor
26 #define GO_SENSOR_LIVE_LOG_NAME "_live.log" //<<< Represents the log file on the sensor
27 #define GO_SENSOR_LIVE_REPLAY "_live.rec" //<<< Represents the current recording on the sensor
28 #define GO_SENSOR_LIVE_REPLAY_STREAM "_livestream.rec" //<<< Represents the current recording stream on the sensor
29 
30 /**
31  * @class GoSensor
32  * @extends kObject
33  * @ingroup GoSdk
34  * @brief Represents a Gocator sensor.
35  */
36 typedef kObject GoSensor;
37 
38 /**
39  * Initiates a sensor configuration, model file, and transformation synchronization
40  * if modifications are present.
41  *
42  * @public @memberof GoSetup
43  * @version Introduced in firmware 4.0.10.27
44  * @param sensor GoSensor object.
45  * @return Operation status.
46  */
47 GoFx(kStatus) GoSensor_Flush(GoSensor sensor);
48 
49 /**
50  * Configures a sensor's network address settings.
51  *
52  * WARNING! This operation writes to flash storage.
53  * Review the user manual for implications.
54  *
55  * This function uses UDP broadcasts for sensor configuration; the sensor does not need to
56  * be connected, and can be on a different subnet than the client.
57  *
58  * The sensor will automatically reboot if the address is successfully changed.
59  *
60  * @public @memberof GoSensor
61  * @version Introduced in firmware 4.0.10.27
62  * @param sensor GoSensor object.
63  * @param info New address settings.
64  * @param wait Should this function block until the sensor finishes rebooting?
65  * @return Operation status.
66  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
67  */
68 GoFx(kStatus) GoSensor_SetAddress(GoSensor sensor, const GoAddressInfo* info, kBool wait);
69 
70 /**
71  * Retrieves the sensor's network address settings.
72  *
73  * @public @memberof GoSensor
74  * @version Introduced in firmware 4.0.10.27
75  * @param sensor GoSensor object.
76  * @param info Receives current address configuration.
77  * @return Operation status.
78  */
79 GoFx(kStatus) GoSensor_Address(GoSensor sensor, GoAddressInfo* info);
80 
81 /**
82  * Creates a connection to the sensor.
83  *
84  * @public @memberof GoSensor
85  * @version Introduced in firmware 4.0.10.27
86  * @param sensor GoSensor object.
87  * @return Operation status.
88  */
89 GoFx(kStatus) GoSensor_Connect(GoSensor sensor);
90 
91 /**
92  * Disconnects from the sensor. Do not call this function when state is locked
93  * with GoSensor_LockState().
94  *
95  * @public @memberof GoSensor
96  * @version Introduced in firmware 4.0.10.27
97  * @param sensor GoSensor object.
98  * @return Operation status.
99  */
100 GoFx(kStatus) GoSensor_Disconnect(GoSensor sensor);
101 
102 /**
103  * Reports whether the sensor is currently connected. If sensors are temporarily unreachable, they do not leave
104  * isConnected state. You can use GoSensor_IsResponsive for this and optionaly call GoSensor_Disconnect if
105  * unresponsive for too long.
106  *
107  * @public @memberof GoSensor
108  * @version Introduced in firmware 4.0.10.27
109  * @param sensor GoSensor object.
110  * @return kTRUE if the sensor is connected, kFALSE otherwise.
111  */
112 GoFx(kBool) GoSensor_IsConnected(GoSensor sensor);
113 
114 /**
115  * Reports whether the sensor is currently responsive.
116  *
117  * @public @memberof GoSensor
118  * @version Introduced in firmware 5.0.2.0
119  * @param sensor GoSensor object.
120  * @return kTRUE if the sensor is responsive kFALSE otherwise.
121  */
122 GoFx(kBool) GoSensor_IsResponsive(GoSensor sensor);
123 
124 /**
125  * Reports whether the connected sensor's protocol version is compatible with the SDK's protocol version.
126  *
127  * @public @memberof GoSensor
128  * @version Introduced in firmware 4.4.4.14
129  * @param sensor GoSensor object.
130  * @return kTRUE if the sensor is compatible, kFALSE otherwise.
131  */
132 GoFx(kBool) GoSensor_IsCompatible(GoSensor sensor);
133 
134 /**
135  * Refreshes sensor state.
136  *
137  * Unresponsive sensors will be disconnected, and canceled sensors will be reconnected.
138  * Sensors in any other state will discard all locally-cached information.
139  *
140  * This function should be used to update sensors in the GO_SENSOR_INCONSISTENT state. This
141  * state can arise due to buddy changes performed by remote sensors (e.g. a main sensor boots
142  * and claims ownership of a buddy sensor, but the buddy sensor has already been detected and
143  * loaded as a main sensor by the client).
144  *
145  * @public @memberof GoSensor
146  * @version Introduced in firmware 4.0.10.27
147  * @param sensor GoSensor object.
148  * @return kTRUE if the sensor is connected; kFALSE otherwise.
149  */
150 GoFx(kStatus) GoSensor_Refresh(GoSensor sensor);
151 
152 /**
153  * Assigns a buddy sensor.
154  *
155  * This function is asynchronous, use GoSensor_AddBuddyBlocking() for synchronous version.
156  *
157  * NOTE: The provided buddy sensor handle must already be connected.
158  *
159  * @public @memberof GoSensor
160  * @version Introduced in firmware 4.0.10.27
161  * @param sensor GoSensor object.
162  * @param buddy Sensor to be assigned as buddy.
163  * @return Operation status.
164  * @see GoSensor_Connect, GoSensor_HasBuddy, GoSensor_BuddyId, GoSensor_RemoveBuddy
165  */
166 GoFx(kStatus) GoSensor_AddBuddy(GoSensor sensor, GoSensor buddy);
167 
168 /**
169 * Synchronously assigns a buddy sensor.
170 *
171 * NOTE: The provided buddy sensor handle must already be connected.
172 *
173 * @public @memberof GoSensor
174 * @version Introduced in firmware 4.8.1.65
175 * @param sensor GoSensor object.
176 * @param buddy Sensor to be assigned as buddy.
177 * @return Operation status.
178 * @see GoSensor_Connect, GoSensor_HasBuddy, GoSensor_BuddyId, GoSensor_RemoveBuddy
179 */
181 
182 /**
183  * Removes the current buddy sensor.
184  *
185  * @public @memberof GoSensor
186  * @version Introduced in firmware 4.0.10.27
187  * @param sensor GoSensor object.
188  * @return Operation status.
189  */
191 
192 /**
193  * Reports whether a buddy had been assigned.
194  *
195  * @public @memberof GoSensor
196  * @version Introduced in firmware 4.0.10.27
197  * @param sensor GoSensor object.
198  * @return kTRUE if sensor has a buddy; kFALSE otherwise.
199  */
200 GoFx(kBool) GoSensor_HasBuddy(GoSensor sensor);
201 
202 /**
203  * Gets the buddy sensor's device ID.
204  *
205  * @public @memberof GoSensor
206  * @version Introduced in firmware 4.0.10.27
207  * @param sensor GoSensor object.
208  * @return Buddy device ID (or k32U_NULL if not assigned).
209  */
210 GoFx(k32u) GoSensor_BuddyId(GoSensor sensor);
211 
212 /**
213  * Gets the sensor's scan mode.
214  *
215  * @public @memberof GoSensor
216  * @version Introduced in firmware 4.0.10.27
217  * @param sensor GoSensor object.
218  * @return Scan mode.
219  */
220 GoFx(GoMode) GoSensor_ScanMode(GoSensor sensor);
221 
222 /**
223  * Enables or disables the sensor's data channel. After using GoSensor_EnableData function, SDK application is responsible
224  * for disposing of the GoDataSet objects that hold the data received from the sensor on the data connection.
225  *
226  * @public @memberof GoSensor
227  * @version Introduced in firmware 4.0.10.27
228  * @param sensor GoSensor object.
229  * @param enable kTRUE to enable, or kFALSE to disable.
230  * @return Operation status.
231  */
232 GoFx(kStatus) GoSensor_EnableData(GoSensor sensor, kBool enable);
233 
234 /**
235  * Starts the sensor.
236  *
237  * @public @memberof GoSensor
238  * @version Introduced in firmware 4.0.10.27
239  * @param sensor GoSensor object.
240  * @return Operation status.
241  */
242 GoFx(kStatus) GoSensor_Start(GoSensor sensor);
243 
244 /**
245  * Checks if the sensor is ready to start, if all assigned buddies are connected.
246  *
247  * @public @memberof GoSensor
248  * @version Introduced in firmware 5.2.18.3
249  * @param sensor GoSensor object.
250  * @return Operation status.
251  */
252 GoFx(kBool) GoSensor_CanStart(GoSensor sensor);
253 
254 /**
255  * Starts the sensor at a scheduled value.
256  *
257  * @public @memberof GoSensor
258  * @version Introduced in firmware 4.1.3.106
259  * @param sensor GoSensor object.
260  * @param value Scheduled start value. uS when time triggered and ticks when encoder triggered.
261  * @return Operation status.
262  * @see GoSetup_SetTriggerSource, GoSetup_TriggerSource, GoSystem_Timestamp, GoSystem_Encoder
263  */
264 GoFx(kStatus) GoSensor_ScheduledStart(GoSensor sensor, k64s value);
265 
266 /**
267  * Stops the sensor.
268  *
269  * @public @memberof GoSensor
270  * @version Introduced in firmware 4.0.10.27
271  * @param sensor GoSensor object.
272  * @return Operation status.
273  */
274 GoFx(kStatus) GoSensor_Stop(GoSensor sensor);
275 
276 /**
277  * Performs a sensor snapshot.
278  *
279  * A snapshot starts the sensor, takes a scan, and immediately stops the sensor.
280  * Because the sensor is stopped after every snapshot, some asynchronous activities such
281  * as digital output may not have enough time to occur. Algorithms that maintain memory
282  * between scans would also be reset for every snapshot. The only guarantee that
283  * can be made is that the data is delivered over the SDK.
284  *
285  * Because of these limitations, GoSensor_Trigger should usually be used instead.
286  *
287  * @public @memberof GoSensor
288  * @version Introduced in firmware 5.2.1.x
289  * @param sensor GoSensor object.
290  * @return Operation status.
291  */
292 GoFx(kStatus) GoSensor_Snapshot(GoSensor sensor);
293 
294 /**
295  * Perform alignment using the configured alignment type and target.
296  *
297  * NOTE: This operation will result in a sensor start for the duration of the
298  * alignment. It can be canceled via GoSensor_Stop. This function's operation
299  * status does not correspond to the actual alignment result. In order to
300  * retrieve the alignment result, you must enable the data channel before calling
301  * this function, receive an alignment data message and then check its status.
302  *
303  * WARNING! This operation may (depending on alignment reference) write to flash storage.
304  * Review the user manual for implications.
305  *
306  * @public @memberof GoSensor
307  * @version Introduced in firmware 4.0.10.27
308  * @param sensor GoSensor object.
309  * @return Operation status.
310  * @see GoSensor_EnableData, GoSystem_ReceiveData, GoSetup_AlignmentType, GoSetup_AlignmentMovingTarget, GoSetup_AlignmentStationaryTarget, GoAlignMsg_Status, GoSensor_Stop
311  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
312  */
313 GoFx(kStatus) GoSensor_Align(GoSensor sensor);
314 
315 
316 /**
317  * Clears the current sensor alignment.
318  *
319  * WARNING! This operation writes to flash storage.
320  * Review the user manual for implications.
321  *
322  * @public @memberof GoSensor
323  * @version Introduced in firmware 4.1.3.106
324  * @param sensor GoSensor object.
325  * @return Operation status.
326  * @see GoSensor_Align
327  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
328  */
330 
331 
332 /**
333  * Perform an exposure auto set.
334  *
335  * NOTE: This operation will result in a sensor start for the duration of the
336  * exposure AutoSet. A successful operation status does NOT modify the configuration.
337  * You must retrieve the resulting exposure value and set it for the appropriate
338  * exposure setting. This involves enabling the data connection prior to running
339  * exposure auto set and then receiving an exposure auto set message, which
340  * you can then use to query the status and access the resulting value.
341  *
342  * @public @memberof GoSensor
343  * @version Introduced in firmware 4.0.10.27
344  * @param sensor GoSensor object.
345  * @param role Determines which device to apply changes to. Use GO_ROLE_MAIN or GOROLE_BUDDYIDX(buddyidx). See GoRole for more details.
346  * @return Operation status.
347  * @see GoRole, GoSensor_EnableData, GoSystem_ReceiveData, GoExposureCalMsg_Status, GoExposureCalMsg_Exposure
348  */
349 GoFx(kStatus) GoSensor_ExposureAutoSet(GoSensor sensor, GoRole role);
350 
351 /**
352  * Gets the alignment state of the sensor.
353  *
354  * @public @memberof GoSensor
355  * @version Introduced in firmware 4.0.10.27
356  * @param sensor GoSensor object.
357  * @return A GoAlignmentState.
358  */
360 
361 
362 /**
363  * Sets the alignment reference of the sensor.
364  *
365  * @public @memberof GoSensor
366  * @version Introduced in firmware 4.0.10.27
367  * @param sensor GoSensor object.
368  * @param reference The alignment reference value to set.
369  * @return Operation status.
370  */
372 
373 /**
374  * Gets the alignment reference of the sensor.
375  *
376  * @public @memberof GoSensor
377  * @version Introduced in firmware 4.0.10.27
378  * @param sensor GoSensor object.
379  * @param reference A pointer that will hold the current alignment reference value.
380  * @return Operation status.
381  */
383 
384 /**
385  * Reboots the main sensor and any connected buddy sensors.
386  *
387  * @public @memberof GoSensor
388  * @version Introduced in firmware 4.0.10.27
389  * @param sensor GoSensor object.
390  * @param wait kTRUE to wait for reboot and then reconnect.
391  * @return Operation status.
392  */
393 GoFx(kStatus) GoSensor_Reset(GoSensor sensor, kBool wait);
394 
395 /**
396  * Resets the encoder value. NOTE: This is only possible with a direct encoder
397  * connection to a sensor. Resetting the encoder value when connected to a Master
398  * device will not work.
399  *
400  * @public @memberof GoSensor
401  * @version Introduced in firmware 4.5.3.57
402  * @param sensor GoSensor object.
403  * @return Operation status.
404  */
406 
407 /**
408  * Aborts ongoing sensor communication.
409  *
410  * This method asynchronously aborts ongoing communication; the next time that any
411  * I/O operation blocks for an extended period of time, it will be terminated. This method
412  * is thread-safe.
413  *
414  * In order to resume communication, call GoSensor_Refresh or GoSensor_Connect.
415  *
416  * @public @memberof GoSensor
417  * @version Introduced in firmware 4.0.10.27
418  * @param sensor GoSensor object.
419  * @return Operation status.
420  */
421 GoFx(kStatus) GoSensor_Cancel(GoSensor sensor);
422 
423 /**
424  * Gets the current time stamp (common among all synchronized sensors).
425  *
426  * @public @memberof GoSensor
427  * @version Introduced in firmware 4.0.10.27
428  * @param sensor GoSensor object.
429  * @param time Receives the current time stamp(us).
430  * @return Operation status.
431  */
432 GoFx(kStatus) GoSensor_Timestamp(GoSensor sensor, k64u* time);
433 
434 /**
435  * Gets the current encoder count from the sensor. This is useful when an encoder value is needed
436  * while the sensor is not started and thus not producing data with encoder values in the stamp.
437  *
438  * Note that this function sends a command to the sensor, where the current encoder value is read
439  * and then sent back in a reply message. So this is not the most accurate method of reading the
440  * encoder value. To read the encoder value of a specific frame of data, use the encoder value
441  * from the GoStamp received as GO_DATA_MESSAGE_TYPE_STAMP.
442  *
443  * @public @memberof GoSensor
444  * @version Introduced in firmware 4.0.10.27
445  * @param sensor GoSensor object.
446  * @param encoder Receives the encoder count (ticks).
447  * @return Operation status.
448  */
449 GoFx(kStatus) GoSensor_Encoder(GoSensor sensor, k64s* encoder);
450 
451 /**
452  * Sends a software trigger to the sensor.
453  *
454  * This method is used in conjunction with sensors that are configured to accept
455  * software triggers. The sensor must be running (e.g. by calling GoSensor_Start)
456  * for triggers to be accepted.
457  *
458  * When the trigger mode is set to Software, this command will trigger individual
459  * frames in Profile or Surface mode. For G2 sensors with other trigger modes,
460  * this command can also be used to trigger Fixed Length surface generation when
461  * the Fixed Length Start Trigger option is set to "Software".
462  *
463  * @public @memberof GoSensor
464  * @version Introduced in firmware 4.0.10.27
465  * @param sensor GoSensor object.
466  * @return Operation status.
467  * @see GoSetup_TriggerSource, GoSetup_SetTriggerSource
468  */
469 GoFx(kStatus) GoSensor_Trigger(GoSensor sensor);
470 
471 /**
472  * Schedules a digital output.
473  *
474  * This method requires that the output is configured to trigger on software control.
475  *
476  * @public @memberof GoSensor
477  * @version Introduced in firmware 4.0.10.27
478  * @param sensor GoSensor object.
479  * @param index The digital output index.
480  * @param target The time or position target (us or mm), depending on GoDomain. Ignored if
481  * GoDigital_ScheduleEnabled is false or GoDigital_SignalType is pulsed.
482  * @param value The value of scheduled output (0-Low or 1-High). Ignored if output
483  * GoDigital_SignalType is pulsed.
484  * @return Operation status.
485  */
486 GoFx(kStatus) GoSensor_EmitDigital(GoSensor sensor, k16u index, k64s target, k8u value);
487 
488 /**
489  * Schedules an analog output.
490  *
491  * This method requires that the output be configured to trigger on software control.
492  * NOTE: It is not possible to schedule a continuous output. The operation will
493  * fail accordingly if attempted.
494  *
495  * @public @memberof GoSensor
496  * @version Introduced in firmware 4.0.10.27
497  * @param sensor GoSensor object.
498  * @param index The analog output index.
499  * @param target The time or position target (us or mm), depending on GoDomain. Ignored if
500  * GoAnalog_ScheduleEnabled is false.
501  * @param value The value of the scheduled output (uA).
502  * @return Operation status.
503  */
504 GoFx(kStatus) GoSensor_EmitAnalog(GoSensor sensor, k16u index, k64s target, k32s value);
505 
506 /**
507  * Gets the number of files available from the connected sensor. This includes files that may not be visible through the web interface.
508  *
509  * @public @memberof GoSensor
510  * @version Introduced in firmware 4.0.10.27
511  * @param sensor GoSensor object.
512  * @return File count.
513  */
514 GoFx(kSize) GoSensor_FileCount(GoSensor sensor);
515 
516 /**
517  * Gets the file name at the specified index.
518  *
519  * @public @memberof GoSensor
520  * @version Introduced in firmware 4.0.10.27
521  * @param sensor GoSensor object.
522  * @param index Index of the desired file name.
523  * @param name Receives the name of the file.
524  * @param capacity Capacity of the file name buffer.
525  * @return Operation status.
526  */
527 GoFx(kStatus) GoSensor_FileNameAt(GoSensor sensor, kSize index, kChar* name, kSize capacity);
528 
529 /**
530  * Uploads a file to the connected sensor. The following is a list of
531  * macros representing common files used in this operation:
532  *
533  * @li GO_SENSOR_LIVE_JOB - Represents "_live.job".
534  * @li GO_SENSOR_LIVE_REPLAY - Represents the recording file, "_live.rec".
535  *
536  * WARNING! This operation writes to flash storage.
537  * Review the user manual for implications.
538  *
539  * @public @memberof GoSensor
540  * @version Introduced in firmware 4.0.10.27
541  * @param sensor GoSensor object.
542  * @param sourcePath Source file system path for the file to be uploaded.
543  * @param destName Destination name for the uploaded file (maximum 63 characters).
544  * @return Operation status.
545  * @remark Calling this function will result in writing operations to flash storage if the destination is not a live file. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
546  */
547 GoFx(kStatus) GoSensor_UploadFile(GoSensor sensor, const kChar* sourcePath, const kChar* destName);
548 
549 /**
550  * Downloads a file from the connected sensor. The following is a list of
551  * macros representing common files used in this operation:
552  *
553  * @li GO_SENSOR_LIVE_JOB - Represents "_live.job".
554  * @li GO_SENSOR_LIVE_REPLAY - Represents the recording file, "_live.rec".
555  *
556  * File names of saved jobs may also be specified.
557  *
558  * @public @memberof GoSensor
559  * @version Introduced in firmware 4.0.10.27
560  * @param sensor GoSensor object.
561  * @param sourceName Source name of the file to be downloaded.
562  * @param destPath Destination file system path for the file to be downloaded.
563  * @return Operation status.
564  */
565 GoFx(kStatus) GoSensor_DownloadFile(GoSensor sensor, const kChar* sourceName, const kChar* destPath);
566 
567 /**
568  * Copies a file within the connected sensor.
569  *
570  * WARNING! This operation writes to flash storage.
571  * Review the user manual for implications.
572  *
573  * @public @memberof GoSensor
574  * @version Introduced in firmware 4.0.10.27
575  * @param sensor GoSensor object.
576  * @param sourceName Source name for the file to be copied.
577  * @param destName Destination name for the file (maximum 63 characters).
578  * @return Operation status.
579  * @remark Calling this function can result in writing operations to flash storage if the destination is not a live file(e.g. "_live.job"). Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
580  * @see GoSensor_UploadFile()
581  */
582 GoFx(kStatus) GoSensor_CopyFile(GoSensor sensor, const kChar* sourceName, const kChar* destName);
583 
584 /**
585  * Deletes a file within the connected sensor.
586  *
587  * @public @memberof GoSensor
588  * @version Introduced in firmware 4.0.10.27
589  * @param sensor GoSensor object.
590  * @param name Name of the file to be deleted.
591  * @return Operation status.
592  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
593  */
594 GoFx(kStatus) GoSensor_DeleteFile(GoSensor sensor, const kChar* name);
595 
596 /**
597  * Checks whether the specified file is present on the sensor.
598  *
599  * WARNING! This operation writes to flash storage.
600  * Review the user manual for implications.
601  *
602  * @public @memberof GoSensor
603  * @version Introduced in firmware 4.0.10.27
604  * @param sensor GoSensor object.
605  * @param name Name of the file to be checked.
606  * @return Operation status.
607  */
608 GoFx(kBool) GoSensor_FileExists(GoSensor sensor, const kChar* name);
609 
610 /**
611  * Gets the available storage space remaining for user files.
612  *
613  * @public @memberof GoSensor
614  * @version
615  * @param sensor GoSensor object.
616  * @return Storage space available.
617  */
619 
620 /**
621  * Gets the storage space used for user files.
622  *
623  * @public @memberof GoSensor
624  * @version
625  * @param sensor GoSensor object.
626  * @return Storage space used.
627  */
629 
630 /**
631  * Sets a default job file to be loaded on boot.
632  *
633  * WARNING! This operation writes to flash storage.
634  * Review the user manual for implications.
635  *
636  * @public @memberof GoSensor
637  * @version Introduced in firmware 4.0.10.27
638  * @param sensor GoSensor object.
639  * @param fileName Name of the default file.
640  * @return Operation status.
641  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
642  */
643 GoFx(kStatus) GoSensor_SetDefaultJob(GoSensor sensor, const kChar* fileName);
644 
645 /**
646  * Gets the name of the default job file to be loaded on boot.
647  *
648  * @public @memberof GoSensor
649  * @version Introduced in firmware 4.0.10.27
650  * @param sensor GoSensor object.
651  * @param fileName Receives name of the default file.
652  * @param capacity Name buffer capacity.
653  * @return Operation status.
654  */
655 GoFx(kStatus) GoSensor_DefaultJob(GoSensor sensor, kChar* fileName, kSize capacity);
656 
657 /**
658  * Gets the name of the loaded job file and whether it has been modified since loading.
659  *
660  * @public @memberof GoSensor
661  * @version Introduced in firmware 4.0.10.27
662  * @param sensor GoSensor object.
663  * @param fileName Receives name of the loaded file.
664  * @param capacity Name buffer capacity.
665  * @param changed Receives the status of whether the file has changed.
666  * @return Operation status.
667  */
668 GoFx(kStatus) GoSensor_LoadedJob(GoSensor sensor, kChar* fileName, kSize capacity, kBool* changed);
669 
670 /**
671  * Logs into the sensor using the specified user name and password.
672  *
673  * Logging in is not required in order to programmatically control a sensor. The Gocator log-in feature is
674  * intended only to support administrative user interfaces, by allowing the username and password to be
675  * stored in the sensor.
676  *
677  * @public @memberof GoSensor
678  * @version Introduced in firmware 4.0.10.27
679  * @param sensor GoSensor object.
680  * @param user User account.
681  * @param password User password.
682  * @return Operation status.
683  */
684 GoFx(kStatus) GoSensor_LogIn(GoSensor sensor, GoUser user, const kChar* password);
685 
686 /**
687  * Changes the password associated with the specified user account.
688  *
689  * WARNING! This operation writes to flash storage.
690  * Review the user manual for implications.
691  *
692  * @public @memberof GoSensor
693  * @version Introduced in firmware 4.0.10.27
694  * @param sensor GoSensor object.
695  * @param user User account.
696  * @param password New password.
697  * @return Operation status.
698  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
699  */
700 GoFx(kStatus) GoSensor_ChangePassword(GoSensor sensor, GoUser user, const kChar* password);
701 
702 /**
703  * Upgrades sensor firmware.
704  *
705  * This function will block until the upgrade is completed.
706  *
707  * WARNING! This operation writes to flash storage.
708  * Review the user manual for implications.
709  *
710  * This function results in flash storage modifications. If modifications are interrupted due to
711  * power loss, the sensor may reboot into Rescue mode.
712  *
713  * The sensor does not need to be connected to perform an upgrade.
714  *
715  * @public @memberof GoSensor
716  * @version Introduced in firmware 4.0.10.27 and updated in 4.3.3.124
717  * @param sensor GoSensor object.
718  * @param sourcePath Local file system path to the upgrade file.
719  * @param onUpdate Callback function to receive progress updates, or kNULL.
720  * @param context Context handle to be passed to the upgrade callback.
721  * @return Operation status.
722  */
723 GoFx(kStatus) GoSensor_Upgrade(GoSensor sensor, const kChar* sourcePath, GoUpgradeFx onUpdate, kPointer context);
724 
725 /**
726  * Creates a backup of sensor files and downloads the backup to the specified location.
727  *
728  * @public @memberof GoSensor
729  * @version Introduced in firmware 4.0.10.27
730  * @param sensor GoSensor object.
731  * @param destPath Local file system path for the saved backup file.
732  * @return Operation status.
733  */
734 GoFx(kStatus) GoSensor_Backup(GoSensor sensor, const kChar* destPath);
735 
736 /**
737  * Restores a backup of sensor files.
738  *
739  * WARNING! This operation writes to flash storage.
740  * Review the user manual for implications.
741  *
742  * @public @memberof GoSensor
743  * @version Introduced in firmware 4.0.10.27
744  * @param sensor GoSensor object.
745  * @param sourcePath Local file system path of the saved backup file.
746  * @return Operation status.
747  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
748  */
749 GoFx(kStatus) GoSensor_Restore(GoSensor sensor, const kChar* sourcePath);
750 
751 /**
752  * Restores factory default settings.
753  *
754  * WARNING! This operation writes to flash storage.
755  * Review the user manual for implications.
756  *
757  * @public @memberof GoSensor
758  * @version Introduced in firmware 4.0.10.27
759  * @param sensor GoSensor object.
760  * @param restoreAddress kTRUE to restore the factory default IP address; False otherwise.
761  * @return Operation status.
762  * @remark Calling this function will result in writing operations to flash storage. Should the process be disrupted due to power loss or other factors, the sensor may enter Rescue mode.
763  */
764 GoFx(kStatus) GoSensor_RestoreDefaults(GoSensor sensor, kBool restoreAddress);
765 
766 /**
767  * Gets the GoSetup instance associated with the sensor.
768  *
769  * @public @memberof GoSensor
770  * @version Introduced in firmware 4.0.10.27
771  * @param sensor GoSensor object.
772  * @return A GoSetup object module
773  */
774 GoFx(GoSetup) GoSensor_Setup(GoSensor sensor);
775 
776 /**
777  * Gets the sensor's tools module, used for measurement configuration.
778  *
779  * @public @memberof GoSensor
780  * @version Introduced in firmware 4.0.10.27
781  * @param sensor GoSensor object.
782  * @return Measurement configuration module.
783  */
784 GoFx(GoTools) GoSensor_Tools(GoSensor sensor);
785 
786 /**
787  * Gets the output module, used for output configuration.
788  *
789  * @public @memberof GoSensor
790  * @version Introduced in firmware 4.0.10.27
791  * @param sensor GoSensor object.
792  * @return Output configuration module.
793  */
794 GoFx(GoOutput) GoSensor_Output(GoSensor sensor);
795 
796 /**
797  * Gets the transform module, used for transformation configuration.
798  *
799  * @public @memberof GoSensor
800  * @version Introduced in firmware 4.0.10.27
801  * @param sensor GoSensor object.
802  * @return Transformation configuration module.
803  */
805 
806 /**
807  * Gets the replay module, used for replay configuration.
808  *
809  * @public @memberof GoSensor
810  * @version Introduced in firmware 4.5.3.57
811  * @param sensor GoSensor object.
812  * @return Replay configuration module.
813  */
814 GoFx(GoReplay) GoSensor_Replay(GoSensor sensor);
815 
816 /**
817  * Gets the device identifier associated with this sensor.
818  *
819  * @public @memberof GoSensor
820  * @version Introduced in firmware 4.0.10.27
821  * @param sensor GoSensor object.
822  * @return The sensor's device ID.
823  */
824 GoFx(k32u) GoSensor_Id(GoSensor sensor);
825 
826 /**
827  * Gets the part number associated with this sensor.
828  *
829  * @public @memberof GoSensor
830  * @version Introduced in firmware 5.3.17.23
831  * @param sensor GoSensor object.
832  * @param partNumber A character array pointer.
833  * @param capacity The character array capacity.
834  * @return Operation status.
835  */
836 GoFx(kStatus) GoSensor_PartNumber(GoSensor sensor, kChar* partNumber, kSize capacity);
837 
838 /**
839  * Gets the model display name associated with this sensor.
840  *
841  * @public @memberof GoSensorInfo
842  * @version Introduced in firmware 5.3.17.23
843  * @param sensor GoSensor object.
844  * @param modelDisplayName A character array pointer.
845  * @param capacity The character array capacity.
846  * @return Operation status.
847  */
848 GoFx(kStatus) GoSensor_ModelDisplayName(GoSensor sensor, kChar* modelDisplayName, kSize capacity);
849 
850 /**
851  * Reports the current state of the sensor.
852  *
853  * @public @memberof GoSensor
854  * @version Introduced in firmware 4.0.10.27
855  * @param sensor GoSensor object.
856  * @return Sensor state.
857  */
858 GoFx(GoState) GoSensor_State(GoSensor sensor);
859 
860 /**
861  * Reports the current states of the sensor.
862  *
863  * @public @memberof GoSensor
864  * @version Introduced in firmware 4.0.10.27
865  * @param sensor GoSensor object.
866  * @param states Reference to updated states.
867  * @return Operation status.
868  */
869 GoFx(kStatus) GoSensor_States(GoSensor sensor, GoStates* states);
870 
871 /**
872  * Gets the sensor's current role within the system.
873  *
874  * @public @memberof GoSensor
875  * @version Introduced in firmware 4.0.10.27
876  * @param sensor GoSensor object.
877  * @return Sensor role.
878  */
879 GoFx(GoRole) GoSensor_Role(GoSensor sensor);
880 
881 /**
882  * Reports the user account associated with the current user.
883  *
884  * @public @memberof GoSensor
885  * @version Introduced in firmware 4.0.10.27
886  * @param sensor GoSensor object.
887  * @return User account id.
888  */
889 GoFx(GoUser) GoSensor_User(GoSensor sensor);
890 
891 /**
892  * Gets the sensor's protocol version.
893  *
894  * @public @memberof GoSensor
895  * @version Introduced in firmware 4.0.10.27
896  * @param sensor GoSensor object.
897  * @return Protocol version.
898  */
900 
901 /**
902  * Gets the sensor's firmware version.
903  *
904  * @public @memberof GoSensor
905  * @version Introduced in firmware 4.0.10.27
906  * @param sensor GoSensor object.
907  * @return Firmware version.
908  */
910 
911 /**
912  * Sets the recording state of the sensor.
913  *
914  * @public @memberof GoSensor
915  * @version Introduced in firmware 4.0.10.27
916  * @param sensor GoSensor object.
917  * @param enable Enables or disables recording.
918  * @return Operation status.
919  */
920 GoFx(kStatus) GoSensor_EnableRecording(GoSensor sensor, kBool enable);
921 
922 /**
923  * Gets the recording state of the sensor.
924  *
925  * @public @memberof GoSensor
926  * @version Introduced in firmware 4.0.10.27
927  * @param sensor GoSensor object.
928  * @return kTRUE if recording is enabled. kFALSE otherwise.
929  */
931 
932 /**
933  * Sets the input source of the sensor.
934  *
935  * @public @memberof GoSensor
936  * @version Introduced in firmware 4.0.10.27
937  * @param sensor GoSensor object.
938  * @param source The input source to use.
939  * @return Operation status.
940  */
942 
943 /**
944  * Gets the input source currently used by the sensor.
945  *
946  * @public @memberof GoSensor
947  * @version Introduced in firmware 4.0.10.27
948  * @param sensor GoSensor object.
949  * @return A GoInputSource.
950  */
952 
953 /**
954  * Simulates the current frame in the live recording buffer.
955  *
956  * @public @memberof GoSensor
957  * @version Introduced in firmware 4.0.10.27
958  * @param sensor GoSensor object.
959  * @param isBufferValid kTRUE if the source simulation buffer was valid. kFALSE otherwise.
960  * @return Operation status.
961  */
962 GoFx(kStatus) GoSensor_Simulate(GoSensor sensor, kBool* isBufferValid);
963 
964 
965 /**
966  * Advances one frame from the current replay position.
967  *
968  * @public @memberof GoSensor
969  * @version Introduced in firmware 4.0.10.27
970  * @param sensor GoSensor object.
971  * @param direction Direction with which to step.
972  * @return Operation status.
973  */
974 GoFx(kStatus) GoSensor_PlaybackStep(GoSensor sensor, GoSeekDirection direction);
975 
976 /**
977  * Sets the current frame position for a replay.
978  *
979  * @public @memberof GoSensor
980  * @version Introduced in firmware 4.0.10.27
981  * @param sensor GoSensor object.
982  * @param position The frame position to seek.
983  * @return Operation status.
984  */
985 GoFx(kStatus) GoSensor_PlaybackSeek(GoSensor sensor, kSize position);
986 
987 /**
988  * Gets the current replay frame position.
989  *
990  * @public @memberof GoSensor
991  * @version Introduced in firmware 4.0.10.27
992  * @param sensor GoSensor object.
993  * @param position The current frame position index.
994  * @param count The frame count.
995  * @return Operation status.
996  */
997 GoFx(kStatus) GoSensor_PlaybackPosition(GoSensor sensor, kSize* position, kSize* count);
998 
999 /**
1000  * Clears the replay buffer.
1001  *
1002  * @public @memberof GoSensor
1003  * @version Introduced in firmware 4.0.10.27
1004  * @param sensor GoSensor object.
1005  * @return Operation status.
1006  */
1008 
1009 /**
1010  * Resets the measurement statistics reported by the health channel
1011  *
1012  * @public @memberof GoSensor
1013  * @version Introduced in firmware 4.0.10.27
1014  * @param sensor GoSensor object.
1015  * @return Operation status.
1016  */
1018 
1019 /**
1020  * Exports the current frame of a replay in the form of a bitmap.
1021  *
1022  * @public @memberof GoSensor
1023  * @version Introduced in firmware 4.0.10.27
1024  * @param sensor GoSensor object.
1025  * @param type The type of data to export.
1026  * @param source The device data source to export from.
1027  * @param dstFileName The destination file name of the exported bitmap file.
1028  * @return Operation status.
1029  */
1032  GoDataSource source,
1033  const kChar* dstFileName);
1034 
1035 /**
1036  * Exports replay data in CSV format.
1037  *
1038  * @public @memberof GoSensor
1039  * @version Introduced in firmware 4.0.10.27
1040  * @param sensor GoSensor object.
1041  * @param dstFileName The destination file name of the exported CSV file.
1042  * @return Operation status.
1043  */
1044 GoFx(kStatus) GoSensor_ExportCsv(GoSensor sensor, const kChar* dstFileName);
1045 
1046 /**
1047  * Returns an enumerator value representing the current sensor's family.
1048  *
1049  * @public @memberof GoSensor
1050  * @version Introduced in firmware 4.0.10.27
1051  * @param sensor GoSensor object.
1052  * @return A GoFamily value.
1053  */
1054 GoFx(GoFamily) GoSensor_Family(GoSensor sensor);
1055 
1056 /**
1057  * Clears the log file (_live.log).
1058  *
1059  * @public @memberof GoSensor
1060  * @version Introduced in firmware 4.0.10.27
1061  * @param sensor GoSensor object.
1062  * @return Operation status.
1063  */
1064 GoFx(kStatus) GoSensor_ClearLog(GoSensor sensor);
1065 
1066 /**
1067  * Sets the AutoStart enabled state of the sensor.
1068  *
1069  * @public @memberof GoSensor
1070  * @version Introduced in firmware 4.0.10.27
1071  * @param sensor GoSensor object.
1072  * @param enable The AutoStart enabled state to use.
1073  * @return Operation status.
1074  */
1075 GoFx(kStatus) GoSensor_EnableAutoStart(GoSensor sensor, kBool enable);
1076 
1077 /**
1078  * Gets the AutoStart enabled state currently used by the sensor.
1079  *
1080  * @public @memberof GoSensor
1081  * @version Introduced in firmware 4.0.10.27
1082  * @param sensor GoSensor object.
1083  * @return kTRUE if auto start is enabled and kFALSE otherwise.
1084  */
1086 
1087 /**
1088 * Set sensor voltage settings (only on G3210)
1089 *
1090 * @public @memberof GoSensor
1091 * @version Introduced in firmware 4.7.5.25
1092 * @param sensor GoSensor object.
1093 * @param voltage Either 48V or 24V operation
1094 * @param cableLength When in 24V operation mode the cable length (meter) must also be supplied
1095 * @return Operation status.
1096 */
1097 GoFx(kStatus) GoSensor_SetVoltage(GoSensor sensor, GoVoltageSetting voltage, k64f cableLength);
1098 
1099 /**
1100 * Get the sensor voltage settings (only on G3210)
1101 *
1102 * @public @memberof GoSensor
1103 * @version Introduced in firmware 4.7.5.25
1104 * @param sensor GoSensor object.
1105 * @param voltage Destination to store voltage (can be kNULL)
1106 * @param cableLength Destination to store cable length (meter) (can be kNULL)
1107 * @return Operation status.
1108 */
1109 GoFx(kStatus) GoSensor_GetVoltage(GoSensor sensor, GoVoltageSetting *voltage, k64f *cableLength);
1110 
1111 /**
1112 * Sets the quick edit state of the sensor.
1113 *
1114 * @public @memberof GoSensor
1115 * @version Introduced in firmware 4.7.11.5
1116 * @param sensor GoSensor object.
1117 * @param enable The Quick Edit enabled state to use.
1118 * @return Operation status.
1119 */
1120 GoFx(kStatus) GoSensor_EnableQuickEdit(GoSensor sensor, kBool enable);
1121 
1122 /**
1123 * Gets the quick edit state of the sensor
1124 *
1125 * @public @memberof GoSensor
1126 * @version Introduced in firmware 4.7.11.5
1127 * @param sensor GoSensor object.
1128 * @return kTRUE if Quick Edit is enabled, kFALSE otherwise.
1129 */
1131 
1132 /**
1133  * Gets the count of remote sensor information held by the sensor.
1134  *
1135  * @public @memberof GoSensor
1136  * @version Introduced in firmware 4.0.10.27
1137  * @param sensor GoSensor object.
1138  * @return The remote sensor information count.
1139  */
1141 
1142 /**
1143  * Gets the remote sensor information at the given index.
1144  *
1145  * @public @memberof GoSensor
1146  * @version Introduced in firmware 4.0.10.27
1147  * @param sensor GoSensor object.
1148  * @param index The index of the remote sensor information to retrieve.
1149  * @return A handle to the selected remote sensor information or kNULL if an invalid index is provided.
1150  */
1151 GoFx(GoSensorInfo) GoSensor_RemoteInfoAt(GoSensor sensor, kSize index);
1152 
1153 /**
1154  * Return the number of files contained in the specified path with an optional extension filter applied.
1155  *
1156  * @public @memberof GoSensor
1157  * @version Introduced in firmware 4.1.3.106
1158  * @param sensor GoSensor object.
1159  * @param extensionFilter An optional extension filter to apply. Send "" to not apply a filter.
1160  * @param path The file system path to retrieve the file count for.
1161  * @param isRecursive kTRUE to include files in sub-folders of the path and kFALSE to only count files in the immediate path.
1162  * @return The number of files contained in the specified path with an optional extension filter applied.
1163  */
1164 GoFx(kSize) GoSensor_DirectoryFileCount(GoSensor sensor, const kChar* extensionFilter, const kChar* path, kBool isRecursive);
1165 
1166 /**
1167  * Retrieves the file name at the specified index for a given path and optional extension filter.
1168  *
1169  * @public @memberof GoSensor
1170  * @version Introduced in firmware 4.1.3.106
1171  * @param sensor GoSensor object.
1172  * @param extensionFilter An optional extension filter to apply. Send "" to not apply a filter.
1173  * @param path The file system path to retrieve the file count for.
1174  * @param isRecursive kTRUE to include files in sub-folders of the path and kFALSE to only count files in the immediate path.
1175  * @param index The index of the file name to retrieve.
1176  * @param fileName The pointer to a character array of which to store the retrieve file name.
1177  * @param capacity The maximum capacity of the character array.
1178  * @return Operation status.
1179  */
1180 GoFx(kStatus) GoSensor_DirectoryFileNameAt(GoSensor sensor, const kChar* extensionFilter, const kChar* path, kBool isRecursive, kSize index, kChar* fileName, kSize capacity);
1181 
1182 /**
1183  * Defines the signature for a custom data message handler.
1184  *
1185  * @public @memberof GoSensor
1186  * @version Introduced in firmware 4.1.3.106
1187  * @param context A pointer to an application context to use with the provided data set.
1188  * @param sensor GoSensor object.
1189  * @param dataSet The data set.
1190  * @return Operation status.
1191  * @see GoSensor_SetDataHandler
1192  */
1193 typedef kStatus (kCall* GoSensorDataSetFx)(kPointer context, GoSensor sensor, GoDataSet dataSet);
1194 
1195 /**
1196  * Sets the data callback function to be used upon receipt of data.
1197  *
1198  * @public @memberof GoSensor
1199  * @version Introduced in firmware 4.1.3.106
1200  * @param sensor GoSensor object.
1201  * @param function The function pointer to use when data has been received from the sensor. Send kNULL to revert back to the GoSystem data set storage behavior.
1202  * @param context The context to use with the function pointer.
1203  * @return Operation status.
1204  * @see GoSensorDataSetFx
1205  */
1206 GoFx(kStatus) GoSensor_SetDataHandler(GoSensor sensor, GoSensorDataSetFx function, kPointer context);
1207 
1208 
1209 /**
1210  * Creates a part matching model based on the current part data.
1211  *
1212  * @public @memberof GoSensor
1213  * @version Introduced in firmware 4.2.4.7
1214  * @param sensor GoSensor object.
1215  * @param name The intended name of the part match model.
1216  * @return Operation status.
1217  */
1218 GoFx(kStatus) GoSensor_PartMatchCreateModel(GoSensor sensor, const kChar* name);
1219 
1220 /**
1221  * Detect the edges of the specified part model.
1222  *
1223  * @public @memberof GoSensor
1224  * @version Introduced in firmware 4.2.4.7
1225  * @param sensor GoSensor object.
1226  * @param name The name of the part match model to detect edges on.
1227  * @param sensitivity The sensitivity to use for model edge detection.
1228  * @return Operation status.
1229  */
1230 GoFx(kStatus) GoSensor_PartMatchDetectModelEdges(GoSensor sensor, const kChar* name, k16u sensitivity);
1231 
1232 /**
1233  * Returns a handle to a part model based on a given name.
1234  *
1235  * @public @memberof GoSensor
1236  * @version Introduced in firmware 4.2.4.7
1237  * @param sensor GoSensor object.
1238  * @param name The name of the part match model to retrieve.
1239  * @return A GoPartModel handle.
1240  */
1241 GoFx(GoPartModel) GoSensor_PartMatchModel(GoSensor sensor, const kChar* name);
1242 
1243 /**
1244  * Returns the number of part match models present in the currently loaded job.
1245  *
1246  * @public @memberof GoSensor
1247  * @version Introduced in firmware 4.2.4.7
1248  * @param sensor GoSensor object.
1249  * @return The count of part match models in the currently loaded job.
1250  */
1252 
1253 /**
1254  * Returns a handle to a part model based on a given index.
1255  *
1256  * @public @memberof GoSensor
1257  * @version Introduced in firmware 4.2.4.7
1258  * @param sensor GoSensor object.
1259  * @param index The index of the part model to retrieve.
1260  * @return A GoPartModel handle.
1261  */
1263 
1264 /**
1265  * Sets the runtime variables from the provided starting index to the specified length
1266  * with the values contained in the provided array.
1267  *
1268  * @public @memberof GoSensor
1269  * @version Introduced in firmware 4.5.3.57
1270  * @param sensor GoSensor object.
1271  * @param startIndex The starting index of the runtime variable values to set.
1272  * @param length The number of runtime variables to set/the length of the array parameter.
1273  * @param values A reference to an array which contains the intended runtime variable values.
1274  * @return Operation status.
1275  */
1276 GoFx(kStatus) GoSensor_SetRuntimeVariables(GoSensor sensor, kSize startIndex, kSize length, k32s* values);
1277 
1278 /**
1279  * Returns the number of runtime variables available on the device.
1280  *
1281  * @public @memberof GoSensor
1282  * @version Introduced in firmware 4.5.3.57
1283  * @param sensor GoSensor object.
1284  * @return The runtime variable count of the device.
1285  */
1287 
1288 /**
1289  * Gets the values associated with a given runtime variable starting index and length.
1290  *
1291  * @public @memberof GoSensor
1292  * @version Introduced in firmware 4.5.3.57
1293  * @param sensor GoSensor object.
1294  * @param startIndex The starting index of the runtime variable values to retrieve.
1295  * @param length The number of runtime variables to retrieve.
1296  * @param values A reference to an array which will hold the retrieved runtime variable values.
1297  * @return Operation status.
1298  */
1299 GoFx(kStatus) GoSensor_GetRuntimeVariables(GoSensor sensor, kSize startIndex, kSize length, k32s* values);
1300 
1301 /**
1302  * Gets the value associated with a given runtime variable index.
1303  *
1304  * @public @memberof GoSensor
1305  * @version Introduced in firmware 4.5.3.57
1306  * @param sensor GoSensor object.
1307  * @param index The index of the runtime variable value to retrieve.
1308  * @param value A reference to be updated with the runtime variable value.
1309  * @return Operation status.
1310  */
1311 GoFx(kStatus) GoSensor_GetRuntimeVariableAt(GoSensor sensor, kSize index, k32s* value);
1312 
1313 /**
1314  * Starts recording to a stream.
1315  *
1316  * NOTE: Before calling this function, the sensor should already be running and
1317  * recording. GoSensor_StopRecordingStream() should be called before executing
1318  * any other sensor commands, with the exception of GoSensor_IsRecordingStreaming().
1319  *
1320  * @public @memberof GoSensor
1321  * @version Introduced in firmware 4.6.4.66
1322  * @param sensor GoSensor object.
1323  * @param destFile A local file path to store the .rec data.
1324  * @return Operation status.
1325  */
1326 GoFx(kStatus) GoSensor_StartRecordingStream(GoSensor sensor, kChar* destFile);
1327 
1328 /**
1329  * Stops recording to a stream.
1330  *
1331  * @public @memberof GoSensor
1332  * @version Introduced in firmware 4.6.4.66
1333  * @param sensor GoSensor object.
1334  * @return Operation status.
1335  */
1337 
1338 /**
1339  * Reports whether or not recording is streaming.
1340  *
1341  * @public @memberof GoSensor
1342  * @version Introduced in firmware 4.6.4.66
1343  * @param sensor GoSensor object.
1344  * @return kTRUE if recording is streaming, kFALSE otherwise.
1345  */
1347 
1348 /**
1349 * Gets the buddy at a given index.
1350 *
1351 * @public @memberof GoSensorInfo
1352 * @version Introduced in firmware 4.6.4.66
1353 * @param info GoSensorInfo object.
1354 * @param index index of buddy to retrieve.
1355 * @return Device state.
1356 */
1357 GoFx(GoSensorInfo) GoSensor_BuddiesAt(GoSensor info, k32u index);
1358 
1359 /**
1360 * Gets the number of buddies in the sytem.
1361 *
1362 * @public @memberof GoSensor
1363 * @version Introduced in firmware 4.6.4.66
1364 * @param info GoSensor object.
1365 * @return Device state.
1366 */
1368 
1369 /**
1370 * returns true if the system has any buddies.
1371 *
1372 * @public @memberof GoSensor
1373 * @version Introduced in firmware 4.6.4.66
1374 * @param info GoSensor object.
1375 * @return Device state.
1376 */
1377 GoFx(kBool) GoSensor_HasBuddies(GoSensor info);
1378 
1379 /**
1380 * returns the GeoCal object for querying or Null if it does not exist.
1381 *
1382 * @public @memberof GoSensor
1383 * @version Introduced in firmware 4.7.0.130
1384 * @param info GoSensor object.
1385 * @param geoCal Output: A reference to be updated with the GoGeoCal object
1386 * @return Status of operation
1387 */
1388 GoFx(kStatus) GoSensor_GeoCal(GoSensor info, GoGeoCal *geoCal);
1389 
1390 /**
1391  ** Sets the Data Port.
1392  *
1393  * @public @memberof GoSensor
1394  * @version Introduced in firmware 4.8.2.76
1395  * @param sensor GoSensor object.
1396  * @param port Port number to be used
1397  * @return Status of operation
1398  */
1399 GoFx(kStatus) GoSensor_SetDataPort(GoSensor sensor, k32u port);
1400 
1401 /**
1402  * returns the Data Port.
1403  *
1404  * @public @memberof GoSensor
1405  * @version Introduced in firmware 4.8.2.76
1406  * @param sensor GoSensor object.
1407  * @return Port Number
1408  */
1409 GoFx(k32u) GoSensor_DataPort(GoSensor sensor);
1410 
1411 /**
1412  * Sets the Health Port.
1413  *
1414  * @public @memberof GoSensor
1415  * @version Introduced in firmware 4.8.2.76
1416  * @param sensor GoSensor object.
1417  * @param port Port number to be used
1418  * @return Status of operation
1419  */
1420 GoFx(kStatus) GoSensor_SetHealthPort(GoSensor sensor, k32u port);
1421 
1422 /**
1423  * returns the Health Port.
1424  *
1425  * @public @memberof GoSensor
1426  * @version Introduced in firmware 4.8.2.76
1427  * @param sensor GoSensor object.
1428  * @return Port Number
1429  */
1430 GoFx(k32u) GoSensor_HealthPort(GoSensor sensor);
1431 
1432 /**
1433  ** Sets the Control Port.
1434  *
1435  * @public @memberof GoSensor
1436  * @version Introduced in firmware 4.8.2.76
1437  * @param sensor GoSensor object.
1438  * @param port Port number to be used
1439  * @return Status of operation
1440  */
1441 GoFx(kStatus) GoSensor_SetControlPort(GoSensor sensor, k32u port);
1442 
1443 /**
1444  * returns the Control Port.
1445  *
1446  * @public @memberof GoSensor
1447  * @version Introduced in firmware 4.8.2.76
1448  * @param sensor GoSensor object.
1449  * @return Port Number
1450  */
1451 GoFx(k32u) GoSensor_ControlPort(GoSensor sensor);
1452 
1453 /**
1454  * Sets the Upgrade Port.
1455  *
1456  * @public @memberof GoSensor
1457  * @version Introduced in firmware 4.8.2.76
1458  * @param sensor GoSensor object.
1459  * @param port Port number to be used
1460  * @return Status of operation
1461  */
1462 GoFx(kStatus) GoSensor_SetUpgradePort(GoSensor sensor, k32u port);
1463 
1464 /**
1465  * returns the Upgrade Port.
1466  *
1467  * @public @memberof GoSensor
1468  * @version Introduced in firmware 4.8.2.76
1469  * @param sensor GoSensor object.
1470  * @return Port Number
1471  */
1472 GoFx(k32u) GoSensor_UpgradePort(GoSensor sensor);
1473 
1474 /**
1475 * Waits for all buddies to be connected within a specific timeout.
1476 *
1477 * @public @memberof GoSensor
1478  * @version Introduced in firmware 5.2.18.3
1479 * @param sensor GoSensor object.
1480 * @param timeout a timeout in milliseconds to wait for all required buddies to get connected
1481 * @return Operational status: kOK if all required buddies are connected within specified timeout; otherwise kERROR_TIMEOUT
1482 */
1483 GoFx(kStatus) GoSensor_WaitForBuddies(GoSensor sensor, k64u timeout);
1484 
1485 /**
1486 * Connects and logs into the sensor using the specified user name and password.
1487 * Once security protection is enabled logging in is required in order to programmatically control a sensor.
1488 * This must be used to connect to the sensor instead of anonymous connect method that fails in case security is enabled.
1489 *
1490 * @public @memberof GoSensor
1491  * @version Introduced in firmware 5.2.18.3
1492 * @param sensor GoSensor object.
1493 * @param user User account
1494 * @param password User password
1495 * @return Operational status: kOK if funcions could complete with given login information;
1496 * otherwise GS_ERROR_AUTHENTICATION indicating unauthorized access
1497 */
1498 GoFx(kStatus) GoSensor_ConnectAndLogin(GoSensor sensor, GoUser user, const kChar* password);
1499 
1500 /**
1501 * Sets sensor's security level. This will enabled/disable security protection.
1502 * Only authorized users can change security level that can deny access to specific objects/files to anonymous users
1503 *
1504 * @public @memberof GoSensor
1505  * @version Introduced in firmware 5.2.18.3
1506 * @param sensor GoSensor object.
1507 * @param security new security level
1508 * @return Operational status: kOK if funcions could complete with given login information;
1509 * otherwise GS_ERROR_AUTHENTICATION indicating unauthorized access
1510 */
1512 
1513 /**
1514  * Sets a sensor flag value.
1515  *
1516  * Sensor flags are an advanced feature that gives the user control over some internal
1517  * system parameters and experimental features. These flags are provided only for the
1518  * purposes of experimentation and demonstration, and may be changed or removed from
1519  * one firwmare version to another.
1520  *
1521  * @public @memberof GoSensor
1522  * @version Introduced in firmware 5.2.18.3
1523  * @param sensor GoControl object.
1524  * @param name Name of the flag.
1525  * @param value Value of the flag (in text).
1526  * @return Operation status.
1527  */
1528 GoFx(kStatus) GoSensor_SetFlag(GoSensor sensor, const kChar* name, const kChar* value);
1529 
1530 /**
1531  * Gets a sensor flag value. See GoSensor_SetFlag for more details.
1532  *
1533  * @public @memberof GoSensor
1534  * @version Introduced in firmware 5.2.18.3
1535  * @param sensor GoControl object.
1536  * @param name Name of the flag.
1537  * @param value String object to receive the value (in text).
1538  * @return Operation status.
1539  */
1540 GoFx(kStatus) GoSensor_GetFlag(GoSensor sensor, const kChar* name, kString value);
1541 
1542 /**
1543 * Returns the acceleration state of a sensor. The state can be used by
1544 * acceleration applications to determine if the
1545 * sensor is available for acceleration or is already accelerated by a host.
1546 *
1547 * @public @memberof GoSensor
1548  * @version Introduced in firmware 5.2.18.3
1549 * @param sensor GoSensor object.
1550 * @return Acceleration state.
1551 */
1553 
1554 /**
1555 * Returns the port numbers used by an accelerated sensor, including web port.
1556 * Can be used by acceleration applications to get the ports used by an
1557 * accelerated sensor.
1558 *
1559 * @public @memberof GoSensor
1560  * @version Introduced in firmware 5.2.18.3
1561 * @param sensor GoSensor object.
1562 * @return Port numbers used by sensor.
1563 */
1565 
1566 /**
1567 * Returns the operational mode of the sensor. This can be used by an
1568 * acceleration application to determine if the sensor is a virtual sensor,
1569 * standalone sensor or an accelerated sensor mode.
1570 *
1571 * @public @memberof GoSensor
1572  * @version Introduced in firmware 5.2.18.3
1573 * @param sensor GoSensor object.
1574 * @return Sensor operational mode.
1575 */
1577 
1578 /**
1579 * Returns the physical sensor IP address when sensor is accelerated.
1580 *
1581 * @public @memberof GoSensor
1582  * @version Introduced in firmware 5.2.18.3
1583 * @param sensor GoSensor object.
1584 * @param ipAddress Destination to store the IP Address.
1585 * @return Operational status.
1586 */
1587 GoFx(kStatus) GoSensor_AccelSensorIpAddress(GoSensor sensor, kIpAddress* ipAddress);
1588 
1589 #include <GoSdk/GoSensor.x.h>
1590 
1591 #endif
GoDiscoveryOpMode GoSensor_AccelOpMode(GoSensor sensor)
Returns the operational mode of the sensor.
kVersion GoSensor_FirmwareVersion(GoSensor sensor)
Gets the sensor's firmware version.
kBool GoSensor_FileExists(GoSensor sensor, const kChar *name)
Checks whether the specified file is present on the sensor.
kStatus GoSensor_RestoreDefaults(GoSensor sensor, kBool restoreAddress)
Restores factory default settings.
GoReplay GoSensor_Replay(GoSensor sensor)
Gets the replay module, used for replay configuration.
kStatus GoSensor_PlaybackPosition(GoSensor sensor, kSize *position, kSize *count)
Gets the current replay frame position.
Sensor state, login, alignment information, recording state, playback source, uptime, playback information, and auto-start setting state.
Definition: GoSdkDef.h:760
kStatus GoSensor_StopRecordingStream(GoSensor sensor)
Stops recording to a stream.
Ports used from a source device.
Definition: GoSdkDef.h:801
Represents a data input source.
Represents read-only sensor information.
Represents a part model configuration.
kStatus GoSensor_ExportBitmap(GoSensor sensor, GoReplayExportSourceType type, GoDataSource source, const kChar *dstFileName)
Exports the current frame of a replay in the form of a bitmap.
kStatus GoSensor_SetAlignmentReference(GoSensor sensor, GoAlignmentRef reference)
Sets the alignment reference of the sensor.
kStatus GoSensor_ResetEncoder(GoSensor sensor)
Resets the encoder value.
kStatus GoSensor_SetUpgradePort(GoSensor sensor, k32u port)
Sets the Upgrade Port.
Represents a playback seek direction.
Represents the replay export source type.
k64u GoSensor_UserStorageUsed(GoSensor sensor)
Gets the storage space used for user files.
kStatus(kCall * GoSensorDataSetFx)(kPointer context, GoSensor sensor, GoDataSet dataSet)
Defines the signature for a custom data message handler.
Definition: GoSensor.h:1193
kStatus GoSensor_EnableAutoStart(GoSensor sensor, kBool enable)
Sets the AutoStart enabled state of the sensor.
kStatus GoSensor_ClearReplayData(GoSensor sensor)
Clears the replay buffer.
kStatus GoSensor_WaitForBuddies(GoSensor sensor, k64u timeout)
Waits for all buddies to be connected within a specific timeout.
kStatus GoSensor_SetControlPort(GoSensor sensor, k32u port)
Sets the Control Port.
kStatus GoSensor_SetRuntimeVariables(GoSensor sensor, kSize startIndex, kSize length, k32s *values)
Sets the runtime variables from the provided starting index to the specified length with the values c...
kStatus GoSensor_Simulate(GoSensor sensor, kBool *isBufferValid)
Simulates the current frame in the live recording buffer.
kStatus GoSensor_ClearLog(GoSensor sensor)
Clears the log file (_live.log).
Declares the GoGeoCal class.
kStatus GoSensor_Backup(GoSensor sensor, const kChar *destPath)
Creates a backup of sensor files and downloads the backup to the specified location.
kSize GoSensor_FileCount(GoSensor sensor)
Gets the number of files available from the connected sensor.
kBool GoSensor_HasBuddies(GoSensor info)
returns true if the system has any buddies.
kStatus GoSensor_Trigger(GoSensor sensor)
Sends a software trigger to the sensor.
Represents the supported Gocator hardware families.
kStatus GoSensor_SetVoltage(GoSensor sensor, GoVoltageSetting voltage, k64f cableLength)
Set sensor voltage settings (only on G3210)
Represents a user role. Use GO_ROLE_MAIN or GOROLE_BUDDYIDX(buddyidx)
kStatus GoSensor_ConnectAndLogin(GoSensor sensor, GoUser user, const kChar *password)
Connects and logs into the sensor using the specified user name and password.
kStatus GoSensor_GetFlag(GoSensor sensor, const kChar *name, kString value)
Gets a sensor flag value.
GoAlignmentState GoSensor_AlignmentState(GoSensor sensor)
Gets the alignment state of the sensor.
Declares the GoOutput class.
kStatus GoSensor_Refresh(GoSensor sensor)
Refreshes sensor state.
kStatus GoSensor_PartMatchCreateModel(GoSensor sensor, const kChar *name)
Creates a part matching model based on the current part data.
kStatus GoSensor_ClearAlignment(GoSensor sensor)
Clears the current sensor alignment.
kStatus GoSensor_Restore(GoSensor sensor, const kChar *sourcePath)
Restores a backup of sensor files.
Represents a data source.
kStatus GoSensor_PlaybackSeek(GoSensor sensor, kSize position)
Sets the current frame position for a replay.
Represents a replay configuration.
GoPartModel GoSensor_PartMatchModelAt(GoSensor sensor, kSize index)
Returns a handle to a part model based on a given index.
kStatus GoSensor_SetFlag(GoSensor sensor, const kChar *name, const kChar *value)
Sets a sensor flag value.
kStatus GoSensor_Snapshot(GoSensor sensor)
Performs a sensor snapshot.
Represents either 48V or 24V (with cable length) operation. Only relevant on G3210.
Declares the GoDataSet class.
kStatus GoSensor_PlaybackStep(GoSensor sensor, GoSeekDirection direction)
Advances one frame from the current replay position.
GoSensorAccelState GoSensor_AccelState(GoSensor sensor)
Returns the acceleration state of a sensor.
Declares the GoDiscoveryExtInfo class and related types.
k32u GoSensor_ControlPort(GoSensor sensor)
returns the Control Port.
Declares the GoSensorInfo class.
kStatus GoSensor_UploadFile(GoSensor sensor, const kChar *sourcePath, const kChar *destName)
Uploads a file to the connected sensor.
Represents an alignment state.
kStatus GoSensor_Address(GoSensor sensor, GoAddressInfo *info)
Retrieves the sensor's network address settings.
kStatus GoSensor_LoadedJob(GoSensor sensor, kChar *fileName, kSize capacity, kBool *changed)
Gets the name of the loaded job file and whether it has been modified since loading.
kStatus GoSensor_FileNameAt(GoSensor sensor, kSize index, kChar *name, kSize capacity)
Gets the file name at the specified index.
kStatus GoSensor_DownloadFile(GoSensor sensor, const kChar *sourceName, const kChar *destPath)
Downloads a file from the connected sensor.
Represents operational mode of the main controller responding to the discovery protocol.
Represents output configuration.
kStatus GoSensor_DefaultJob(GoSensor sensor, kChar *fileName, kSize capacity)
Gets the name of the default job file to be loaded on boot.
kStatus GoSensor_SetDataHandler(GoSensor sensor, GoSensorDataSetFx function, kPointer context)
Sets the data callback function to be used upon receipt of data.
kStatus GoSensor_AddBuddyBlocking(GoSensor sensor, GoSensor buddy)
Synchronously assigns a buddy sensor.
Essential SDK declarations.
kStatus GoSensor_DirectoryFileNameAt(GoSensor sensor, const kChar *extensionFilter, const kChar *path, kBool isRecursive, kSize index, kChar *fileName, kSize capacity)
Retrieves the file name at the specified index for a given path and optional extension filter...
kBool GoSensor_IsCompatible(GoSensor sensor)
Reports whether the connected sensor's protocol version is compatible with the SDK's protocol version...
GoFamily GoSensor_Family(GoSensor sensor)
Returns an enumerator value representing the current sensor's family.
kStatus GoSensor_GetVoltage(GoSensor sensor, GoVoltageSetting *voltage, k64f *cableLength)
Get the sensor voltage settings (only on G3210)
k32u GoSensor_BuddyId(GoSensor sensor)
Gets the buddy sensor's device ID.
kStatus GoSensor_EnableRecording(GoSensor sensor, kBool enable)
Sets the recording state of the sensor.
GoInputSource GoSensor_InputSource(GoSensor sensor)
Gets the input source currently used by the sensor.
GoPartModel GoSensor_PartMatchModel(GoSensor sensor, const kChar *name)
Returns a handle to a part model based on a given name.
kStatus GoSensor_LogIn(GoSensor sensor, GoUser user, const kChar *password)
Logs into the sensor using the specified user name and password.
GoState GoSensor_State(GoSensor sensor)
Reports the current state of the sensor.
kStatus GoSensor_ModelDisplayName(GoSensor sensor, kChar *modelDisplayName, kSize capacity)
Gets the model display name associated with this sensor.
Declares the GoTransform class.
kStatus GoSensor_PartMatchDetectModelEdges(GoSensor sensor, const kChar *name, k16u sensitivity)
Detect the edges of the specified part model.
kBool GoSensor_IsRecordingStreaming(GoSensor sensor)
Reports whether or not recording is streaming.
kStatus GoSensor_ExportCsv(GoSensor sensor, const kChar *dstFileName)
Exports replay data in CSV format.
kStatus GoSensor_GetRuntimeVariableAt(GoSensor sensor, kSize index, k32s *value)
Gets the value associated with a given runtime variable index.
k32u GoSensor_UpgradePort(GoSensor sensor)
returns the Upgrade Port.
kStatus GoSensor_Flush(GoSensor sensor)
Initiates a sensor configuration, model file, and transformation synchronization if modifications are...
kStatus GoSensor_DeleteFile(GoSensor sensor, const kChar *name)
Deletes a file within the connected sensor.
Represents a collection of data channel or health channel messages.
k32u GoSensor_DataPort(GoSensor sensor)
returns the Data Port.
kStatus GoSensor_Disconnect(GoSensor sensor)
Disconnects from the sensor.
GoTransform GoSensor_Transform(GoSensor sensor)
Gets the transform module, used for transformation configuration.
Represents a collection of tools.
kStatus GoSensor_ExposureAutoSet(GoSensor sensor, GoRole role)
Perform an exposure auto set.
GoSetup GoSensor_Setup(GoSensor sensor)
Gets the GoSetup instance associated with the sensor.
Declares the GoPartModel and GoPartModelEdge class.
GoTools GoSensor_Tools(GoSensor sensor)
Gets the sensor's tools module, used for measurement configuration.
k32u GoSensor_HealthPort(GoSensor sensor)
returns the Health Port.
kStatus GoSensor_Cancel(GoSensor sensor)
Aborts ongoing sensor communication.
kStatus GoSensor_RemoveBuddy(GoSensor sensor)
Removes the current buddy sensor.
GoMode GoSensor_ScanMode(GoSensor sensor)
Gets the sensor's scan mode.
Represents a user id.
kStatus GoSensor_EmitAnalog(GoSensor sensor, k16u index, k64s target, k32s value)
Schedules an analog output.
kStatus GoSensor_AlignmentReference(GoSensor sensor, GoAlignmentRef *reference)
Gets the alignment reference of the sensor.
kStatus GoSensor_ClearMeasurementStats(GoSensor sensor)
Resets the measurement statistics reported by the health channel.
kStatus GoSensor_EnableQuickEdit(GoSensor sensor, kBool enable)
Sets the quick edit state of the sensor.
Represents an alignment reference.
kStatus GoSensor_Start(GoSensor sensor)
Starts the sensor.
kStatus GoSensor_Align(GoSensor sensor)
Perform alignment using the configured alignment type and target.
GoUser GoSensor_User(GoSensor sensor)
Reports the user account associated with the current user.
kStatus GoSensor_Encoder(GoSensor sensor, k64s *encoder)
Gets the current encoder count from the sensor.
k32u GoSensor_Id(GoSensor sensor)
Gets the device identifier associated with this sensor.
kStatus GoSensor_PartNumber(GoSensor sensor, kChar *partNumber, kSize capacity)
Gets the part number associated with this sensor.
kStatus GoSensor_SetHealthPort(GoSensor sensor, k32u port)
Sets the Health Port.
kBool GoSensor_QuickEditEnabled(GoSensor sensor)
Gets the quick edit state of the sensor.
k64u GoSensor_UserStorageFree(GoSensor sensor)
Gets the available storage space remaining for user files.
kStatus GoSensor_Connect(GoSensor sensor)
Creates a connection to the sensor.
GoOutput GoSensor_Output(GoSensor sensor)
Gets the output module, used for output configuration.
Declares the GoTool classes.
kStatus GoSensor_GeoCal(GoSensor info, GoGeoCal *geoCal)
returns the GeoCal object for querying or Null if it does not exist.
kStatus GoSensor_CopyFile(GoSensor sensor, const kChar *sourceName, const kChar *destName)
Copies a file within the connected sensor.
kSize GoSensor_BuddiesCount(GoSensor info)
Gets the number of buddies in the sytem.
kStatus GoSensor_SetSecurityLevel(GoSensor sensor, GoSecurityLevel security)
Sets sensor's security level.
kBool GoSensor_HasBuddy(GoSensor sensor)
Reports whether a buddy had been assigned.
kStatus GoSensor_AccelSensorIpAddress(GoSensor sensor, kIpAddress *ipAddress)
Returns the physical sensor IP address when sensor is accelerated.
Declares the GoSetup class.
kBool GoSensor_AutoStartEnabled(GoSensor sensor)
Gets the AutoStart enabled state currently used by the sensor.
Represents a scan mode.
kStatus GoSensor_Stop(GoSensor sensor)
Stops the sensor.
GoSensorInfo GoSensor_BuddiesAt(GoSensor info, k32u index)
Gets the buddy at a given index.
kStatus GoSensor_SetDefaultJob(GoSensor sensor, const kChar *fileName)
Sets a default job file to be loaded on boot.
kSize GoSensor_RemoteInfoCount(GoSensor sensor)
Gets the count of remote sensor information held by the sensor.
Represents a sensor transformation.
kStatus GoSensor_EnableData(GoSensor sensor, kBool enable)
Enables or disables the sensor's data channel.
kStatus GoSensor_Upgrade(GoSensor sensor, const kChar *sourcePath, GoUpgradeFx onUpdate, kPointer context)
Upgrades sensor firmware.
kBool GoSensor_IsResponsive(GoSensor sensor)
Reports whether the sensor is currently responsive.
kSize GoSensor_DirectoryFileCount(GoSensor sensor, const kChar *extensionFilter, const kChar *path, kBool isRecursive)
Return the number of files contained in the specified path with an optional extension filter applied...
kStatus GoSensor_SetAddress(GoSensor sensor, const GoAddressInfo *info, kBool wait)
Configures a sensor's network address settings.
kStatus GoSensor_StartRecordingStream(GoSensor sensor, kChar *destFile)
Starts recording to a stream.
kStatus GoSensor_GetRuntimeVariables(GoSensor sensor, kSize startIndex, kSize length, k32s *values)
Gets the values associated with a given runtime variable starting index and length.
kVersion GoSensor_ProtocolVersion(GoSensor sensor)
Gets the sensor's protocol version.
kStatus GoSensor_Timestamp(GoSensor sensor, k64u *time)
Gets the current time stamp (common among all synchronized sensors).
kStatus GoSensor_States(GoSensor sensor, GoStates *states)
Reports the current states of the sensor.
kBool GoSensor_RecordingEnabled(GoSensor sensor)
Gets the recording state of the sensor.
kSize GoSensor_GetRuntimeVariableCount(GoSensor sensor)
Returns the number of runtime variables available on the device.
GoSensorInfo GoSensor_RemoteInfoAt(GoSensor sensor, kSize index)
Gets the remote sensor information at the given index.
kStatus GoSensor_AddBuddy(GoSensor sensor, GoSensor buddy)
Assigns a buddy sensor.
Contains the GeoCal data for a sensor. Do not read the GeoCal file directly, use this class to parse ...
kStatus GoSensor_EmitDigital(GoSensor sensor, k16u index, k64s target, k8u value)
Schedules a digital output.
GoPortInfo GoSensor_AccelPortInfo(GoSensor sensor)
Returns the port numbers used by an accelerated sensor, including web port.
Declares the GoReplay class.
kStatus GoSensor_SetInputSource(GoSensor sensor, GoInputSource source)
Sets the input source of the sensor.
Represents a device configuration.
Represents a Gocator sensor.
kBool GoSensor_CanStart(GoSensor sensor)
Checks if the sensor is ready to start, if all assigned buddies are connected.
kStatus GoSensor_Reset(GoSensor sensor, kBool wait)
Reboots the main sensor and any connected buddy sensors.
kStatus GoSensor_ScheduledStart(GoSensor sensor, k64s value)
Starts the sensor at a scheduled value.
kStatus GoSensor_ChangePassword(GoSensor sensor, GoUser user, const kChar *password)
Changes the password associated with the specified user account.
kStatus GoSensor_SetDataPort(GoSensor sensor, k32u port)
Sets the Data Port.
GoRole GoSensor_Role(GoSensor sensor)
Gets the sensor's current role within the system.
Lists all sensor acceleration states that a sensor can be in. When a sensor is being accelerated...
Sensor network address settings.
Definition: GoSdkDef.h:787
Represents the current state of a sensor object.
kSize GoSensor_PartMatchModelCount(GoSensor sensor)
Returns the number of part match models present in the currently loaded job.
kBool GoSensor_IsConnected(GoSensor sensor)
Reports whether the sensor is currently connected.