Doxtest  1
doxtest.c
Go to the documentation of this file.
1 
2 /**
3  \file doxtest.c
4 
5  \brief Testcase for Bug 128063
6  */
7 
8 /**
9  \brief Read a bit
10 
11  \param databit lvalue to receive the read bit (e.g. name of a variable)
12 
13  \par Timing diagram
14  <pre>
15  _______
16  SCL ____/ 2us \__The_characters_after_the_backslash_are_missing_in_the_output until the first whitespace
17  _ __________ __
18  SDA _X__________X__
19  &nbsp;
20  ^- Sampling Point
21  </pre>
22 
23  \pre SCL must be LOW
24  \post IO_SDA is Hi-Z
25  */
26 
27 #define read_bit(databit) \
28 { \
29  set_sda(HIGH); \
30  set_scl(HIGH); \
31  databit = get_sda(); \
32  set_scl(LOW); \
33 }