Astra MCU SDK Peripheral Driver Library
Loading...
Searching...
No Matches

Topics

 Enumerated Types
 PPU-related enum types used by the APIs.
 Data Structures
 PPU data structures and API type aliases.
 Functions
 Functions used to configure power policy and dynamic transition.

Detailed Description

The PPU driver provides APIs to configure and control default power policy behavior and dynamic transition settings for supported PPU instances.

Features:

  • Configure default power policy using ppu_set_power_mode.
  • Enable or disable dynamic transition behavior using ppu_set_dynamic_transition.
  • Per-instance validation and register programming through the PPU driver context.

Configuration Considerations

Typical usage flow:

  1. Select the target PPU instance identifier (for example, PPU_INSTANCE_0).
  2. Configure default policy using ppu_set_power_mode.
  3. Configure autonomous transition behavior using ppu_set_dynamic_transition.

Usage Examples

Set Baseline Power Mode

if (ppu_set_power_mode(PPU_INSTANCE_0, PM_STATE_MEM_RET) != 0) {
/* handle error */
}

Enable Dynamic Transition

if (ppu_set_dynamic_transition(PPU_INSTANCE_0, true) != 0) {
/* handle error */
}