Question
SETAASA command I3C
Hello!
I have an i3c target device which has a static address, datasheet says I need to send SETAASA command to start communicating with the device.
I tried doing,
#define SETAASA 0x29#define STATIC_ADRESS 0x47
I3C_CCCTypeDef aSET_AASA= { /*Target Addr CCC Value CCC data + defbyte pointer CCC size + defbyte Direction */ {STATIC_ADRESS,SETAASA,{NULL,1},HAL_I3C_DIRECTION_WRITE}, };
/* USER CODE BEGIN 2 */ /* Send a DISEC to disable IBI interrupt */ aContextBuffers[I3C_IDX_FRAME_1].CtrlBuf.pBuffer = aControlBuffer; aContextBuffers[I3C_IDX_FRAME_1].CtrlBuf.Size = 1; aContextBuffers[I3C_IDX_FRAME_1].TxBuf.pBuffer = aTxBuffer; aContextBuffers[I3C_IDX_FRAME_1].TxBuf.Size = 1; /* Add context buffer Set CCC frame in Frame context */ if (HAL_I3C_AddDescToFrame(&hi3c1, SETAASA, NULL, aContextBuffers, 1, I3C_BROADCAST_WITHOUT_DEFBYTE_RESTART) != HAL_OK) { Error_Handler(); } if (HAL_I3C_Ctrl_TransmitCCC(&hi3c1, aContextBuffers, 1000) != HAL_OK) { Error_Handler(); }
Any help would be appreciated
Thank you!
