SPIMaster_SetBusSpeed Function
Header: #include <applibs/spi.h>
Sets the SPI bus speed for operations on an SPI master interface.
int SPIMaster_SetBusSpeed(int fd, uint32_t speedInHz);
Parameters
fdThe file descriptor for the SPI master interface.speedInHzThe maximum speed for transfers on this interface, in Hz. Not all speeds are supported on all devices. The actual speed used by the interface may be lower than this value.
Return value
Returns 0 for success, or -1 for failure, in which case errno will be set to the error value.
Application manifest requirements
To access individual SPI interfaces, your application must identify them in the SpiMaster field of the application manifest.
Povratne informacije
Pošalјite i prikažite povratne informacije za