cancel
Showing results for 
Search instead for 
Did you mean: 

USB EZ-PD Type-C

Geromino
Contributor II

Hi am  looking for  any example in Power SDK or Host SDK  of implemnet  I2C  SCB  block  as   I2C  slave   usage byte level APIs

all examples  which  i found or  community support refer me to is master  

could  you please  refere me to slave i2c scb block in  usage byte level APIs   it  will  help me  reduce  size of  my application

0 Likes
1 Solution
Sananya_14
Moderator
Moderator

Hi,

Currently, we dont have such an example and to access the data as I2C slave byte by byte, you will have to implement a custom ISR that would detect the bus events properly and do a read from FIFO or write to FIFO based on bus direction. You could refer to the I2C_INT.c file and implementation in the I2C interrupt for the SCB under Generated Source for reference.

Best Regards,

Sananya

View solution in original post

0 Likes
4 Replies