 |
PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
|
Go to the documentation of this file.
22 #include <propeller.h>
27 volatile int scl_mask;
28 volatile int scl_mask_inv;
HUBTEXT i2c * i2c_open(i2c *bus, int sclPin, int sdaPin, int sclDrive)
Open an i2c device.
HUBTEXT int i2c_poll(i2c *bus, int addr)
Send i2c start and addr byte. Looks for ACK (0) or NACK (1). This is useful for checking if a device ...
HUBTEXT int i2c_readByte(i2c *bus, int ackState)
Receive i2c byte and reply with ack state. Does not set start or stop. Drives SCL line if i2c device ...
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 int i2c_writeData(i2c *bus, const unsigned char *data, int count)
Send a block of i2c data. Does not set start or stop.
HUBTEXT void i2c_stop(i2c *bus)
Send Signal i2c stop condition on bus.
#define HUBTEXT
HUBTEXT tells compiler to put code into HUB RAM section.