This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

problems in programming I2C port

Other Parts Discussed in Thread: TMS320C6678

Hi,

in path "~\ti\pdk_C6678_1_1_2_5\packages\ti\csl" : 

instruct:     "#define I2CR    ((CSL_I2cRegs*) CSL_I2C_DATA_CONTROL_REGS)"  in evmc66x_i2c.c .      

I know that " CSL_I2C_DATA_CONTROL_REGS" is a base address value, CSL_I2cRegs is a structure type.

But what the meaning of  “(CSL_I2cRegs*) CSL_I2C_DATA_CONTROL_REGS” ?  What's the purpose?    

Thank you

Regards

Fantastone