Lines Matching refs:i2cSlaveHandle

116     hal_i2c_slave_t *i2cSlaveHandle;  in HAL_I2cSlaveCallback()  local
119 i2cSlaveHandle = (hal_i2c_slave_t *)callbackParam; in HAL_I2cSlaveCallback()
121 if (NULL != i2cSlaveHandle->callback) in HAL_I2cSlaveCallback()
123 i2cSlaveHandle->transfer.event = (hal_i2c_slave_transfer_event_t)xfer->event; in HAL_I2cSlaveCallback()
124 i2cSlaveHandle->transfer.data = xfer->data; in HAL_I2cSlaveCallback()
125 i2cSlaveHandle->transfer.dataSize = xfer->dataSize; in HAL_I2cSlaveCallback()
126 i2cSlaveHandle->transfer.completionStatus = HAL_I2cGetStatus(xfer->completionStatus); in HAL_I2cSlaveCallback()
127 i2cSlaveHandle->transfer.transferredCount = xfer->transferredCount; in HAL_I2cSlaveCallback()
128i2cSlaveHandle->callback(i2cSlaveHandle, &i2cSlaveHandle->transfer, i2cSlaveHandle->callbackParam); in HAL_I2cSlaveCallback()
129 xfer->data = i2cSlaveHandle->transfer.data; in HAL_I2cSlaveCallback()
130 xfer->dataSize = i2cSlaveHandle->transfer.dataSize; in HAL_I2cSlaveCallback()
157 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveInit() local
164 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveInit()
169 i2cSlaveHandle->instance = halI2cConfig->instance; in HAL_I2cSlaveInit()
171 I2C_SlaveInit(s_i2cBases[i2cSlaveHandle->instance], &i2cConfig); in HAL_I2cSlaveInit()
191 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveDeinit() local
195 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveDeinit()
197 I2C_SlaveDeinit(s_i2cBases[i2cSlaveHandle->instance]); in HAL_I2cSlaveDeinit()
232 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveWriteBlocking() local
236 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveWriteBlocking()
238 …return HAL_I2cGetStatus(I2C_SlaveWriteBlocking(s_i2cBases[i2cSlaveHandle->instance], txBuff, txSiz… in HAL_I2cSlaveWriteBlocking()
243 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveReadBlocking() local
247 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveReadBlocking()
249 …return HAL_I2cGetStatus(I2C_SlaveReadBlocking(s_i2cBases[i2cSlaveHandle->instance], rxBuff, rxSize… in HAL_I2cSlaveReadBlocking()
339 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferInstallCallback() local
343 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveTransferInstallCallback()
345 i2cSlaveHandle->callback = callback; in HAL_I2cSlaveTransferInstallCallback()
346 i2cSlaveHandle->callbackParam = callbackParam; in HAL_I2cSlaveTransferInstallCallback()
347 …I2C_SlaveTransferCreateHandle(s_i2cBases[i2cSlaveHandle->instance], &i2cSlaveHandle->hardwareHandl… in HAL_I2cSlaveTransferInstallCallback()
348 HAL_I2cSlaveCallback, i2cSlaveHandle); in HAL_I2cSlaveTransferInstallCallback()
355 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferNonBlocking() local
359 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveTransferNonBlocking()
362 …I2C_SlaveTransferNonBlocking(s_i2cBases[i2cSlaveHandle->instance], &i2cSlaveHandle->hardwareHandle… in HAL_I2cSlaveTransferNonBlocking()
367 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferAbort() local
371 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveTransferAbort()
373 I2C_SlaveTransferAbort(s_i2cBases[i2cSlaveHandle->instance], &i2cSlaveHandle->hardwareHandle); in HAL_I2cSlaveTransferAbort()
380 hal_i2c_slave_t *i2cSlaveHandle; in HAL_I2cSlaveTransferGetCount() local
385 i2cSlaveHandle = (hal_i2c_slave_t *)handle; in HAL_I2cSlaveTransferGetCount()
388 …I2C_SlaveTransferGetCount(s_i2cBases[i2cSlaveHandle->instance], &i2cSlaveHandle->hardwareHandle, c… in HAL_I2cSlaveTransferGetCount()