|
MAV'RIC
|
SPI peripherals driver using CHibios/HAL. More...
#include <spi_chibios.hpp>


Classes | |
| struct | conf_t |
| Configuration structure. More... | |
Public Member Functions | |
| Spi_chibios (conf_t config) | |
| Constructor. | |
| bool | init (void) |
| Hardware initialization. | |
| bool | write (uint8_t *out_buffer, uint32_t nbytes) |
| Write data to the SPI bus. | |
| bool | read (uint8_t *in_buffer, uint32_t nbytes) |
| Read data from the SPI bus. | |
| bool | transfer (uint8_t *out_buffer, uint8_t *in_buffer, uint32_t nbytes) |
| Write and Read data to/from the SPI bus. | |
SPI peripherals driver using CHibios/HAL.
| Spi_chibios::Spi_chibios | ( | conf_t | config | ) |
Constructor.
| config | Device configuration |
| bool Spi_chibios::init | ( | void | ) | [virtual] |
| bool Spi_chibios::read | ( | uint8_t * | in_buffer, |
| uint32_t | nbytes | ||
| ) | [virtual] |
Read data from the SPI bus.
| in_buffer | Data buffer |
| nbytes | Number of bytes to read |
Implements Spi.
| bool Spi_chibios::transfer | ( | uint8_t * | out_buffer, |
| uint8_t * | in_buffer, | ||
| uint32_t | nbytes | ||
| ) | [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 |
Implements Spi.
| bool Spi_chibios::write | ( | uint8_t * | out_buffer, |
| uint32_t | nbytes | ||
| ) | [virtual] |
Write data to the SPI bus.
| out_buffer | Data buffer |
| nbytes | Number of bytes to write |
Implements Spi.
1.7.6.1