I2C SCB block Slave usage byte level APIs

Announcements

Live Webinar: USB-C adoption. Simple & Cost-efficient solutions | April 18th @9am or 5pm CEST. Register now !

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Geromino
Level 5
Level 5
50 replies posted 25 replies posted 10 replies posted

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
Moderator
750 replies posted 500 replies posted 250 solutions authored

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