COSA
An Object-Oriented Platform for Arduino Programming
TWI.hh File Reference
#include "Cosa/Types.h"
#include "Cosa/Event.hh"
#include <avr/power.h>
Include dependency graph for TWI.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TWI
 
class  TWI::Driver
 
class  TWI::Slave
 

Macros

#define TWI_STATUS(x)   ((x) >> 3)
 

Variables

TWI twi
 

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 TWI.hh.

Macro Definition Documentation

#define TWI_STATUS (   x)    ((x) >> 3)

Macro to generate more compact status number sequence. And improve compiler code generation.

Definition at line 384 of file TWI.hh.

Variable Documentation

TWI twi

Two-wire hardware interface module. Singleton on Arduino hardware.

Definition at line 27 of file TWI.cpp.