DCMD_SDIO_WRITE_IOREG
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Write to an I/O register
Synopsis:
#include <mmc/sdio.h>
#define DCMD_SDIO_WRITE_IOREG __DIOT (_DCMD_MISC, 0x02, sdio_ioreg_t)
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device |
dcmd | DCMD_SDIO_WRITE_IOREG |
dev_data_ptr | A pointer to a sdio_ioreg_t |
n_bytes | sizeof(sdio_ioreg_t) |
dev_info_ptr | NULL |
Description:
This command writes to 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 value to write.
- reg
- The register to write the value in.
Input:
Set all members of the structure.
Output:
None.
See also:
devctl() in the QNX OS C Library Reference
Page updated: