Uzetherm
Speaking thermometer with video output
Defines | Functions
i2c_software_master.h File Reference

I2C software master defines and build options. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define F_CPU   28000000UL

Functions

void i2c_master_init (void)
void i2c_master_clk_toggle (void)
void i2c_master_start (void)
void i2c_master_stop (void)
unsigned char i2c_try_scl (unsigned char start_trials)
unsigned char i2c_master_write (unsigned char b)
unsigned char i2c_master_read (unsigned char a)

Detailed Description

I2C software master defines and build options.

Author:
Artur Funk

Function Documentation

void i2c_master_clk_toggle ( void  )

toggle clock signal (SCL)

Parameters:
void
Returns:
none

Here is the call graph for this function:

Here is the caller graph for this function:

void i2c_master_init ( void  )

init I2C master

Parameters:
void
Returns:
none

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char i2c_master_read ( unsigned char  a)

read one byte from I2C device

Parameters:
statusof stop condition ACK or NACK
Returns:
byte read from I2C device

Here is the call graph for this function:

Here is the caller graph for this function:

void i2c_master_start ( void  )

start I2C master

Parameters:
void
Returns:
none

Here is the call graph for this function:

Here is the caller graph for this function:

void i2c_master_stop ( void  )

stop I2C master

Parameters:
void
Returns:
none

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char i2c_master_write ( unsigned char  b)

Send one byte to I2C device

Parameters:
databyte to be transfered
Returns:
status of stop condition ACK or NACK

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char i2c_try_scl ( unsigned char  start_trials)

wait 50 times if SCL is hold to low

Parameters:
startvalue
Return values:
0SCL is low
1SCL is high

Here is the caller graph for this function:

 All Data Structures Files Functions Variables Defines