Read an I/O register
#include <mmc/sdio.h> #define DCMD_SDIO_READ_IOREG __DIOTF(_DCMD_MISC, 0x01, sdio_ioreg_t)
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device |
dcmd | DCMD_SDIO_READ_IOREG |
dev_data_ptr | A pointer to a sdio_ioreg_t |
n_bytes | sizeof(sdio_ioreg_t) |
dev_info_ptr | NULL |
This command reads 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:
Set the func and reg members.
The value read from the register.
devctl() in the QNX Neutrino C Library Reference