DCMD_SDMMC_LOCK_UNLOCK

Lock or unlock the device

Synopsis:

#include <hw/dcmd_sim_sdmmc.h>

#define DCMD_SDMMC_LOCK_UNLOCK   __DIOT(_DCMD_CAM, _SIM_SDMMC + 9, struct _sdmmc_lock_unlock)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device
dcmd DCMD_SDMMC_LOCK_UNLOCK
dev_data_ptr A pointer to a SDMMC_LOCK_UNLOCK structure
n_bytes sizeof(SDMMC_LOCK_UNLOCK)
dev_info_ptr NULL

Description:

This command locks or unlocks the device.

Input:

A filled-in SDMMC_LOCK_UNLOCK structure:

#define SDMMC_LU_PWD_SIZE                       16

typedef struct _sdmmc_lock_unlock {
        uint32_t        action;
        uint32_t        pwd_len;
        uint8_t         pwd[SDMMC_LU_PWD_SIZE];
        uint32_t        rsvd[8];
} SDMMC_LOCK_UNLOCK;

The action can be one of the following:

Output:

None.

See also:

devctl() in the QNX Neutrino C Library Reference