| ... | @@ -8,7 +8,9 @@ Formerly, these function were provided by the infamous `BusTemplate.h`. |
... | @@ -8,7 +8,9 @@ Formerly, these function were provided by the infamous `BusTemplate.h`. |
|
|
SPIDriver allow for sensors working with different bus configurations (baud rate, polarity, phase etc) to work togheter on the same bus, by appropriately reconfiguring the bus before each transaction.
|
|
SPIDriver allow for sensors working with different bus configurations (baud rate, polarity, phase etc) to work togheter on the same bus, by appropriately reconfiguring the bus before each transaction.
|
|
|
|
|
|
|
|
## General architecture
|
|
## General architecture
|
|
|

|
|
|
|
|
|
<div align="center"><img src="images/spi/_UML__SPIDriver__1_.png" height="700"/><br/><i></i></div><br>
|
|
|
|
|
|
|
### SPIBusInterface
|
|
### SPIBusInterface
|
|
|
Low level access to the SPI bus is provided trough the interface SPIBusInterfaces, a virtual class the provides all the methods needed to perform operations on the bus:
|
|
Low level access to the SPI bus is provided trough the interface SPIBusInterfaces, a virtual class the provides all the methods needed to perform operations on the bus:
|
|
|
- `configure(...)` Configures the bus with the provided parameters
|
|
- `configure(...)` Configures the bus with the provided parameters
|
| ... | | ... | |