CTRE Phoenix 6 C++ 24.3.0
StatusGetter_Simplified_Interface.h
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
10#include "stdint.h"
11
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
18 /* Inputs */
19 const char *network,
20 int bWaitForUpdate,
21 double timeoutSeconds,
22 /* Arrays */
23 uint32_t num_signals,
24 const uint32_t *device_hashes, // Array of Device hashes, min size of num_signals
25 const uint32_t *spns, // Array of spns, min size of num_signals
26 /* Outputs */
27 double *values, // Array of double returns, min size of num_signals
28 double *hwTimestampSeconds, // Array of timestamps, min size of num_signals
29 double *swTimestampSeconds, // Array of timestamps, min size of num_signals
30 double *ecuTimestampSeconds // Array of timestamps, min size of num_signals
31 );
32
34 uint16_t spn,
35 char *unit_c_string, // Array of chars that function fills
36 uint16_t max_size); // Make sure labview passes at least 80 chars
37
38#ifdef __cplusplus
39}
40#endif
CTREXPORT int c_ctre_phoenix6_get_signal_simplified(const char *network, int bWaitForUpdate, double timeoutSeconds, uint32_t num_signals, const uint32_t *device_hashes, const uint32_t *spns, double *values, double *hwTimestampSeconds, double *swTimestampSeconds, double *ecuTimestampSeconds)
CTREXPORT int c_ctre_phoenix6_get_signal_unit(uint16_t spn, char *unit_c_string, uint16_t max_size)
#define CTREXPORT
Definition: export.h:14