i2c2.hpp
Go to the documentation of this file.
1 /*
2  * SocialLedge.com - Copyright (C) 2013
3  *
4  * This file is part of free software framework for embedded processors.
5  * You can use it and/or distribute it as long as this copyright header
6  * remains unmodified. The code is free for personal use and requires
7  * permission to use in a commercial product.
8  *
9  * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
10  * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
12  * I SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
13  * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
14  *
15  * You can reach the author of this software at :
16  * p r e e t . w i k i @ g m a i l . c o m
17  */
18 
25 #ifndef i2c2hpp_
26 #define i2c2hpp_
27 
28 #include "singleton_template.hpp"
29 #include "i2c_base.hpp"
30 
31 
32 
40 class I2C2 : public I2C_Base, public SingletonTemplate<I2C2>
41 {
42  public:
44  bool init(unsigned int speedInKhz);
45 
46  private:
47  I2C2();
48  friend class SingletonTemplate<I2C2>;
49 };
50 
51 
57  I2CAddr_TemperatureSensor = 0x90, /* AD0 pin tied to Gnd */
59 };
60 
61 
62 
63 #endif /* i2c2.hpp_ */
Definition: i2c2.hpp:56
Definition: i2c2.hpp:57
Definition: i2c2.hpp:40
Definition: i2c_base.hpp:68
Provides I2C Base class functionality for I2C peripherals.
bool init(unsigned int speedInKhz)
Initializes I2C2 at the given.
Definition: i2c2.cpp:40
Board_I2C_Device_Addresses
Definition: i2c2.hpp:55
Definition: i2c2.hpp:58
Definition: singleton_template.hpp:55