Uzetherm
Speaking thermometer with video output
|
I2C software master defines and build options. More...
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) |
I2C software master defines and build options.
void i2c_master_clk_toggle | ( | void | ) |
toggle clock signal (SCL)
void |
void i2c_master_init | ( | void | ) |
init I2C master
void |
unsigned char i2c_master_read | ( | unsigned char | a | ) |
read one byte from I2C device
status | of stop condition ACK or NACK |
void i2c_master_start | ( | void | ) |
start I2C master
void |
void i2c_master_stop | ( | void | ) |
stop I2C master
void |
unsigned char i2c_master_write | ( | unsigned char | b | ) |
Send one byte to I2C device
data | byte to be transfered |
unsigned char i2c_try_scl | ( | unsigned char | start_trials | ) |
wait 50 times if SCL is hold to low
start | value |
0 | SCL is low |
1 | SCL is high |