Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: DRV8323/DRV.h
- Revision:
- 52:8e74c22ed89f
- Parent:
- 46:2d4b1dafcfe3
--- a/DRV8323/DRV.h Wed Jul 17 03:40:12 2019 +0000 +++ b/DRV8323/DRV.h Sun Jul 21 21:42:49 2019 +0000 @@ -164,10 +164,12 @@ void disable_gd(void); void calibrate(void); void print_faults(); + int get_fault(); private: SPI *_spi; DigitalOut *_cs; + int fault; uint16_t spi_write(uint16_t val); };