DCMD_SDIO_SET_IOREG
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Set some bits in an I/O register
Synopsis:
#include <mmc/sdio.h>
#define DCMD_SDIO_SET_IOREG             __DIOT (_DCMD_MISC, 0x03, sdio_ioreg_t)
Arguments to devctl():
| Argument | Value | 
|---|---|
| filedes | A file descriptor that you obtained by opening the device | 
| dcmd | DCMD_SDIO_SET_IOREG | 
| dev_data_ptr | A pointer to a sdio_ioreg_t | 
| n_bytes | sizeof(sdio_ioreg_t) | 
| dev_info_ptr | NULL | 
Description:
This command sets an I/O register. The sdio_ioreg_t structure is defined as follows:
typedef struct _sdio_ioreg_t {
        uint8_t         func;
        uint8_t         val;
        uint8_t         rsvd[2];
        uint32_t        reg;
} sdio_ioreg_t;
The members include:
- func
 - The function number
 - val
 - The bits that you want to set in the register.
 - reg
 - The register to set.
 
Input:
Initialize all members of the structure.
Output:
None.
See also:
devctl() in the QNX OS C Library Reference
Page updated: 
