Lines Matching refs:i2cSlaveHandle
115 hal_i3c_slave_t *i2cSlaveHandle;
118 i2cSlaveHandle = (hal_i3c_slave_t *)callbackParam;
120 if (i2cSlaveHandle->callback)
122 i2cSlaveHandle->transfer.event = (hal_i3c_slave_transfer_event_t)xfer->event;
123 i2cSlaveHandle->transfer.data = xfer->data;
124 i2cSlaveHandle->transfer.dataSize = xfer->dataSize;
125 i2cSlaveHandle->transfer.completionStatus = HAL_I2cGetStatus(xfer->completionStatus);
126 i2cSlaveHandle->transfer.transferredCount = xfer->transferredCount;
127 …i2cSlaveHandle->callback(i2cSlaveHandle, &i2cSlaveHandle->transfer, i2cSlaveHandle->callbackParam);
128 xfer->data = i2cSlaveHandle->transfer.data;
129 xfer->dataSize = i2cSlaveHandle->transfer.dataSize;
158 hal_i3c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveInit()
169 i2cSlaveHandle = (hal_i3c_slave_t *)handle; in HAL_I2cSlaveInit()
174 i2cSlaveHandle->instance = halI2cConfig->instance; in HAL_I2cSlaveInit()
176 I3C_SlaveInit(s_i3cBases[i2cSlaveHandle->instance], &i3cConfig, halI2cConfig->srcClock_Hz); in HAL_I2cSlaveInit()
200 hal_i3c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveDeinit()
204 i2cSlaveHandle = (hal_i3c_slave_t *)handle; in HAL_I2cSlaveDeinit()
206 I3C_SlaveDeinit(s_i3cBases[i2cSlaveHandle->instance]); in HAL_I2cSlaveDeinit()
346 hal_i3c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferInstallCallback()
350 i2cSlaveHandle = (hal_i3c_slave_t *)handle; in HAL_I2cSlaveTransferInstallCallback()
352 i2cSlaveHandle->callback = callback; in HAL_I2cSlaveTransferInstallCallback()
353 i2cSlaveHandle->callbackParam = callbackParam; in HAL_I2cSlaveTransferInstallCallback()
354 …I3C_SlaveTransferCreateHandle(s_i3cBases[i2cSlaveHandle->instance], &i2cSlaveHandle->hardwareHandl… in HAL_I2cSlaveTransferInstallCallback()
355 HAL_I2cSlaveCallback, i2cSlaveHandle); in HAL_I2cSlaveTransferInstallCallback()
366 hal_i3c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferNonBlocking()
370 i2cSlaveHandle = (hal_i3c_slave_t *)handle; in HAL_I2cSlaveTransferNonBlocking()
372 return HAL_I2cGetStatus(I3C_SlaveTransferNonBlocking(s_i3cBases[i2cSlaveHandle->instance], in HAL_I2cSlaveTransferNonBlocking()
373 … &i2cSlaveHandle->hardwareHandle, eventMask)); in HAL_I2cSlaveTransferNonBlocking()
382 hal_i3c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferAbort()
386 i2cSlaveHandle = (hal_i3c_slave_t *)handle; in HAL_I2cSlaveTransferAbort()
388 I3C_SlaveTransferAbort(s_i3cBases[i2cSlaveHandle->instance], &i2cSlaveHandle->hardwareHandle); in HAL_I2cSlaveTransferAbort()
399 hal_i3c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferGetCount()
404 i2cSlaveHandle = (hal_i3c_slave_t *)handle; in HAL_I2cSlaveTransferGetCount()
407 …I3C_SlaveTransferGetCount(s_i3cBases[i2cSlaveHandle->instance], &i2cSlaveHandle->hardwareHandle, c… in HAL_I2cSlaveTransferGetCount()