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:06]
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+'// 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 
- 
-// Not used by Clarujust 
 function SetHAInitialize(): Integer; safecall; function SetHAInitialize(): Integer; safecall;
 function SetHARead(): Integer; safecall; function SetHARead(): Integer; safecall;
Line 22: Line 19:
 function SetHABurn(): Integer; safecall; function SetHABurn(): Integer; safecall;
 function SetHAClose(): Integer; safecall; function SetHAClose(): Integer; safecall;
-function GetHAInitialized(var IsInitialized: WordBool): Integer; safecall; 
 procedure SetParams(Params: OleVariant); safecall; // Not needed by Clarujust procedure SetParams(Params: OleVariant); safecall; // Not needed by Clarujust
-function GetParams: OleVariant; safecall;   // Not needed by Clarujust +function GetParams: OleVariant; safecall;     // Not needed by Clarujust 
-procedure LaunchClarujustApp(); 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 51: Line 49:
    TiltSlope80: Integer; OverallGain80: Integer; GainBias80: Integer): Integer; safecall;    TiltSlope80: Integer; OverallGain80: Integer; GainBias80: Integer): Integer; safecall;
  
 +'//--- Revised functionality ---
 function SetAudiogram(AnAudiogram: PSafeArray): Integer; safecall; // Not needed by Clarujust function SetAudiogram(AnAudiogram: PSafeArray): Integer; safecall; // Not needed by Clarujust
-function GetAudiogram(var AudiogramArray of IntArrays?): Integer; safecall;+function GetAudiogram(var AnAudiogramPSafeArray; EarSideIdx: integer): Integer; safecall;
  
-function SetSerialNumber(SerialNum: PChar): Integer; safecall; // Not needed by Clarujust +function SetSerialNumber(SerialNum: PChar; EarSideIdx: integer): Integer; safecall; // Not needed by Clarujust 
-function GetSerialNumber(var SerialNumber: Array of Strings?): Integer; safecall;+function GetSerialNumber(var SerialNumber: PChar; EarSideIdx: integer): Integer; safecall;
  
-// New functionality +'//--- New functionality ---
-function ApplySettings: Integer; safecall;+
 function Setup60(): Integer; safecall; // Prepares the HI settings before running function Setup60(): Integer; safecall; // Prepares the HI settings before running
 function Setup80(): Integer; safecall; // a test function Setup80(): Integer; safecall; // a test
 +function ApplySettings: Integer; safecall;
 +function GetHAInitialized(var IsInitialized: WordBool): Integer; safecall;
 +function GetEarCount(var EarCount: Integer) : Integer; safecall;  // 0–none, 1-left, 2-right, 3-both
  
 </code> </code>