i2c_hw.h File Reference

Outputs i2c interfaces (clock+data). More...

#include "pic_utils.h"
#include "config.h"
Include dependency graph for i2c_hw.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.

Detailed Description

Covers standard i2c-like interfaces (clock + data) and Sure Electronics displays which are a little different

Definition in file i2c_hw.h.


Function Documentation

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().

Here is the caller graph for this function:

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


Generated on Wed Dec 8 13:47:15 2010 for Pic Pack by  doxygen 1.6.1