Go to the source code of this file.
Defines | |
#define | READ 1 |
#define | WRITE 0 |
#define | ACK 1 |
#define | NAK 0 |
#define | SDA PC3 |
#define | SCL PC2 |
#define | SDA_DDR DDRC |
#define | SCL_DDR DDRC |
#define | SDA_PIN PINC |
#define | SCL_PIN PINC |
#define | SDA_PORT PORTC |
#define | SCL_PORT PORTC |
#define | NOP asm volatile("nop") |
#define | QDEL NOP; NOP; NOP; NOP; NOP |
#define | HDEL QDEL; QDEL |
#define | SDA_HI SDA_PORT |= (1 << SDA) |
#define | SDA_LO SDA_PORT &= ~(1 << SDA) |
#define | SCL_HI SCL_PORT |= (1 << SCL) |
#define | SCL_LO SCL_PORT &= ~(1 << SCL) |
#define | SCL_TOGGLE HDEL; SCL_HI; HDEL; SCL_LO |
#define | I2C_START SDA_LO; QDEL; SCL_LO |
#define | I2C_STOP HDEL; SCL_HI; QDEL; SDA_HI; HDEL |
Functions | |
void | InitI2C (void) |
unsigned char | WriteI2C (unsigned char byte) |
unsigned char | ReadI2C (unsigned char nak) |
unsigned char | StartI2C (unsigned char device) |
void | StopI2C (void) |
V002 - 10.02.2007 - m.a.r.v.i.n
Absplittung von asuro.h in eigene Header-Datei,
Doxygen Kommentare (KEINE Funktionsänderung)
Definition in file i2c.h.
void InitI2C | ( | void | ) |
unsigned char ReadI2C | ( | unsigned char | nak | ) |
unsigned char StartI2C | ( | unsigned char | device | ) |
void StopI2C | ( | void | ) |
unsigned char WriteI2C | ( | unsigned char | byte | ) |