42 #include "../CDev.hpp" 44 #include "dev_fs_lib_spi.h" 89 virtual int probe() {
return PX4_OK; }
110 int transfer(uint8_t *
send, uint8_t *recv,
unsigned len);
131 int transferhword(uint16_t *send, uint16_t *recv,
unsigned len);
164 SPI operator=(
const SPI &);
168 bool external() {
return px4_spi_bus_external(get_device_bus()); }
void set_frequency(uint32_t frequency)
Set the SPI bus frequency This is used to change frequency on the fly.
Namespace encapsulating all device framework classes, functions and data.
virtual int probe()
Check for the presence of the device on the bus.
void init()
Activates/configures the hardware registers.
void set_lockmode(enum LockMode mode)
Set the SPI bus locking mode.
LockMode
Locking modes supported by the driver.