summaryrefslogtreecommitdiffstats
path: root/ucs2-interface/ucs_config.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_config.h
parent1fd01df28fc2a2b0ea64f8fd569fe5f5f2d0471e (diff)
prepares asynchronous i2c_write result
Diffstat (limited to 'ucs2-interface/ucs_config.h')
-rw-r--r--ucs2-interface/ucs_config.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ucs2-interface/ucs_config.h b/ucs2-interface/ucs_config.h
index 16210af..93bba34 100644
--- a/ucs2-interface/ucs_config.h
+++ b/ucs2-interface/ucs_config.h
@@ -65,6 +65,14 @@ typedef enum
} UnicensCmdResult_t;
/**
+ * \brief Asynchronous callback notifiying a command result
+ * \param result_ptr The asynchronous result of the command
+ * \param request_ptr User reference, typically points to the afb_req
+ * object.
+ */
+typedef void (*Ucsi_ResultCb_t)(void *result_ptr, void *request_ptr);
+
+/**
* \brief Internal enum for Unicens Integration
*/
typedef enum
@@ -135,6 +143,10 @@ typedef struct
uint16_t timeout;
uint8_t dataLen;
uint8_t data[I2C_WRITE_MAX_LEN];
+
+ Ucsi_ResultCb_t result_fptr;
+ void *request_ptr;
+
} UnicensCmdI2CWrite_t;
/**