COSA
An Object-Oriented Platform for Arduino Programming
SD.cpp File Reference
#include "SD.hh"
#include "Cosa/RTT.hh"
Include dependency graph for SD.cpp:

Go to the source code of this file.

Macros

#define USE_SPI_PREFETCH
 
#define USE_CRCTAB
 

Functions

static uint8_t crc7 (const void *buf, size_t size)
 
static uint16_t _crc_xmodem_update (uint16_t crc, uint8_t data)
 

Variables

static const uint16_t crctab[] __PROGMEM
 

Detailed Description

Version
1.0

License

Copyright (C) 2012-2015, Mikael Patel

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

This file is part of the Arduino Che Cosa project.

Definition in file SD.cpp.

Macro Definition Documentation

#define USE_CRCTAB

Definition at line 26 of file SD.cpp.

#define USE_SPI_PREFETCH

Definition at line 25 of file SD.cpp.

Function Documentation

static uint16_t _crc_xmodem_update ( uint16_t  crc,
uint8_t  data 
)
inlinestatic

Definition at line 86 of file SD.cpp.

static uint8_t crc7 ( const void *  buf,
size_t  size 
)
inlinestatic

Definition at line 32 of file SD.cpp.

Variable Documentation

const uint16_t crctab [] __PROGMEM
static

Definition at line 47 of file SD.cpp.