vitasdk
Documentation of the vitasdk
i2c.h File Reference

Go to the source code of this file.

Data Structures

struct  SceI2cDebugHandlers
 

Enumerations

enum  SceI2cErrorCode { SCE_I2C_ERROR_INVALID_BUS = 0x803F0300 , SCE_I2C_ERROR_INVALID_SIZE = 0x803F0302 , SCE_I2C_ERROR_INVALID_ADDR = 0x803F0303 }
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x1C, SceI2cDebugHandlers)
 
int ksceI2cInit (int bus)
 
int ksceI2cReset (int bus)
 
int ksceI2cTransferRead (int bus, unsigned int addr, unsigned char *buffer, int size)
 
int ksceI2cTransferWrite (int bus, unsigned int addr, const unsigned char *buffer, int size)
 
int ksceI2cTransferWriteRead (int bus, unsigned int write_addr, unsigned char *write_buffer, int write_size, unsigned int read_addr, unsigned char *read_buffer, int read_size)
 
int ksceI2cSetDebugHandlers (int bus, SceI2cDebugHandlers *debug_handlers)