AP_HAL:SPIDevice: Added functions for spi registered device.

This commit is contained in:
hiro2233 2016-08-21 00:29:11 -04:00 committed by Lucas De Marchi
parent 16c1bc1b0e
commit 1a8fa6ac5a

View File

@ -63,6 +63,12 @@ public:
{
return nullptr;
}
/* Return the number of SPI devices currently registered. */
virtual uint8_t get_count() { return 0; }
/* Get spi device name at @idx */
virtual const char *get_device_name(uint8_t idx) { return 0; }
};
}