LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
c_i2c.h
Go to the documentation of this file.
1 /*
2  * LEGO® MINDSTORMS EV3
3  *
4  * Copyright (C) 2010-2013 The LEGO Group
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef C_I2C_H_
22 #define C_I2C_H_
23 
24 
25 #include "lms2012.h"
26 
27 
28 enum
29 {
33 };
34 
35 RESULT I2cInit(READBUF *pBuf, WRITEBUF *pWriteBuf, char *pBundleId, char *pBundleSeedId);
36 
37 void I2cExit(void);
38 
39 void I2cStart(void);
40 void I2cStop(void);
41 
42 UWORD DataToMode2Decoding(UBYTE *pBuf, UWORD Length);
44 
45 
46 #endif /* C_I2C_H_ */
UWORD DataToMode2Decoding(UBYTE *pBuf, UWORD Length)
Definition: c_i2c.c:776
void I2cExit(void)
Definition: c_i2c.c:188
RESULT I2cInit(READBUF *pBuf, WRITEBUF *pWriteBuf, char *pBundleId, char *pBundleSeedId)
Definition: c_i2c.c:168
Definition: c_bt.h:113
void I2cStart(void)
Definition: c_i2c.c:198
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.
Definition: lmstypes.h:29
unsigned short UWORD
Basic Type used to symbolise 16 bit unsigned values.
Definition: lmstypes.h:30
Definition: c_bt.h:103
UBYTE I2cGetBootStatus(void)
Definition: c_i2c.c:809
void I2cStop(void)
Definition: c_i2c.c:213