diff options
| author | Roy <Roy.mail.net@gmail.com> | 2023-07-10 08:59:22 +0300 |
|---|---|---|
| committer | Roy <Roy.mail.net@gmail.com> | 2023-07-10 08:59:22 +0300 |
| commit | 29c5cb29d6653164328720f7b360f234d9b68a56 (patch) | |
| tree | 2b8161289e919194d69cdc1922c4c0b0673eb98c /Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | |
| parent | 63aabf3e7a17feaf9765049c2cf515cfb35d42d8 (diff) | |
| download | Tango-29c5cb29d6653164328720f7b360f234d9b68a56.tar.gz Tango-29c5cb29d6653164328720f7b360f234d9b68a56.zip | |
Added support for GetVersionDescriptors, ResetCard and new Events Table.
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs index 430533768..2d066a78f 100644 --- a/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs +++ b/Software/Visual_Studio/Tango.Integration/Operation/MachineOperator.cs @@ -4637,6 +4637,26 @@ namespace Tango.Integration.Operation } } + /// <summary> + /// Gets the list of firmware version descriptors. + /// </summary> + /// <returns></returns> + public async Task<List<VersionFileDescriptor>> GetFirmwareVersionDescriptors() + { + var response = await SendRequest<GetVersionDescriptorsRequest, GetVersionDescriptorsResponse>(new GetVersionDescriptorsRequest()); + return response.Message.Descriptors.ToList(); + } + + /// <summary> + /// Resets the firmware card by the specified card id. + /// </summary> + /// <param name="cardID">The card identifier.</param> + /// <returns></returns> + public Task ResetCard(int cardID) + { + return SendRequest<ResetCardRequest, ResetCardResponse>(new ResetCardRequest() { }, new TransportRequestConfig() { Timeout = TimeSpan.FromSeconds(10) }); + } + #endregion } } |
