Implemented icsneoLoadDefaultSettings to apply the default settings to the device.
parent
4fa813ccbc
commit
83f6c611fe
|
|
@ -1079,6 +1079,15 @@ int LegacyDLLExport icsneoGetDeviceSettings(void* hObject, SDeviceSettings* pSet
|
|||
return !!icsneo_settingsReadStructure(device, &pSettings->Settings, iNumBytes - offset);
|
||||
}
|
||||
|
||||
int LegacyDLLExport icsneoLoadDefaultSettings(void* hObject)
|
||||
{
|
||||
if (!icsneoValidateHObject(hObject))
|
||||
return false;
|
||||
|
||||
neodevice_t* device = reinterpret_cast<neodevice_t*>(hObject);
|
||||
return icsneo_settingsApplyDefaults(device);
|
||||
}
|
||||
|
||||
int LegacyDLLExport icsneoSetBitRateEx(void* hObject, unsigned long BitRate, int NetworkID, int iOptions)
|
||||
{
|
||||
if (!icsneoValidateHObject(hObject))
|
||||
|
|
|
|||
|
|
@ -78,6 +78,8 @@ extern int LegacyDLLExport icsneoGetDeviceSettingsType(void* hObject, EPlasmaIon
|
|||
extern int LegacyDLLExport icsneoSetDeviceSettings(void* hObject, SDeviceSettings* pSettings, int iNumBytes, int bSaveToEEPROM, EPlasmaIonVnetChannel_t vnetSlot);
|
||||
extern int LegacyDLLExport icsneoGetDeviceSettings(void* hObject, SDeviceSettings* pSettings, int iNumBytes, EPlasmaIonVnetChannel_t vnetSlot);
|
||||
|
||||
extern int LegacyDLLExport icsneoLoadDefaultSettings(void* hObject);
|
||||
|
||||
extern int LegacyDLLExport icsneoSetUSBLatency(NeoDevice* pNeoDevice, unsigned long LatencyVal);
|
||||
|
||||
extern unsigned int LegacyDLLExport icsneoGetCANControllerClockFrequency(void* hObject, int lNetworkID);
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ EXPORTS
|
|||
icsneoReceiveHWTimeResponse @143
|
||||
icsneoSendHWTimeRequest @144
|
||||
icsneoSetUSBLatency @145
|
||||
; icsneoLoadDefaultSettings @146
|
||||
icsneoLoadDefaultSettings @146
|
||||
; icsneoGetAllChipVersions @149
|
||||
icsneoSetBitRateEx @ 150
|
||||
; icsneoScriptGetScriptStatusEx @ 151
|
||||
|
|
|
|||
Loading…
Reference in New Issue