Difference between revisions of "I2C Services"

From 3dbrew
Jump to: navigation, search
Line 16: Line 16:
 
|-
 
|-
 
| 0x0001....
 
| 0x0001....
| SetRegisterBits8 (devid, u8 regid, u8 regdata, mask)
+
| SetRegisterBits8 (u8 devid, u8 regid, u8 regdata, u8 mask)
 
|-
 
|-
 
| 0x0002....
 
| 0x0002....
| EnableRegisterBits8 (devid, u8 regid, enablemask)
+
| EnableRegisterBits8 (u8 devid, u8 regid, u8 enablemask)
 
|-
 
|-
 
| 0x0003....
 
| 0x0003....
| DisableRegisterBits8 (devid, u8 regid, disablemask)
+
| DisableRegisterBits8 (u8 devid, u8 regid, u8 disablemask)
 
|-
 
|-
 
| 0x0004....
 
| 0x0004....
| MultiSetRegisterBits16 (u16 regid, u16 regdata, mask, devcount, devidlistptr)
+
| MultiSetRegisterBits16 (u16 regid, u16 regdata, u16 mask, devcount, u8* devidlistptr)
 
|-
 
|-
 
| 0x0005....
 
| 0x0005....
| WriteRegister8 (devid, u8 regid, u8 regdata)
+
| WriteRegister8 (u8 devid, u8 regid, u8 regdata)
 
|-
 
|-
 
| 0x0006....
 
| 0x0006....
| WriteCommand8 (devid, u8 cmdid)
+
| WriteCommand8 (u8 devid, u8 cmdid)
 
|-
 
|-
 
| 0x0007....
 
| 0x0007....
| WriteRegister16 (devid, u16 regid, u16 regdata)
+
| WriteRegister16 (u8 devid, u16 regid, u16 regdata)
 
|-
 
|-
 
| 0x0008....
 
| 0x0008....
| MultiWriteRegister16 (u16 regid, u16 regdata, devcount, devidlistptr)
+
| MultiWriteRegister16 (u16 regid, u16 regdata, devcount, u8* devidlistptr)
 
|-
 
|-
 
| 0x0009....
 
| 0x0009....
| u8 ReadRegister8 (devid, u8 regid)
+
| u8 ReadRegister8 (u8 devid, u8 regid)
 
|-
 
|-
 
| 0x000A....
 
| 0x000A....
| u16 ReadRegister16 (devid, u16 regid)
+
| u16 ReadRegister16 (u8 devid, u16 regid)
 
|-
 
|-
 
| 0x000B....
 
| 0x000B....
| WriteRegisterBuffer8 (devid, u8 regid, buffersize, bufferptr)
+
| WriteRegisterBuffer8 (u8 devid, u8 regid, buffersize, u8* bufferptr)
 
|-
 
|-
 
| 0x000C....
 
| 0x000C....
|  
+
| WriteRegisterBuffer16 (u8 devid, u16 regid, buffersize, u16* bufferptr)
 
|-
 
|-
 
| 0x000D....
 
| 0x000D....

Revision as of 16:42, 16 December 2012

I2C Service Names

  • "i2c::MCU"
  • "i2c::CAM"
  • "i2c::LCD"
  • "i2c::DEB"
  • "i2c::HID"
  • "i2c::IR"
  • "i2c::EEP"

I2C Service

Command Header Description
0x0001.... SetRegisterBits8 (u8 devid, u8 regid, u8 regdata, u8 mask)
0x0002.... EnableRegisterBits8 (u8 devid, u8 regid, u8 enablemask)
0x0003.... DisableRegisterBits8 (u8 devid, u8 regid, u8 disablemask)
0x0004.... MultiSetRegisterBits16 (u16 regid, u16 regdata, u16 mask, devcount, u8* devidlistptr)
0x0005.... WriteRegister8 (u8 devid, u8 regid, u8 regdata)
0x0006.... WriteCommand8 (u8 devid, u8 cmdid)
0x0007.... WriteRegister16 (u8 devid, u16 regid, u16 regdata)
0x0008.... MultiWriteRegister16 (u16 regid, u16 regdata, devcount, u8* devidlistptr)
0x0009.... u8 ReadRegister8 (u8 devid, u8 regid)
0x000A.... u16 ReadRegister16 (u8 devid, u16 regid)
0x000B.... WriteRegisterBuffer8 (u8 devid, u8 regid, buffersize, u8* bufferptr)
0x000C.... WriteRegisterBuffer16 (u8 devid, u16 regid, buffersize, u16* bufferptr)
0x000D....
0x000E....
0x000F....
0x0010....
0x0011....
0x0012....