base SD file system template class.
More...
#include <SdFs.h>
template<class Vol>
class SdBase< Vol >
base SD file system template class.
template<class Vol>
bool SdBase< Vol >::begin |
( |
uint8_t |
csPin = SS | ) |
|
|
inline |
Initialize SD card and file system.
- Parameters
-
[in] | csPin | SD card chip select pin. |
- Returns
- true for success else false.
template<class Vol>
bool SdBase< Vol >::begin |
( |
uint8_t |
csPin, |
|
|
SPISettings |
spiSettings |
|
) |
| |
|
inline |
Initialize SD card and file system.
- Parameters
-
[in] | csPin | SD card chip select pin. |
[in] | spiSettings | SPI speed, mode, and bit order. |
- Returns
- true for success else false.
Initialize SD card and file system for SPI mode.
- Parameters
-
[in] | spiConfig | SPI configuration. |
- Returns
- true for success else false.
Initialize SD card and file system for SDIO mode.
- Parameters
-
[in] | sdioConfig | SDIO configuration. |
- Returns
- true for success else false.
- Returns
- Pointer to SD card object.
Initialize SD card in SPI mode.
- Parameters
-
[in] | spiConfig | SPI configuration. |
- Returns
- true for success else false.
Initialize SD card in SDIO mode.
- Parameters
-
[in] | sdioConfig | SDIO configuration. |
- Returns
- true for success else false.
template<class Vol>
void SdBase< Vol >::errorHalt |
( |
Print * |
pr | ) |
|
|
inline |
Print error info and halt.
- Parameters
-
template<class Vol>
void SdBase< Vol >::errorHalt |
( |
| ) |
|
|
inline |
Print error info to Serial and halt.
template<class Vol>
void SdBase< Vol >::errorHalt |
( |
Print * |
pr, |
|
|
const char * |
msg |
|
) |
| |
|
inline |
Print error info and halt.
- Parameters
-
[in] | pr | Print destination. |
[in] | msg | Message to print. |
template<class Vol>
void SdBase< Vol >::errorHalt |
( |
Print * |
pr, |
|
|
const __FlashStringHelper * |
msg |
|
) |
| |
|
inline |
Print msg and halt.
- Parameters
-
[in] | pr | Print destination. |
[in] | msg | Message to print. |
template<class Vol>
void SdBase< Vol >::errorHalt |
( |
const __FlashStringHelper * |
msg | ) |
|
|
inline |
Print msg to Serial and halt.
- Parameters
-
template<class Vol>
void SdBase< Vol >::errorHalt |
( |
const char * |
msg | ) |
|
|
inline |
Print error info and halt.
- Parameters
-
template<class Vol>
void SdBase< Vol >::initErrorHalt |
( |
Print * |
pr | ) |
|
|
inline |
Print error info and halt.
- Parameters
-
template<class Vol>
void SdBase< Vol >::initErrorHalt |
( |
| ) |
|
|
inline |
Print error info and halt.
template<class Vol>
void SdBase< Vol >::printFatType |
( |
Print * |
pr | ) |
|
|
inline |
Print volume FAT/exFAT type.
- Parameters
-
template<class Vol>
void SdBase< Vol >::printSdError |
( |
print_t * |
pr | ) |
|
|
inline |
Print error info and return.
- Parameters
-
template<class Vol>
void SdBase< Vol >::printSdErrorCode |
( |
Print * |
pr | ) |
|
|
inline |
Print SD errorCode and errorData.
- Parameters
-
template<class Vol>
uint8_t SdBase< Vol >::sdErrorCode |
( |
| ) |
|
|
inline |
- Returns
- SD card error code.
template<class Vol>
uint8_t SdBase< Vol >::sdErrorData |
( |
| ) |
|
|
inline |
- Returns
- SD card error data.
template<class Vol>
bool SdBase< Vol >::volumeBegin |
( |
| ) |
|
|
inline |
Initialize file system after call to cardBegin.
- Returns
- true for success else false.
The documentation for this class was generated from the following file:
- ArduinoSdFs/libraries/SdFs/src/SdFs.h