Outputs i2c interfaces (clock+data). More...
#include "pic_utils.h"
#include "config.h"
Go to the source code of this file.
Functions | |
void | i2c_pulse_0 () |
i2c test routine | |
void | i2c_pulse_1 () |
i2c test routine | |
void | i2c_setup_io () |
Setup ports and pins for i2c output. | |
void | i2c_write (uns8 data) |
Send a byte of data using software i2c. | |
void | i2c_write_lsb (uns8 data) |
Send a byte of data using software i2c. |
Covers standard i2c-like interfaces (clock + data) and Sure Electronics displays which are a little different
Definition in file i2c_hw.h.
void i2c_pulse_0 | ( | ) |
void i2c_pulse_1 | ( | ) |
void i2c_setup_io | ( | ) |
Setup ports and pins for i2c output
Setup ports and pins for i2c output.
Set port and pins correctly for I2C communication
Definition at line 231 of file i2c.c.
References make_input, and make_output.
Referenced by hmc6352_setup_io(), and rtc_setup_io().
void i2c_write | ( | uns8 | data | ) |
Sends a byte of data MSB first, data only changes on clock low
void i2c_write_lsb | ( | uns8 | data | ) |
Sends a byte of data LSB first, data only changes on clock low