| Updated: October 28, 2024 |
Erase the device
#include <hw/dcmd_sim_sdmmc.h> #define DCMD_SDMMC_ERASE __DIOTF(_DCMD_CAM, _SIM_SDMMC + 2, struct _sdmmc_erase)
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device |
| dcmd | DCMD_SDMMC_ERASE |
| dev_data_ptr | A pointer to a SDMMC_ERASE structure (see below) |
| n_bytes | sizeof(SDMMC_ERASE) |
| dev_info_ptr | NULL |
This command erases the device.
typedef struct _sdmmc_erase {
uint32_t action;
uint32_t rsvd;
uint64_t lba;
uint64_t nlba;
uint64_t rsvd2;
} SDMMC_ERASE;
The members include:
Fill in the action and the lba and nlba members.
None.
devctl() in the QNX Neutrino C Library Reference