Vehicle properties
Power & shutdown
AP_POWER_STATE_REQ
What it is
Property to control power state of application processor
It is assumed that AP's power state is controlled by a separate power controller.
For configuration information, VehiclePropConfig.configArray must have bit flag combining values in VehicleApPowerStateConfigFlag.
configArray[0] : Bit flag combining values in VehicleApPowerStateConfigFlag,
0x0 if not used,
0x1 for enabling suspend to ram,
0x2 for supporting powering on AP from off state after timeout.
0x4 for enabling suspend to disk, int32Values[0] : VehicleApPowerStateReq enum value
int32Values[1] : additional parameter relevant for each state,
0 if not used.How the ID is built
A property ID is a 32-bit value packing four fields. Reading 0x11410a00 apart:
| Field | Mask | Value | Means |
|---|---|---|---|
| Group | 0xf0000000 | 0x10000000 | SYSTEM |
| Area | 0x0f000000 | 0x01000000 | GLOBAL |
| Type | 0x00ff0000 | 0x00410000 | INT32_VEC |
| Ordinal | 0x0000ffff | 0x00000a00 | 0xa00 |
Reading it from an app
CarPropertyManager mgr = (CarPropertyManager)
car.getCarManager(Car.PROPERTY_SERVICE);
CarPropertyValue<Integer> value =
mgr.getProperty(VehiclePropertyIds.AP_POWER_STATE_REQ, 0);This property is read-only — writes are rejected. It fires a callback whenever the value changes.

