MAV'RIC
|
Public Member Functions | |
virtual bool | init (void)=0 |
Hardware initialization. | |
virtual bool | write (uint8_t *out_buffer, uint32_t nbytes)=0 |
Write data to the SPI bus. | |
virtual bool | read (uint8_t *in_buffer, uint32_t nbytes)=0 |
Read data from the SPI bus. | |
virtual bool | transfer (uint8_t *out_buffer, uint8_t *in_buffer, uint32_t nbytes)=0 |
Write and Read data to/from the SPI bus. |
virtual bool Spi::init | ( | void | ) | [pure virtual] |
Hardware initialization.
Implemented in Spi_avr32, Spi_stm32, and Spi_chibios.
virtual bool Spi::read | ( | uint8_t * | in_buffer, |
uint32_t | nbytes | ||
) | [pure virtual] |
Read data from the SPI bus.
in_buffer | Data buffer |
nbytes | Number of bytes to read |
Implemented in Spi_stm32, and Spi_chibios.
virtual bool Spi::transfer | ( | uint8_t * | out_buffer, |
uint8_t * | in_buffer, | ||
uint32_t | nbytes | ||
) | [pure virtual] |
Write and Read data to/from the SPI bus.
out_buffer | Data buffer (output) |
in_buffer | Data buffer (input) |
nbytes | Number of bytes to write/read |
Implemented in Spi_avr32, Spi_stm32, and Spi_chibios.
virtual bool Spi::write | ( | uint8_t * | out_buffer, |
uint32_t | nbytes | ||
) | [pure virtual] |
Write data to the SPI bus.
out_buffer | Data buffer |
nbytes | Number of bytes to write |
Implemented in Spi_stm32, and Spi_chibios.