 |
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
21 int memAddr,
int memAddrCount,
22 unsigned char *data,
int dataCount)
41 memAddrCount = - memAddrCount;
53 dataCount = -dataCount;
55 memcpy(temp, data, dataCount);
HUBTEXT void i2c_start(i2c *bus)
Signal i2c start condition on bus.
HUBTEXT int i2c_readData(i2c *bus, unsigned char *data, int count)
Receive a block of i2c data. Does not send start or stop conditions.
HUBTEXT int i2c_writeByte(i2c *bus, int byte)
Send i2c byte and return acknowledgement from device. Does not set start or stop. Drives SCL line i...
HUBTEXT void i2c_stop(i2c *bus)
Send Signal i2c stop condition on bus.
HUBTEXT int i2c_writeData(i2c *bus, const unsigned char *data, int count)
Send a block of i2c data. Does not set start or stop.
Provides simple i2c start, stop, read, and write functions. See simpletools library for additional I2...
#define HUBTEXT
HUBTEXT tells compiler to put code into HUB RAM section.