SPIMaster_SetMode Function
Header: #include <applibs/spi.h>
Sets the communication mode for an SPI master interface.
int SPIMaster_SetMode(int fd, SPI_Mode mode);
Parameters
fd
The file descriptor for the SPI master interface.mode
The communication mode.
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.
Tilbakemeldinger
https://aka.ms/ContentUserFeedback.
Kommer snart: Gjennom 2024 faser vi ut GitHub Issues som tilbakemeldingsmekanisme for innhold, og erstatter det med et nytt system for tilbakemeldinger. Hvis du vil ha mer informasjon, kan du se:Send inn og vis tilbakemelding for