DCMD_SDMMC_PWR_MGNT
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Control power management for the device
Synopsis:
#include <hw/dcmd_sim_sdmmc.h>
#define DCMD_SDMMC_PWR_MGNT   __DIOTF(_DCMD_CAM, _SIM_SDMMC + 11, struct _sdmmc_pwr_mgnt)
Arguments to devctl():
| Argument | Value | 
|---|---|
| filedes | A file descriptor that you obtained by opening the device | 
| dcmd | DCMD_SDMMC_PWR_MGNT | 
| dev_data_ptr | A pointer to a SDMMC_PWR_MGNT structure | 
| n_bytes | sizeof(SDMMC_PWR_MGNT) | 
| dev_info_ptr | NULL | 
Description:
This command controls power management for the device. The SDMMC_PWR_MGNT structure is defined as:
typedef struct _sdmmc_pwr_mgnt {
#define SDMMC_PM_ACTION_GET             0x00
#define SDMMC_PM_ACTION_SET             0x01
        uint32_t                action;
        uint32_t                rsvd;
        uint64_t                idle_time;   /* time in ms til device enters idle */
        uint64_t                sleep_time;  /* time in ms til device enters sleep */
        uint32_t                rsvd1[16];
} SDMMC_PWR_MGNT;
Input:
Set the action member to one of the following:
- SDMMC_PM_ACTION_GET — get the current times; you don't need to fill the other members of the structure. The chipset's default values are used as the minimums.
 - SDMMC_PM_ACTION_SET — set the times to the given values
 
The other members of the structure include:
- idle_time
 - The time in milliseconds until the device enters the idle state.
 - sleep_time
 - The time in milliseconds until the device goes to sleep.
 
Output:
For a SDMMC_PM_ACTION_GET action, the idle_time and sleep_time members are filled with the current times.
See also:
devctl() in the QNX OS C Library Reference
Page updated: 
