diff options
Diffstat (limited to 'HAL-afb/hal-most-unicens/wrap_unicens.h')
-rw-r--r-- | HAL-afb/hal-most-unicens/wrap_unicens.h | 11 |
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);
|