Function rc_spi_write#
Defined in File spi.h
Function Documentation#
-
int rc_spi_write(int bus, int slave, uint8_t *data, size_t bytes)#
Writes data to specified slave.
- Parameters:
bus – [in] SPI bus to use
slave – [in] slave id
data – data pointer
bytes – [in] number of bytes to send
- Returns:
returns number of bytes written or -1 on failure