SdFat
Public Member Functions | List of all members
SdCardFactory Class Reference

Setup a SPI card or SDIO card. More...

#include <SdCard.h>

Public Member Functions

SdCardnewCard (SdSpiConfig config)
 
SdCardnewCard (SdioConfig config)
 

Detailed Description

Setup a SPI card or SDIO card.

Member Function Documentation

◆ newCard() [1/2]

SdCard* SdCardFactory::newCard ( SdSpiConfig  config)
inline

Initialize SPI card.

Parameters
[in]configSPI configuration.
Returns
generic card pointer.

◆ newCard() [2/2]

SdCard* SdCardFactory::newCard ( SdioConfig  config)
inline

Initialize SDIO card.

Parameters
[in]configSDIO configuration.
Returns
generic card pointer or nullptr if SDIO is not supported.

The documentation for this class was generated from the following file: