spi_getdrvinfo()
The spi_getdrvinfo() function gets the driver information for the low-level module. The prototype for this function is:
int spi_getdrvinfo( int fd,
spi_drvinfo_t *drvinfo );
The arguments are:
- fd
- The file descriptor returned by spi_open().
- devinfo
- A pointer to device information structure:
typedef struct { uint32_t version; char name[16]; /* Driver name */ uint32_t feature; } spi_drvinfo_t;
The function returns EOK if the driver information is obtained successfully.
Page updated:
