Digital IO
Arduino/libraries/DigitalIO/I2cConstants.h
Go to the documentation of this file.
00001 /* Arduino I2C Library
00002  * Copyright (C) 2013 by William Greiman
00003  *
00004  * This file is part of the Arduino I2C Library
00005  *
00006  * This Library is free software: you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation, either version 3 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This Library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with the Arduino I2C Library.  If not, see
00018  * <http://www.gnu.org/licenses/>.
00019  */
00028 #ifndef I2cConstants_h
00029 #define I2cConstants_h
00030 #include <inttypes.h>
00031 
00034 const uint8_t I2C_CONTINUE =  0;
00035 
00038 const uint8_t I2C_STOP      = 1;
00039 
00042 const uint8_t I2C_REP_START = 2;
00043 
00045 const uint8_t I2C_100KHZ    = 0;
00046 
00048 const uint8_t I2C_400KHZ    = 1;
00049 
00051 const uint8_t I2C_READ = 1;
00052 
00054 const uint8_t I2C_WRITE = 0;
00055 
00057 const uint8_t I2C_NO_PULLUPS = 0;
00058 
00060 const uint8_t I2C_INTERNAL_PULLUPS = 1;
00061 #endif  // I2cConstants_h
00062 
 All Classes Files Functions Variables Defines