Lucas De Marchi
66f644c50d
AP_HAL: add interface for SPIDevice devices
...
In order to interoperate with SPIDeviceDriver this is re-using the same
SPIDeviceManager interface.
9 years ago
Lucas De Marchi
9d5fb97819
Global: rename enum SPIDevice to SPIDeviceType
...
Free the SPIDevice name so to have a consistent name for I2C/SPI device
classes.
9 years ago
Lucas De Marchi
f69208d47d
AP_HAL: remove state leftover from SPIDeviceDriver
...
This was previously used to allow to save a state in a SPIDriver so we
could synchronize the initialization of AP_Compass and
AP_InertialSensor.
It was only used by MPU9250 and is not used anymore since the move to
AuxiliaryBus initialization and it's not used anymore since c3dae6f
("AP_InertialSensor: MPU9250: Remove methods not used anymore")
9 years ago
Lucas De Marchi
036eb21c09
AP_HAL: remove init() method with unused argument
9 years ago
Lucas De Marchi
6b1c5e6f72
AP_HAL: add init() method without argument
...
The argument in init() is not used by any implementation. Add a second
method without it so the HAL implementation can used it instead. Later
the unused method will be removed.
9 years ago
mirkix
f48bdc281f
AP_HAL: Add support for using SPI devices of the same type.
10 years ago
Gustavo Jose de Sousa
e05928a7e8
AP_HAL: make SPIDeviceDriver::transaction() return success or failure
10 years ago
Lucas De Marchi
384d650a23
AP_HAL: allow to have spi device state
10 years ago
Andrew Tridgell
5ccf8409b4
AP_HAL: added an optional spi.set_bus_speed() API
...
this will be used by MPU6000 on APM2 to change speed after init
11 years ago
Andrew Tridgell
6415f00ce3
AP_HAL: added a bulk transfer() method
...
very useful for dataflash
12 years ago
Pat Hickey
d2f7402243
AP_HAL: add bulk transaction to SPIDeviceDriver
12 years ago
Pat Hickey
b79bd01761
SPIDriver: namespace explicit to better permit copypasta
12 years ago
Pat Hickey
f543cede01
AP_HAL & AP_HAL_AVR: new SPI driver model
12 years ago
Pat Hickey
b0d8f43111
AP_HAL_AVR: Implemented SPIDriver based on Arduino, but it doesn't work yet
...
* I don't have an APM2.5 board I can easily connect a logic analyzer to see
the traffic on the bus...
12 years ago
Pat Hickey
dc03b1190f
AP_HAL: Stub implementations of pure virtual AP_HAL classes
12 years ago