#include <i2cd.h>
Collaboration diagram for i2c:
Public Attributes | |
| i2c_device * | ioaddr | 
| device address of this unit. More... | |
| int | mode | 
| selector for master/slave. More... | |
| int | m_head | 
| head of master queue. More... | |
| int | m_tail | 
| tail of master queue. More... | |
| i2cmess * | m_buff [MBUFLEN] | 
| master buffer. More... | |
| ssem_t | m_sem | 
| master semaphore. More... | |
| int | m_cnt | 
| count of jobs in buf. More... | |
| int | m_dcnt | 
| currently sent bytes of msg. More... | |
| void(* | m_state_handler )(struct i2c *ptr) | 
| routine called in master mode. More... | |
| int | m_state | 
| state of handler. More... | |
| int | s_iptr | 
| head of slave inqueue. More... | |
| int | s_icnt | 
| count of char in inqueue. More... | |
| ssem_t | s_isem | 
| slave input semaphore. More... | |
| char | s_ibuff [SBUFLEN] | 
| slave input buffer. More... | |
| int | s_optr | 
| head of slave outqueue. More... | |
| int | s_ocnt | 
| count of char in outqueue. More... | |
| ssem_t | s_osem | 
| slave output semaphore. More... | |
| char | s_obuff [SBUFLEN] | 
| slave output buffer. More... | |
| void(* | s_state_handler )(struct i2c *ptr) | 
| routine called in slave mode. More... | |
| int | s_state | 
| state of handler. More... | |
| char | s_status | 
| exception flags. More... | |
Definition at line 93 of file i2cd.h.
      
  | 
  
| 
 device address of this unit. 
 Definition at line 94 of file i2cd.h. Referenced by _I2C_master_handler, _I2C_slave_handler, I2C_init, I2C_slprocess, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 master buffer. 
 Definition at line 98 of file i2cd.h. Referenced by _I2C_master_handler, GenerateStop, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 count of jobs in buf. 
 Definition at line 100 of file i2cd.h. Referenced by GenerateStop, I2C_init, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 currently sent bytes of msg. 
 Definition at line 101 of file i2cd.h. Referenced by _I2C_master_handler, GenerateStop, and I2C_init.  | 
  
      
  | 
  
| 
 head of master queue. 
 Definition at line 96 of file i2cd.h. Referenced by I2C_init, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 master semaphore. 
 Definition at line 99 of file i2cd.h. Referenced by GenerateStop, I2C_init, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 state of handler. 
 Definition at line 103 of file i2cd.h. Referenced by _I2C_master_handler, GenerateStop, and I2C_init.  | 
  
      
  | 
  
| 
 routine called in master mode. 
 Referenced by GenerateStop, I2C_init, I2C_inthandler, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 tail of master queue. 
 Definition at line 97 of file i2cd.h. Referenced by _I2C_master_handler, GenerateStop, and I2C_init.  | 
  
      
  | 
  
| 
 selector for master/slave. 
 Definition at line 95 of file i2cd.h. Referenced by _I2C_master_handler, GenerateStop, I2C_init, I2C_inthandler, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 slave input buffer. 
 Definition at line 107 of file i2cd.h. Referenced by _I2C_slave_handler, and I2C_slprocess.  | 
  
      
  | 
  
| 
 count of char in inqueue. 
 Definition at line 105 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.  | 
  
      
  | 
  
| 
 head of slave inqueue. 
 Definition at line 104 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.  | 
  
      
  | 
  
| 
 slave input semaphore. 
 Definition at line 106 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.  | 
  
      
  | 
  
| 
 slave output buffer. 
 Definition at line 111 of file i2cd.h. Referenced by _I2C_slave_handler, and I2C_slprocess.  | 
  
      
  | 
  
| 
 count of char in outqueue. 
 Definition at line 109 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.  | 
  
      
  | 
  
| 
 head of slave outqueue. 
 Definition at line 108 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.  | 
  
      
  | 
  
| 
 slave output semaphore. 
 Definition at line 110 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.  | 
  
      
  | 
  
| 
 state of handler. 
 Definition at line 113 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_Start_I2C_Transfer.  | 
  
      
  | 
  
| 
 routine called in slave mode. 
 Referenced by _I2C_master_handler, I2C_init, and I2C_inthandler.  | 
  
      
  | 
  
| 
 exception flags. 
 Definition at line 114 of file i2cd.h. Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.  | 
  
1.2.14 written by Dimitri van Heesch,
 © 1997-2002