LogoLogo
Home
  • 🏠Home
  • Open API Application
  • ReXgen API Documentation
    • ReXgen Open API
  • Data Conversion Library
    • RxLibrary.dll()
      • RxLib.XmlToRxc()
      • RxLib.ConvertData()
      • RxLib.ConvertStatus()
  • Device Library
    • RgUSBdrv.dll
      • DeviceIsReady()
      • GetFirmwareVersion()
      • SendConfiguration()
      • ReflashLogger()
      • InitLiveData()
      • StopLiveData()
      • GetDateTime()
      • SetDateTime()
      • GetLogCount()
      • FormatSDCard()
      • GetSDLogInfo()
      • GetLogData()
Powered by GitBook
On this page
Export as PDF
  1. Device Library
  2. RgUSBdrv.dll

GetFirmwareVersion()

Gets the current firmware version of the logger.

C#

[DllImport("RGUSBdrv.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern byte GetFirmwareVersion(out ushort MajorVersion, out byte 
MinVersion, out byte BranchVersion, out byte FwType);

Returns:

out ushort MajorVersion, out byte MinVersion, out byte BranchVersion, out byte FwType

C# Example:

public static string GetFirmware()
{
 string[] FirmwareReleaseType = new string[4] { "", "A", "B", "RC" };
 byte MinVersion, Res, BranchVersion, fwType;
 ushort MajorVersion;
 Res = GetFirmwareVersion(out MajorVersion, out MinVersion, out BranchVersion, out fwType);
 return $"{MajorVersion}.{MinVersion}.{BranchVersion} {FirmwareReleaseType[fwType]}";
}
private void btnGetFirmware_Click(object sender, EventArgs e)
{
  if (USBDllComm.Connected)
  lblGetFirmware.Text = GetFirmware();
}
PreviousDeviceIsReady()NextSendConfiguration()

Last updated 1 year ago