CLSID_VIO_FUEL_PRESSURE

This CLSID returns the fuel pressure relative to the ambient atmospheric pressure.

Name

Fuel pressure

Access

Read, shareable or exclusive

Range

Type: VT_UI2 (unsigned short integer)
Low: 0
High: 765

Input

None

Output

Type: VT_UI2 (unsigned short integer)
Measurement: VIOMEASUREMENT_GAGEPRESSURE
Units: VIOUNITS_KILOPASCALSGAGE

Remarks

API device objects expect the following data types and sizes when sending data to and from the mini-drivers:

Mini-driver input

None

Mini-driver output

Type: USHORT *
Size: 2 bytes
Description: Fuel pressure in kilopascals, relative to ambient atmospheric pressure

Example

HRESULT hr;
IVIO_Device *pFuelPressure;
VARIANT vDeviceData;
USHORT usGagePressure;
//Create an instance of the Fuel Pressure device and get its 
//IVIO_Device interface.
hr = CoCreateInstance(CLSID_VIO_FUEL_PRESSURE, NULL,
                     CLSCTX_INPROC_SERVER, IID_VIODEVICE,
                     &pFuelPressure);
//Ask the device for the current fuel pressure.
pFuelPressure->GetData(&vDeviceData, 3000);
//Fetch the fuel pressure, in kilopascals, from the VARIANT.
usGagePressure = vDeviceData.uiVal;
//Release the reference to the interface.
pFuelPressure->Release();