AP_HAL: added set_chip_select() API

for devices with unusual timings
This commit is contained in:
Andrew Tridgell 2016-11-18 20:54:48 +11:00
parent 638e89bd1d
commit 954728c9e9
1 changed files with 7 additions and 0 deletions

View File

@ -181,6 +181,13 @@ public:
*/
virtual bool unregister_callback(PeriodicHandle h) { return false; }
/*
* support for direct control of SPI chip select. Needed for
* devices with unusual SPI transfer patterns that include
* specific delays
*/
virtual bool set_chip_select(bool set) { return false; }
/**
* Some devices connected on the I2C or SPI bus require a bit to be set on
* the register address in order to perform a read operation. This sets a