Lock or unlock the device
#include <hw/dcmd_sim_sdmmc.h> #define DCMD_SDMMC_LOCK_UNLOCK __DIOT(_DCMD_CAM, _SIM_SDMMC + 9, struct _sdmmc_lock_unlock)
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 |
This command locks or unlocks the device.
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:
None.
devctl() in the QNX Neutrino C Library Reference