[Tinyos-2-commits] CVS: tinyos-2.x/doc/txt tep117.txt, 1.1.2.4, 1.1.2.5

Philip Buonadonna philipb at users.sourceforge.net
Tue Sep 26 14:46:18 PDT 2006


Update of /cvsroot/tinyos/tinyos-2.x/doc/txt
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11221

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	tep117.txt 
Log Message:
interim modifications to TEP117

Index: tep117.txt
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/doc/txt/tep117.txt,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -C2 -d -r1.1.2.4 -r1.1.2.5
*** tep117.txt	25 Jan 2006 18:13:43 -0000	1.1.2.4
--- tep117.txt	26 Sep 2006 21:46:16 -0000	1.1.2.5
***************
*** 178,182 ****
  
   interface SPIByte {
!    async command error_t write( uint8_t tx, uint8_t* rx );
   }
  
--- 178,182 ----
  
   interface SPIByte {
!    async command void write( uint8_t tx, uint8_t* rx );
   }
  
***************
*** 198,214 ****
  also known as a two-wire interface. 
  
! The I2CPacket interface provides for asynchronous Master mode communication on an
! I2C with application framed packets.  It supports only single
! transfers with a start-stop condition around each transfer.
  
  Platforms providing I2C capability MUST provide this interface. ::
  
!  interface I2CPacket {
!    async command result_t readPacket(uint16_t _addr, uint8_t _length, uint8_t* _data);
!    async command result_t writePacket(uint16_t _addr, uint8_t _length, uint8_t* _data);
!    async event void readPacketDone(uint16_t addr, uint8_t length, uint8_t* data, result_t success);
!    async event void writePacketDone(uint16_t addr, uint8_t length, uint8_t* data, result_t success);
   }
  
  
  
--- 198,232 ----
  also known as a two-wire interface. 
  
! The I2CPacket interface provides for asynchronous Master mode
! communication on an I2C with application framed packets. Individual
! I2C START-STOP events are controllable which allows the using
! component to do multiple calls within a single I2C transaction and
! permits multiple START sequences
  
  Platforms providing I2C capability MUST provide this interface. ::
  
!  interface I2CPacket<addr_size> {
!    async command error_t read(i2c_flags_t flags, uint16_t _addr, uint8_t _length, uint8_t* _data);
!    async command error_t write(i2c_flags_t flags, uint16_t _addr, uint8_t _length, uint8_t* _data);
!    async event void readDone(error_t error, uint16_t addr, uint8_t length, uint8_t* data);
!    async event void writeDone(error_t error, uint8_t length, uint8_t* data);
   }
  
+ The interface is typed according to the addressing space the underlying implementation supports. 
+ Valid type values are below. ::
+ 
+   TI2CExtdAddr - Interfaces uses the extended (10-bit) addressing mode. 
+   TI2CBasicAddr - Interfaces uses the basic (7-bit) addressing mode.
+ 
+ The i2c_flags_t values are defined below. The flags define the behavior of the operation for 
+ the call being made. These values may be ORed together. ::
+ 
+    I2C_START    - Transmit an I2C STOP at the beginning of the operation.
+    I2C_STOP     - Transmit an I2C STOP at the end of the operation. Cannot be used
+                   with the I2C_ACK_END flag.
+    I2C_ACK_END  - ACK the last byte sent from the buffer. This flags is only valid 
+                   a write operation. Cannot be used with the I2C_STOP flag.
+ 
+ 
  
  
***************
*** 217,221 ****
  
  | Phil Buonadonna
! | Arched Rock Corporation
  | 657 Mission St. Ste 600
  | San Francisco, CA 94105-4120
--- 235,239 ----
  
  | Phil Buonadonna
! | Arch Rock Corporation
  | 657 Mission St. Ste 600
  | San Francisco, CA 94105-4120



More information about the Tinyos-2-commits mailing list