Get the status of an Advanced Security SD card operation
#include <hw/dcmd_sim_sdmmc.h> #define DCMD_SDMMC_ASSD_STATUS __DIOF(_DCMD_CAM, _SIM_SDMMC + 5, struct _sdmmc_assd_status)
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device |
dcmd | DCMD_SDMMC_ASSD_STATUS |
dev_data_ptr | A pointer to a SDMMC_ASSD_STATUS structure |
n_bytes | sizeof(SDMMC_ASSD_STATUS) |
dev_info_ptr | NULL |
This command gets the status of an ASSD operation.
None.
A filled-in SDMMC_ASSD_STATUS structure:
typedef struct _sdmmc_assd_status { uint8_t assd_state; uint8_t assd_err_state; uint8_t assd_sec_sys_err; uint8_t pmem_state; uint8_t auth_alg; uint8_t enc_alg; uint8_t active_sec_system; uint8_t sec_token_prot; uint16_t read_block_count; uint16_t suspended_sec_sys; uint32_t rsvd[6]; } SDMMC_ASSD_STATUS;
The members include:
devctl() in the QNX Neutrino C Library Reference