Exports for Kernel.
Using this library in your project
Include the header file in your project:
Link the library to the executable:
|
| 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) |
|
◆ SceI2cDebugHandlers
struct SceI2cDebugHandlers |
Data Fields |
unsigned int | size |
|
void(* | write_start )(int bus, int addr, unsigned char *buffer, int size) |
|
void(* | write_end )(int bus, int error, int result) |
|
void(* | read_start )(int bus, int addr, unsigned char *buffer, int size) |
|
void(* | read_end )(int bus, int error, int result) |
|
void(* | write_read_start )(int bus, int write_addr, unsigned char *write_buffer, int write_size, unsigned int read_addr, unsigned char *read_buffer, int read_size) |
|
void(* | write_read_end )(int bus, int error, int result) |
|
◆ SceI2cErrorCode
Enumerator |
---|
SCE_I2C_ERROR_INVALID_BUS | |
SCE_I2C_ERROR_INVALID_SIZE | |
SCE_I2C_ERROR_INVALID_ADDR | |
◆ VITASDK_BUILD_ASSERT_EQ()
◆ ksceI2cInit()
int ksceI2cInit |
( |
int |
bus | ) |
|
◆ ksceI2cReset()
int ksceI2cReset |
( |
int |
bus | ) |
|
◆ ksceI2cTransferRead()
int ksceI2cTransferRead |
( |
int |
bus, |
|
|
unsigned int |
addr, |
|
|
unsigned char * |
buffer, |
|
|
int |
size |
|
) |
| |
◆ ksceI2cTransferWrite()
int ksceI2cTransferWrite |
( |
int |
bus, |
|
|
unsigned int |
addr, |
|
|
const unsigned char * |
buffer, |
|
|
int |
size |
|
) |
| |
◆ ksceI2cTransferWriteRead()
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 |
|
) |
| |
◆ ksceI2cSetDebugHandlers()