devinfo()

QNX SDP8.0SPI Framework TechnotesAPIConfiguration

Obtain the SPI device information

Synopsis:

void (*devinfo)( const void *const hdl,
                 const spi_dev_t *const spi_dev,
                 spi_devinfo_t *const info );

Arguments:

hdl
The handle of the low-level module that spi_init() returns.
spi_dev
A pointer to the SPI device structure, spi_dev_t.
info
A pointer to store the SPI device information, spi_devinfo_t devinfo.
The definition of spi_devinfo_t is:
typedef struct {
    int         devno;                       /* Device NO. Physical NO. */
    char        name[SPI_DEV_NAME_LEN];      /* Device name */
    uint32_t    current_clkrate;             /* Device current bus speed */
    spi_cfg_t   cfg;                         /* Device configuration */
} spi_devinfo_t;

Description:

The devinfo() function obtains the information from specific devices on the SPI bus.

Errors:

The devinfo() function returns VOID.

Page updated: