aboutsummaryrefslogtreecommitdiffstats
path: root/ucs2-interface/ucs_interface.h
diff options
context:
space:
mode:
authorTobias Jahnke <tjahnk@users.noreply.github.com>2017-07-31 17:40:01 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-01 11:47:14 +0200
commitf892ce6d36b2287c5f54ae2a819b5342ef6ec22f (patch)
treeb952cf7f594ca0bf48aa59bf5b438f7a147ce063 /ucs2-interface/ucs_interface.h
parent1fd01df28fc2a2b0ea64f8fd569fe5f5f2d0471e (diff)
prepares asynchronous i2c_write result
Diffstat (limited to 'ucs2-interface/ucs_interface.h')
-rw-r--r--ucs2-interface/ucs_interface.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ucs2-interface/ucs_interface.h b/ucs2-interface/ucs_interface.h
index c18d440..0ec603a 100644
--- a/ucs2-interface/ucs_interface.h
+++ b/ucs2-interface/ucs_interface.h
@@ -179,11 +179,14 @@ bool UCSI_SetRouteActive(UCSI_Data_t *pPriv, uint16_t routeId, bool isActive);
* \param timeout - Timeout in milliseconds.
* \param dataLen - Amount of bytes to send via I2C
* \param pData - The payload to be send.
+ * \param result_fptr - Callback function notifying the asynchronous result.
+ * \param request_ptr - User reference which is provided for the asynchronous result.
*
* \return true, if route command was enqueued to Unicens.
*/
bool UCSI_I2CWrite(UCSI_Data_t *pPriv, uint16_t targetAddress, bool isBurst, uint8_t blockCount,
- uint8_t slaveAddr, uint16_t timeout, uint8_t dataLen, uint8_t *pData);
+ uint8_t slaveAddr, uint16_t timeout, uint8_t dataLen, uint8_t *pData,
+ Ucsi_ResultCb_t result_fptr, void *request_ptr);
/**
* \brief Enables or disables a route by the given routeId