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 (SdioConfig config)
 
SdCardnewCard (SdSpiConfig config)
 

Detailed Description

Setup a SPI card or SDIO card.

Member Function Documentation

◆ newCard() [1/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.

◆ newCard() [2/2]

SdCard* SdCardFactory::newCard ( SdSpiConfig  config)
inline

Initialize SPI card.

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

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