DCMD_SDIO_ATTACH_DEVICE

Attach a device

Synopsis:

#include <mmc/sdio.h>

#define DCMD_SDIO_ATTACH_DEVICE   __DIOTF(_DCMD_MISC, 0x12, sdio_dev_t)

Arguments to devctl():

Argument Value
filedes A file descriptor that you obtained by opening the device
dcmd DCMD_SDIO_ATTACH_DEVICE
dev_data_ptr A pointer to a sdio_dev_t
n_bytes sizeof(sdio_dev_t)
dev_info_ptr NULL

Description:

This command attaches a device. The sdio_dev_t structure is defined as follows:

typedef struct _sdio_dev_t {
        uint16_t        vid;    /* Vendor ID */
        uint16_t        did;    /* Device ID */
        uint16_t        ccd;    /* Class code */
        int16_t         fun;    /* Function number */
} sdio_dev_t;

Input:

Fill in the members as required. You must specify the vendor and device IDs. If you specify SDIO_FUNC_ANY for the function number, you can't specify SDIO_CLASS_ANY for the class code.

Output:

Whichever of the function or class code that you didn't specify is filled in.

See also:

DCMD_SDIO_DETACH_DEVICE

devctl() in the QNX Neutrino C Library Reference