DCMD_SPI_GET_DRVINFO
QNX SDP8.0Devctl and Ioctl CommandsDeveloper
Get the SPI driver information
Synopsis:
#include <hw/io-spi.h>
#define DCMD_SPI_GET_DRVINFO (__DIOT (_DCMD_SPI, 0x12, spi_drvinfo_t))
Arguments to devctl():
Argument | Value |
---|---|
filedes | A file descriptor that you obtained by opening the device. |
dcmd | DCMD_SPI_GET_DRVINFO |
dev_data_ptr | A pointer to a spi_drvinfo_t structure (see below) |
n_bytes | sizeof(spi_drvinfo_t) |
dev_info_ptr | NULL |
Description:
The DCMD_SPI_GET_DRVINFO command gets the information for the low-level driver module.
Input:
None.
Output:
A filled spi_drvinfo_t structure:
typedef struct { uint32_t version; char name[SPI_DRVR_NAME_LEN]; /* Driver name */ uint32_t feature; uint32_t verbosity; /* Driver verbosity level */ } spi_drvinfo_t;
Related links:
For more information, refer to the following documents:
- SPI (Serial Peripheral Interface) Framework Technotes
- devctl() in the QNX OS C Library Reference
Page updated: