Question about DR_ADDR in GPIF master mode

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

cross mob
Anonymous
Not applicable

Hi,

   

Could you explain how to use DR_ADDR in GPIF master mode?

   

The address source could be address counter or register or threadsocket, how to set an address into the "register"? I can not find any related functions in the firmware API. For DR_DATA, we have CyU3PGpifWriteDataWords, do we have anything similiar to set the address?

   

Regards,

   

Limin

0 Likes
2 Replies
Anonymous
Not applicable

Dear JGR,

   

There is CY_U3P_PIB_GPIF_EGRESS_ADDRESS(thread_number)  macro. It is located in gpif_regs.h (SDK 1.2.3). You shall assign it to some buffer (i.e uint32_t tmp_data[4]) and write there address value.

0 Likes
Anonymous
Not applicable

Thanks a lot.

0 Likes