Wixel SDK
Main Page
Modules
Data Structures
Files
File List
Globals
include
i2c.h
Go to the documentation of this file.
1
11
#ifndef _I2C_H
12
#define _I2C_H
13
14
#include <
cc2511_types.h
>
15
19
extern
uint8
DATA
i2cPinScl
;
20
24
extern
uint8
DATA
i2cPinSda
;
25
31
extern
BIT
i2cTimeoutOccurred
;
32
41
void
i2cSetFrequency
(
uint16
freqKHz);
42
49
void
i2cSetTimeout
(
uint16
timeoutMs);
50
53
void
i2cStart
(
void
);
54
57
void
i2cStop
(
void
);
58
68
BIT
i2cWriteByte
(
uint8
byte);
69
80
uint8
i2cReadByte
(
BIT
nack);
81
82
#endif
DATA
#define DATA
Definition:
cc2511_types.h:52
i2cPinSda
uint8 DATA i2cPinSda
Definition:
i2c.c:17
i2cStart
void i2cStart(void)
Definition:
i2c.c:111
cc2511_types.h
i2cSetTimeout
void i2cSetTimeout(uint16 timeoutMs)
Definition:
i2c.c:48
i2cTimeoutOccurred
BIT i2cTimeoutOccurred
Definition:
i2c.c:29
i2cPinScl
uint8 DATA i2cPinScl
Definition:
i2c.c:16
i2cSetFrequency
void i2cSetFrequency(uint16 freqKHz)
Definition:
i2c.c:35
i2cReadByte
uint8 i2cReadByte(BIT nack)
Definition:
i2c.c:217
BIT
__bit BIT
Definition:
cc2511_types.h:32
uint16
unsigned short uint16
Definition:
cc2511_types.h:15
i2cWriteByte
BIT i2cWriteByte(uint8 byte)
Definition:
i2c.c:190
uint8
unsigned char uint8
Definition:
cc2511_types.h:9
i2cStop
void i2cStop(void)
Definition:
i2c.c:93
Generated on Mon Sep 28 2015 11:52:10 for Wixel SDK by
1.8.10