Lines Matching defs:data
38 SPI_MODE0 = 0, /**< CPOL = 0, CPHA = 0, Clock idle low, data is clocked in on rising edge,
39 output data (change) on falling edge */
40 SPI_MODE1 = 1, /**< CPOL = 0, CPHA = 1, Clock idle low, data is clocked in on falling edge,
41 output data (change) on rising edge */
42 SPI_MODE2 = 2, /**< CPOL = 1, CPHA = 0, Clock idle low, data is clocked in on falling edge,
43 output data (change) on rising edge */
44 SPI_MODE3 = 3, /**< CPOL = 1, CPHA = 1, Clock idle low, data is clocked in on rising, edge
45 output data (change) on falling edge */
108 * @param data the byte to send
109 * @return data received on the miso line or -1 in case of error
112 writeByte(uint8_t data)
114 return mraa_spi_write(m_spi, (uint8_t) data);
120 * @param data the byte to send
121 * @return data received on the miso line
124 write_word(uint16_t data)
126 return mraa_spi_write_word(m_spi, (uint16_t) data);
136 * @return uint8_t* data received on the miso line. Same length as passed in
152 * @return uint8_t* data received on the miso line. Same length as passed in
163 * Transfer data to and from SPI device Receive pointer may be null if
164 * return data is not needed.
167 * @param rxBuf buffer to optionally receive data from spi device
178 * Transfer data to and from SPI device Receive pointer may be null if
179 * return data is not needed.
182 * @param rxBuf buffer to optionally receive data from spi device