Optimized SPI class for access to SD and SDHC flash memory cards.  
 More...
#include <SdSpiDriver.h>
Optimized SPI class for access to SD and SDHC flash memory cards. 
      
        
          | void SdSpiAltDriver::activate | ( |  | ) |  | 
      
 
 
      
        
          | void SdSpiAltDriver::begin | ( | uint8_t | csPin | ) |  | 
      
 
Initialize the SPI bus.
- Parameters
- 
  
    | [in] | csPin | SD card chip select pin. |  
 
 
 
      
        
          | void SdSpiAltDriver::deactivate | ( |  | ) |  | 
      
 
 
      
        
          | uint8_t SdSpiAltDriver::receive | ( |  | ) |  | 
      
 
Receive a byte.
- Returns
- The byte. 
 
 
      
        
          | uint8_t SdSpiAltDriver::receive | ( | uint8_t * | buf, | 
        
          |  |  | size_t | n | 
        
          |  | ) |  |  | 
      
 
Receive multiple bytes.
- Parameters
- 
  
    | [out] | buf | Buffer to receive the data. |  | [in] | n | Number of bytes to receive. |  
 
- Returns
- Zero for no error or nonzero error code. 
 
 
  
  | 
        
          | void SdSpiAltDriver::select | ( |  | ) |  |  | inline | 
 
 
      
        
          | void SdSpiAltDriver::send | ( | uint8_t | data | ) |  | 
      
 
 
      
        
          | void SdSpiAltDriver::send | ( | const uint8_t * | buf, | 
        
          |  |  | size_t | n | 
        
          |  | ) |  |  | 
      
 
Send multiple bytes.
- Parameters
- 
  
    | [in] | buf | Buffer for data to be sent. |  | [in] | n | Number of bytes to send. |  
 
 
 
      
        
          | void SdSpiAltDriver::setPort | ( | uint8_t | portNumber | ) |  | 
      
 
Set SPI port number. 
- Parameters
- 
  
    | [in] | portNumber | Hardware SPI port number. |  
 
 
 
  
  | 
        
          | void SdSpiAltDriver::setSpiSettings | ( | SPISettings | spiSettings | ) |  |  | inline | 
 
Save SPISettings.
- Parameters
- 
  
    | [in] | spiSettings | SPI speed, mode, and byte order. |  
 
 
 
  
  | 
        
          | void SdSpiAltDriver::unselect | ( |  | ) |  |  | inline | 
 
 
The documentation for this class was generated from the following file: