updates
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();