summaryrefslogtreecommitdiffstats
path: root/HAL-afb/hal-most-unicens/wrap_unicens.h
diff options
context:
space:
mode:
authorTobias Jahnke <tjahnk@users.noreply.github.com>2017-08-10 16:34:54 +0200
committerTobias Jahnke <tjahnk@users.noreply.github.com>2017-08-16 16:00:50 +0200
commit9a57e535616ce2fd84344911b02a6fe471258c93 (patch)
treea6fe4464a2fe092fb24d02bdd4f9ec1ad87fc857 /HAL-afb/hal-most-unicens/wrap_unicens.h
parentcf590ad67211ee634d4cb24ca97c9e65891240b9 (diff)
includes lib-most-volume in HAL UNICENS
Diffstat (limited to 'HAL-afb/hal-most-unicens/wrap_unicens.h')
-rw-r--r--HAL-afb/hal-most-unicens/wrap_unicens.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/HAL-afb/hal-most-unicens/wrap_unicens.h b/HAL-afb/hal-most-unicens/wrap_unicens.h
index 27071c7..268fb74 100644
--- a/HAL-afb/hal-most-unicens/wrap_unicens.h
+++ b/HAL-afb/hal-most-unicens/wrap_unicens.h
@@ -17,11 +17,18 @@
*/
#pragma once
-
#include <stdint.h>
+/* Asynchronous API: result callback */
+typedef void (*wrap_ucs_result_cb_t)(uint8_t result, void *user_ptr);
+
+/* Asynchronous API: functions */
+extern int wrap_ucs_i2cwrite(uint16_t node, uint8_t *data_ptr, uint8_t data_sz,
+ wrap_ucs_result_cb_t result_fptr,
+ void *result_user_ptr);
+
+/* Synchronous API: functions */
extern int wrap_ucs_subscribe_sync();
extern int wrap_ucs_getconfig_sync(const char *config_path);
extern int wrap_ucs_initialize_sync(const char* file_name);
extern int wrap_ucs_i2cwrite_sync(uint16_t node, uint8_t *data_ptr, uint8_t data_sz);
-extern int wrap_ucs_i2cwrite(uint16_t node, uint8_t *data_ptr, uint8_t data_sz);