Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ezfit:clarujust:ezorange_api [2009/11/19 17:02]
smayr
ezfit:clarujust:ezorange_api [2009/11/20 16:52] (current)
smayr
Line 4: Line 4:
 === API 3.6 === === API 3.6 ===
 <code vb> <code vb>
 +'// NOTE: All returns are Error Codes
 +
 +function SetInterface(ProgIntfIdx: Integer): Integer; safecall;         // 0-Simulation, Nonzero-Live
 +function GetInterface(var ProgIntfIdx: Integer): Integer; safecall; // 0-Simulation, Nonzero-Live
 +
 +'//--- Not used by Clarujust ---
 function SetEar(EarSideIdx: Integer): Integer; safecall; function SetEar(EarSideIdx: Integer): Integer; safecall;
 function GetEar(): Integer; safecall; function GetEar(): Integer; safecall;
-function GetEars(var EarCount: Integer) : Integer; safecall;  // 0–none, 1-left, 2-right, 3-both 
- 
 function SetMemory(MemIdx: Integer): Integer; safecall; function SetMemory(MemIdx: Integer): Integer; safecall;
 function GetMemory(): Integer; safecall; function GetMemory(): Integer; safecall;
- 
-function SetInterface(ProgIntfIdx: Integer): Integer; safecall;  // 0-Simulation, 1-Live 
-function GetInterface(var Live: Integer): Integer; safecall; // 0-Simulation, 1-Live 
- 
 function SetHAInitialize(): Integer; safecall; function SetHAInitialize(): Integer; safecall;
 function SetHARead(): Integer; safecall; function SetHARead(): Integer; safecall;
Line 19: Line 19:
 function SetHABurn(): Integer; safecall; function SetHABurn(): Integer; safecall;
 function SetHAClose(): Integer; safecall; function SetHAClose(): Integer; safecall;
-function GetHAInitialized(var IsInitializedWordBool): Integer; safecall;+procedure SetParams(ParamsOleVariant); safecall; // Not needed by Clarujust 
 +function GetParamsOleVariant; safecall;    // Not needed by Clarujust 
 +procedure LaunchClarujustApp(); safecall;      // Not needed by Clarujust
  
 +'//--- Debugging ---
 function SetSilentErrors(Silent: WordBool): Integer; safecall; function SetSilentErrors(Silent: WordBool): Integer; safecall;
 function GetSilentErrors(): WordBool; safecall; function GetSilentErrors(): WordBool; safecall;
  
 +'//--- Bump, Tilt, and Gain ---
 function SetBumpQ(BumpQIdx: Integer): Integer; safecall; function SetBumpQ(BumpQIdx: Integer): Integer; safecall;
 function GetBumpQ(var BumpQIdx: Integer, var BumpQVal: Single): Integer; safecall; function GetBumpQ(var BumpQIdx: Integer, var BumpQVal: Single): Integer; safecall;
Line 38: Line 42:
 function SetBias(Bias: Integer): Integer; safecall; function SetBias(Bias: Integer): Integer; safecall;
 function GetBias(var Bias: Integer): Integer; safecall; function GetBias(var Bias: Integer): Integer; safecall;
-function ApplySettings: Integer; safecall; 
 function GetEthosArray(out Arr: PSafeArray): Integer; safecall; function GetEthosArray(out Arr: PSafeArray): Integer; safecall;
  
-function Setup60(): Integer; safecall; // Prepares the HI settings before running 
-function Setup80(): Integer; safecall; // a test 
 function SetCompression(BumpGain60: Integer; BumpQ60: Integer; BumpCF60: Integer; function SetCompression(BumpGain60: Integer; BumpQ60: Integer; BumpCF60: Integer;
    TiltSlope60: Integer; OverallGain60: Integer; GainBias60: Integer;    TiltSlope60: Integer; OverallGain60: Integer; GainBias60: Integer;
Line 48: Line 49:
    TiltSlope80: Integer; OverallGain80: Integer; GainBias80: Integer): Integer; safecall;    TiltSlope80: Integer; OverallGain80: Integer; GainBias80: Integer): Integer; safecall;
  
-procedure LaunchClarujustApp(); safecall;   // Not needed by Clarujust+'//--- Revised functionality --- 
 +function SetAudiogram(AnAudiogram: PSafeArray): Integer; safecall; // Not needed by Clarujust 
 +function GetAudiogram(var AnAudiogram: PSafeArray; EarSideIdx: integer): Integer; safecall;
  
-procedure SetParams(ParamsOleVariant); safecall; // Not needed by Clarujust +function SetSerialNumber(SerialNum: PChar; EarSideIdxinteger): Integer; safecall; // Not needed by Clarujust 
-function GetParamsOleVariant; safecall;  // Not needed by Clarujust+function GetSerialNumber(var SerialNumberPChar; EarSideIdx: integer): Integer; safecall;
  
-function SetAudiogram(AnAudiogram: PSafeArray): Integer; safecall; // Not needed by Clarujust +'//--- New functionality --- 
-function GetAudiogram(var Audiogram: Array of IntArrays?): Integer; safecall; +function Setup60(): Integer; safecall; // Prepares the HI settings before running 
- +function Setup80(): Integer; safecall; // a test 
-function SetSerialNumber(SerialNumPChar): Integer; safecall; // Not needed by Clarujust +function ApplySettings: Integer; safecall; 
-function GetSerialNumber(var SerialNumberArray of Strings?): Integer; safecall;+function GetHAInitialized(var IsInitializedWordBool): Integer; safecall; 
 +function GetEarCount(var EarCountInteger) : Integer; safecall;  // 0–none, 1-left, 2-right, 3-both
  
 </code> </code>