Skip to content
Vehicle properties
HVAC & climate

HVAC_FAN_DIRECTION_AVAILABLE

What it is

Fan Positions Available

This is a bit mask of fan positions available for the zone. Each available fan direction is denoted by a separate entry in the vector. A fan direction may have multiple bits from vehicle_hvac_fan_direction set. For instance, a typical car may have the following fan positions: - FAN_DIRECTION_FACE (0x1) - FAN_DIRECTION_FLOOR (0x2) - FAN_DIRECTION_FACE | FAN_DIRECTION_FLOOR (0x3) - FAN_DIRECTION_DEFROST (0x4) - FAN_DIRECTION_FLOOR | FAN_DIRECTION_DEFROST (0x6)

How the ID is built

A property ID is a 32-bit value packing four fields. Reading 0x15410511 apart:

FieldMaskValueMeans
Group0xf00000000x10000000SYSTEM
Area0x0f0000000x05000000SEAT
Type0x00ff00000x00410000INT32_VEC
Ordinal0x0000ffff0x000005110x511

Reading it from an app

CarPropertyManager mgr = (CarPropertyManager)
        car.getCarManager(Car.PROPERTY_SERVICE);

CarPropertyValue<Integer> value =
        mgr.getProperty(VehiclePropertyIds.HVAC_FAN_DIRECTION_AVAILABLE, areaId);

This property is read-only — writes are rejected. It is static for the life of the vehicle, so read it once and cache it.