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

Go to the source code of this file.

Macros

#define USE_SPI_PREFETCH
 

Functions

IOStreamoperator<< (IOStream &outs, SPI::Clock rate)
 

Variables

SPI spi
 

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 SPI.cpp.

Macro Definition Documentation

#define USE_SPI_PREFETCH

Definition at line 26 of file SPI.cpp.

Function Documentation

IOStream& operator<< ( IOStream outs,
SPI::Clock  rate 
)

Write given SPI clock rate to given output stream.

Parameters
[in]outsoutput stream.
[in]rateclock setting value.
Returns
output stream.

Definition at line 307 of file SPI.cpp.

Variable Documentation

SPI spi

Singleton instance of the hardware SPI module.

Definition at line 29 of file SPI.cpp.