Main Page   Modules   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

i2c Struct Reference
[I2C driver]

i2c bus controller structure. More...

#include <i2cd.h>

Collaboration diagram for i2c:

[legend]
List of all members.

Public Attributes

i2c_deviceioaddr
 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...

i2cmessm_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...


Detailed Description

i2c bus controller structure.

Definition at line 93 of file i2cd.h.


Member Data Documentation

struct i2c_device* i2c::ioaddr
 

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.

struct i2cmess* i2c::m_buff[MBUFLEN]
 

master buffer.

Definition at line 98 of file i2cd.h.

Referenced by _I2C_master_handler, GenerateStop, and I2C_Start_I2C_Transfer.

int i2c::m_cnt
 

count of jobs in buf.

Definition at line 100 of file i2cd.h.

Referenced by GenerateStop, I2C_init, and I2C_Start_I2C_Transfer.

int i2c::m_dcnt
 

currently sent bytes of msg.

Definition at line 101 of file i2cd.h.

Referenced by _I2C_master_handler, GenerateStop, and I2C_init.

int i2c::m_head
 

head of master queue.

Definition at line 96 of file i2cd.h.

Referenced by I2C_init, and I2C_Start_I2C_Transfer.

ssem_t i2c::m_sem
 

master semaphore.

Definition at line 99 of file i2cd.h.

Referenced by GenerateStop, I2C_init, and I2C_Start_I2C_Transfer.

int i2c::m_state
 

state of handler.

Definition at line 103 of file i2cd.h.

Referenced by _I2C_master_handler, GenerateStop, and I2C_init.

void(* i2c::m_state_handler)(struct i2c *ptr)
 

routine called in master mode.

Referenced by GenerateStop, I2C_init, I2C_inthandler, and I2C_Start_I2C_Transfer.

int i2c::m_tail
 

tail of master queue.

Definition at line 97 of file i2cd.h.

Referenced by _I2C_master_handler, GenerateStop, and I2C_init.

int i2c::mode
 

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.

char i2c::s_ibuff[SBUFLEN]
 

slave input buffer.

Definition at line 107 of file i2cd.h.

Referenced by _I2C_slave_handler, and I2C_slprocess.

int i2c::s_icnt
 

count of char in inqueue.

Definition at line 105 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.

int i2c::s_iptr
 

head of slave inqueue.

Definition at line 104 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.

ssem_t i2c::s_isem
 

slave input semaphore.

Definition at line 106 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.

char i2c::s_obuff[SBUFLEN]
 

slave output buffer.

Definition at line 111 of file i2cd.h.

Referenced by _I2C_slave_handler, and I2C_slprocess.

int i2c::s_ocnt
 

count of char in outqueue.

Definition at line 109 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.

int i2c::s_optr
 

head of slave outqueue.

Definition at line 108 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.

ssem_t i2c::s_osem
 

slave output semaphore.

Definition at line 110 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.

int i2c::s_state
 

state of handler.

Definition at line 113 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_Start_I2C_Transfer.

void(* i2c::s_state_handler)(struct i2c *ptr)
 

routine called in slave mode.

Referenced by _I2C_master_handler, I2C_init, and I2C_inthandler.

char i2c::s_status
 

exception flags.

Definition at line 114 of file i2cd.h.

Referenced by _I2C_slave_handler, I2C_init, and I2C_slprocess.


The documentation for this struct was generated from the following file:
Generated on Thu Feb 20 15:39:00 2003 for cubeOS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002