CanEasy COM-Help
CanEasy::IConversion Interface Reference
Inheritance diagram for CanEasy::IConversion:
CanEasy::IDatabaseItem CanEasy::IOffsetFactorConversion

Detailed Description

Interface which is used to convert a raw value into a physical value.

Instead of using IValue.Factor and IValue.Offset you can use this conversion object.

interface IConversion : IDatabaseItem
{
HRESULT ConvertToPhys([in] INT64 llRaw, [out, retval] double*);
HRESULT ConvertToHex([in] double dVal, [out, retval] INT64*);
};

Definition at line 2000 of file cand_tlb.idl.

Member Function Documentation

◆ ConvertToHex()

HRESULT CanEasy::IConversion::ConvertToHex ( [in] double  dVal,
[out, retval] INT64 *   
)

Converts the physical value into a raw value.

Parameters
dValPhysical value to be converted
Returns
Raw value

◆ ConvertToPhys()

HRESULT CanEasy::IConversion::ConvertToPhys ( [in] INT64  llRaw,
[out, retval] double *   
)

Converts the raw value into a physical value.

Parameters
llRawRaw value to be converted
Returns
Physical value
CanEasy::IConversion::ConvertToHex
HRESULT ConvertToHex([in] double dVal, [out, retval] INT64 *)
CanEasy::IConversion::ConvertToPhys
HRESULT ConvertToPhys([in] INT64 llRaw, [out, retval] double *)