LMS 2012
Main Page
Related Pages
Data Structures
Files
File List
Globals
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
{
30
MODE2_SUCCESS
= 0,
31
MODE2_BOOTING
= 1,
32
MODE2_FALIURE
= 2
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);
43
UBYTE
I2cGetBootStatus
(
void
);
44
45
46
#endif
/* C_I2C_H_ */
lms2012.h
DataToMode2Decoding
UWORD DataToMode2Decoding(UBYTE *pBuf, UWORD Length)
Definition:
c_i2c.c:776
I2cExit
void I2cExit(void)
Definition:
c_i2c.c:188
I2cInit
RESULT I2cInit(READBUF *pBuf, WRITEBUF *pWriteBuf, char *pBundleId, char *pBundleSeedId)
Definition:
c_i2c.c:168
WRITEBUF
Definition:
c_bt.h:113
I2cStart
void I2cStart(void)
Definition:
c_i2c.c:198
UBYTE
unsigned char UBYTE
Basic Type used to symbolise 8 bit unsigned values.
Definition:
lmstypes.h:29
MODE2_FALIURE
Definition:
c_i2c.h:32
MODE2_BOOTING
Definition:
c_i2c.h:31
UWORD
unsigned short UWORD
Basic Type used to symbolise 16 bit unsigned values.
Definition:
lmstypes.h:30
READBUF
Definition:
c_bt.h:103
I2cGetBootStatus
UBYTE I2cGetBootStatus(void)
Definition:
c_i2c.c:809
MODE2_SUCCESS
Definition:
c_i2c.h:30
I2cStop
void I2cStop(void)
Definition:
c_i2c.c:213
ev3sources-master-2
lms2012
c_com
source
c_i2c.h
Generated on Tue Jul 29 2014 19:20:26 for LMS 2012 by
1.8.7