Control power management for the device
#include <hw/dcmd_sim_sdmmc.h> #define DCMD_SDMMC_PWR_MGNT __DIOTF(_DCMD_CAM, _SIM_SDMMC + 11, struct _sdmmc_pwr_mgnt)
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 |
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;
Set the action member to one of the following:
The other members of the structure include:
For a SDMMC_PM_ACTION_GET action, the idle_time and sleep_time members are filled with the current times.
devctl() in the QNX Neutrino C Library Reference