DCMD_SDMMC_ASSD_APDU

Transfer an APDU packet to the device

Synopsis:

#include <hw/dcmd_sim_sdmmc.h>

#define DCMD_SDMMC_ASSD_APDU   __DIOTF(_DCMD_CAM, _SIM_SDMMC + 8, struct _sdmmc_assd_apdu)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device
dcmd DCMD_SDMMC_ASSD_APDU
dev_data_ptr A pointer to a SDMMC_ASSD_APDU that's followed by a buffer
n_bytes sizeof(SDMMC_ASSD_APDU) plus the size of the buffer
dev_info_ptr NULL

Description:

This command transfers Application Protocol Data Unit packets to an Advanced Security SD.

The SDMMC_ASSD_APDU structure is defined as follows:

typedef struct _sdmmc_assd_apdu {
        uint32_t        length;
        uint32_t        rsvd[7];
/*      uint8_t         data[ length ];         variable length data */
} SDMMC_ASSD_APDU;

The length member is the length of the data that follows the structure.

Input:

Fill in the length member.

Output:

The buffer that data points to is filled with the response, and length is set to be its length.

See also:

devctl() in the QNX Neutrino C Library Reference