init
This commit is contained in:
70
docs/ai/DataPRO/ICommand/Classes.md
Normal file
70
docs/ai/DataPRO/ICommand/Classes.md
Normal file
@@ -0,0 +1,70 @@
|
||||
---
|
||||
source_files:
|
||||
- DataPRO/ICommand/Classes/UDPQATSEntry.cs
|
||||
- DataPRO/ICommand/Classes/DiscoveredDevice.cs
|
||||
generated_at: "2026-04-17T15:56:16.773593+00:00"
|
||||
model: "zai-org/GLM-5-FP8"
|
||||
schema_version: 1
|
||||
sha256: "250108073ba9ce90"
|
||||
---
|
||||
|
||||
# Documentation: DTS.DASLib.Command.Classes
|
||||
|
||||
## 1. Purpose
|
||||
|
||||
This module provides data structures for device communication and discovery within the DTS data acquisition system. `UDPQATSEntry` captures a snapshot of device state from UDP QATS (Quick Acquisition and Triggering System) responses, including arm status, sampling metrics, sensor readings, and fault information. `DiscoveredDevice` represents devices discovered via multicast autodiscovery, managing device hierarchy, network configuration, and positional relationships for devices connected through distributors (e.g., SLICE6DB). Together, these classes serve as DTOs for inter-module communication between device hardware and higher-level application logic.
|
||||
|
||||
---
|
||||
|
||||
## 2. Public Interface
|
||||
|
||||
### UDPQATSEntry
|
||||
|
||||
**Implements:** `IUDPQATSEntry`
|
||||
|
||||
A read-only data transfer object representing a UDP QATS device status response.
|
||||
|
||||
#### Constructor
|
||||
|
||||
```csharp
|
||||
public UDPQATSEntry(
|
||||
string responseHostMac,
|
||||
string responseClientMacAddress,
|
||||
string serialNumber,
|
||||
byte armState,
|
||||
byte armMode,
|
||||
byte started,
|
||||
byte triggered,
|
||||
byte faultFlags,
|
||||
uint sampleRate,
|
||||
ulong totalSamples,
|
||||
ulong currentSample,
|
||||
ushort eventNumber,
|
||||
ulong faultSampleNumber,
|
||||
ushort legacyFaultFlags,
|
||||
float inputVoltage,
|
||||
float backupVoltage,
|
||||
float batterySOC,
|
||||
ulong estimateMaxSamples,
|
||||
short tiltSensorCh1,
|
||||
short tiltSensorCh2,
|
||||
short tiltSensorCh3,
|
||||
float sysTempC,
|
||||
byte syncClockEnable,
|
||||
byte adcExtClockSyncEnable,
|
||||
byte syncClockStatus,
|
||||
byte adcExtClockSyncStatus,
|
||||
ulong eventTriggerSample,
|
||||
float[] channelOffsetMV,
|
||||
float[] channelShuntDeviationPercent,
|
||||
DateTime timeStamp)
|
||||
```
|
||||
Initializes all properties from constructor parameters. All properties have `private set` accessors, making the instance effectively immutable after construction.
|
||||
|
||||
#### Properties
|
||||
|
||||
| Property | Type | Description |
|
||||
|----------|------|-------------|
|
||||
| `ResponseHostMac` | `string` | MAC address of the responding host |
|
||||
| `ResponseClientMacAddress` | `string` | Client MAC address from response |
|
||||
| `SerialNumber` | `string`
|
||||
Reference in New Issue
Block a user