Forked library from okini3939/at45db161d
Fork of at45db161d by
Diff: at45db161d.h
- Revision:
- 2:111e8cf6f263
- Parent:
- 0:2e953bbaf3a5
- Child:
- 3:c2cd805585ef
diff -r b379e16fdf6f -r 111e8cf6f263 at45db161d.h --- a/at45db161d.h Thu Sep 15 15:09:56 2011 +0000 +++ b/at45db161d.h Sat Sep 19 10:15:44 2015 +0000 @@ -16,6 +16,7 @@ }; #include "at45db161d_commands.h" +#include "SWSPI.h" /** * @defgroup AT45DB161D AT45DB161D module @@ -51,7 +52,7 @@ * @fn inline uint8_t spi_transfer(uint8_t data) * @brief Transfer a byte via spi * @param data Data to transfer via SPI - * @return The content of the SPI data register (SPDR) + * @return The content of the SPI data register **/ /* inline uint8_t spi_transfer(uint8_t data) @@ -80,7 +81,7 @@ * @{ **/ /** - * Ready/busy status is indicated using bit 7 of the status register. + * @brief Ready/busy status is indicated using bit 7 of the status register. * If bit 7 is a 1, then the device is not busy and is ready to accept * the next command. If bit 7 is a 0, then the device is in a busy * state. @@ -146,7 +147,7 @@ public: /** CTOR **/ ATD45DB161D(PinName mosi, PinName miso, PinName sclk, PinName cs); - ATD45DB161D(SPI &spi, PinName cs); + ATD45DB161D(SWSPI &spi, PinName cs); /** DTOR **/ ~ATD45DB161D(); @@ -297,7 +298,7 @@ private: /* Nothing atm but who knows... */ - SPI _spi; + SWSPI _spi; DigitalOut _cs; };