HAL Class Reference
class HAL : public HALData
|
A set of static functions to get and set hardware attributes.
HALData
Nested Classes and Structures
Member Functions Documentation
Get(TAttribute, TInt &)
Parameters
TAttribute
aAttribute
|
The HAL attribute.
|
TInt
& aValue
|
On 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 &)
Parameters
TInt
aDeviceNumber
|
The device number. (eg: screen number)
|
TAttribute
aAttribute
|
The HAL attribute.
|
TInt
& aValue
|
On 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 *&)
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
& aNumEntries
|
On successful return, contains the total number of HAL attributes. If the function returns KErrNoMemory, this value is set to zero.
|
SEntry
*& aData
|
On 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)
Sets the specified
HAL
attribute.
Parameters
TAttribute
aAttribute
|
The HAL attribute.
|
TInt
aValue
|
The attribute value.
|
Set(TInt, TAttribute, TInt)
Sets the specified
HAL
attribute.
Parameters
TInt
aDeviceNumber
|
The device number. (eg: screen number)
|
TAttribute
aAttribute
|
The HAL attribute.
|
TInt
aValue
|
The attribute value.
|
Member Enumerations Documentation
Enum TEntryProperty
Enumerators
EEntryValid = 0x1
|
When set, means that an attribute is meaningful on this device.
|
EEntryDynamic = 0x2
|
When set, means that an attribute is modifiable.
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.