HAL Class Reference

class HAL : public HALData

A set of static functions to get and set hardware attributes.

HALData

Inherits from

Nested Classes and Structures

Member Functions Documentation

Get(TAttribute, TInt &)

IMPORT_C TIntGet(TAttributeaAttribute,
TInt &aValue
)[static]

Gets the value of the specified HAL attribute.

HALData::TAttribute HALData::TAttributeProperty

Parameters

TAttribute aAttributeThe HAL attribute.
TInt & aValueOn successful return, contains the attribute value. Some attributes may accept aValue as an input as well, to select one of several alternate values. See the documentation for the individual HAL attributes for details of this.

Get(TInt, TAttribute, TInt &)

IMPORT_C TIntGet(TIntaDeviceNumber,
TAttributeaAttribute,
TInt &aValue
)[static]

Gets the value of the specified HAL attribute.

HALData::TAttribute HALData::TAttributeProperty

Parameters

TInt aDeviceNumberThe device number. (eg: screen number)
TAttribute aAttributeThe HAL attribute.
TInt & aValueOn successful return, contains the attribute value. Some attributes may accept aValue as an input as well, to select one of several alternate values. See the documentation for the individual HAL attributes for details of this.

GetAll(TInt &, SEntry *&)

IMPORT_C TIntGetAll(TInt &aNumEntries,
SEntry *&aData
)[static]

Gets all HAL attributes, and their properties.

For attributes that are not meaningful on this device (ie. those which have not been defined in the config.hcf file), the attribute value and its associated property value are set to zero in the returned array.

Attributes for which multiple values can be retrieved ie. EDisplayIsPalettized, EDisplayBitsPerPixel, EDisplayOffsetToFirstPixel, EDisplayOffsetBetweenLines, and EDisplayPaletteEntry will also be zero in the returned array.

Attributes that allocate resources and open handles are also not returned by this API. Their value and property values will be set to zero in the returned array. Use HAL::Get() for these attributes.

Parameters

TInt & aNumEntriesOn successful return, contains the total number of HAL attributes. If the function returns KErrNoMemory, this value is set to zero.
SEntry *& aDataOn successful return, contains a pointer to an array of SEntry objects, each of which contains an attribute value and its property value. Note that the property value is defined by the HAL::TEntry synonym. If the function returns KErrNoMemory, this pointer is set to NULL.

Set(TAttribute, TInt)

IMPORT_C TIntSet(TAttributeaAttribute,
TIntaValue
)[static]

Sets the specified HAL attribute.

HALData::TAttribute HALData::TAttributeProperty
capability
WriteDeviceData or other capability specified for individual attributes in TAttribute

Parameters

TAttribute aAttributeThe HAL attribute.
TInt aValueThe attribute value.

Set(TInt, TAttribute, TInt)

IMPORT_C TIntSet(TIntaDeviceNumber,
TAttributeaAttribute,
TIntaValue
)[static]

Sets the specified HAL attribute.

HALData::TAttribute HALData::TAttributeProperty
capability
WriteDeviceData or other capability specified for individual attributes in TAttribute

Parameters

TInt aDeviceNumberThe device number. (eg: screen number)
TAttribute aAttributeThe HAL attribute.
TInt aValueThe attribute value.

Member Enumerations Documentation

Enum TEntryProperty

Synonyms for the attribute properties HALData::TAttributeProperty, and used in SEntry.

Enumerators

EEntryValid = 0x1

When set, means that an attribute is meaningful on this device.

EEntryDynamic = 0x2

When set, means that an attribute is modifiable.