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.
Fork of SDFileSystem by
Diff: SDFileSystem.h
- Revision:
- 20:2c1e8d442f68
- Parent:
- 18:2286a4e7fa31
- Child:
- 21:d10a519c0910
--- a/SDFileSystem.h Thu Nov 26 16:19:53 2015 +0000 +++ b/SDFileSystem.h Tue Dec 08 16:02:44 2015 +0000 @@ -102,9 +102,19 @@ */ SDFileSystem(PinName mosi, PinName miso, PinName sclk, PinName cs, const char* name, PinName cd = NC, SwitchType cdtype = SWITCH_NONE, int hz = 1000000); + /** Determine whether or not a card is present + * + * @returns + * 'true' if a card is present, + * 'false' if no card is present. + */ + bool card_present(); + /** Get the detected SD/MMC card type * * @returns The detected card type as a CardType enum. + * + * @note Valid after the filesystem has been mounted. */ SDFileSystem::CardType card_type();