PropWare
C++ objects and CMake build system for Parallax Propeller
Home
Download
Getting Started
Documentation
Reference
About
Related Links
Namespace List
Class List
File List
Examples
Build System
File List
File Members
simple
i2c_busy.c
1
/*
2
* @file i2c_init.c
3
*
4
* @author Andy Lindsay
5
*
6
* @version 0.86
7
*
8
* @copyright Copyright (C) Parallax, Inc. 2013. See end of file for
9
* terms of use (MIT License).
10
*
11
* @brief i2c function source, see simpletools.h for documentation.
12
*
13
* @detail Please submit bug reports, suggestions, and improvements to
14
* this code to editor@parallax.com.
15
*/
16
17
#include "simpletools.h"
18
#include "simplei2c.h"
19
20
HUBTEXT
int
i2c_busy(
i2c
*busID,
int
i2cAddr)
21
{
22
i2cAddr <<= 1;
23
i2cAddr &= -2;
24
int
status = i2c_poll(busID, i2cAddr);
25
return
status;
26
}
27
i2c_st
Definition:
simplei2c.h:25
Generated on Sat Aug 27 2016 00:58:09 for PropWare by
1.8.12