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: spi_functions.h
- Revision:
- 2:ac580453441f
- Parent:
- 0:15d9f9050d21
--- a/spi_functions.h Fri Jun 24 17:40:37 2016 +0000 +++ b/spi_functions.h Tue Jun 28 10:12:00 2016 +0000 @@ -5,4 +5,10 @@ int sendTransfer(unsigned short data, SPI &dac_port, DigitalOut &sync); -int mySPISend( unsigned short data, SPI &dac_port, DigitalOut &sync); \ No newline at end of file +int mySPISend( unsigned short data, SPI &dac_port, DigitalOut &sync); + +int powerMode(SPI &dac_port, DigitalOut &sync, int mode); + +int setPort(SPI &dac_port, DigitalOut &sync, int myPort, int newState); + +int mySPIRead(Serial &serialOut, unsigned short data, SPI &dac_port, DigitalOut &sync); \ No newline at end of file