Doxtest  1
doxtest.c File Reference

Testcase for Bug 128063. More...

Go to the source code of this file.

Macros

#define read_bit(databit)
 Read a bit. More...
 

Detailed Description

Testcase for Bug 128063.

Definition in file doxtest.c.

Macro Definition Documentation

#define read_bit (   databit)
Value:
{ \
set_sda(HIGH); \
set_scl(HIGH); \
databit = get_sda(); \
set_scl(LOW); \
}

Read a bit.

Parameters
databitlvalue to receive the read bit (e.g. name of a variable)
Timing diagram
          _______
SCL  ____/  2us   until the first whitespace
     _ __________ __
SDA  _X__________X__
 
              ^- Sampling Point
Precondition
SCL must be LOW
Postcondition
IO_SDA is Hi-Z

Definition at line 27 of file doxtest.c.