DCMD_SDMMC_ASSD_STATUS

Get the status of an Advanced Security SD card operation

Synopsis:

#include <hw/dcmd_sim_sdmmc.h>

#define DCMD_SDMMC_ASSD_STATUS   __DIOF(_DCMD_CAM, _SIM_SDMMC + 5, struct _sdmmc_assd_status)

Arguments to devctl():

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

Description:

This command gets the status of an ASSD operation.

Input:

None.

Output:

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:

assd_state
The state of the command:
  • ASSD_STATE_SCP — secure command in progress
  • ASSD_STATE_SCC — secure command complete
  • ASSD_STATE_SCA — secure command aborted
assd_err_state
The error state:
  • ASSD_ERR_STATE_NE — no error
  • ASSD_ERR_STATE_AE — authorization error
  • ASSD_ERR_STATE_ANF — area not found
  • ASSD_ERR_STATE_RO — range over
  • ASSD_ERR_STATE_CE — condition error
assd_sec_sys_err
pmem_state
auth_alg
enc_alg
active_sec_system
sec_token_prot
read_block_count
suspended_sec_sys

See also:

devctl() in the QNX Neutrino C Library Reference