DCMD_SDMMC_PWR_MGNT

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:

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 Neutrino C Library Reference