Skip to content

Commit

Permalink
flowPropagateValueInt32 and flowPropagateValueUint32 in lvgl_api
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Jul 6, 2024
1 parent 7cedb8a commit 203fa27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/eez/flow/lvgl_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ extern "C" void flowPropagateValue(void *flowState, unsigned componentIndex, uns
eez::flow::propagateValue((eez::flow::FlowState *)flowState, componentIndex, outputIndex);
}

extern "C" void flowPropagateValueInt32(void *flowState, unsigned componentIndex, unsigned outputIndex, int32_t value) {
eez::flow::propagateValue((eez::flow::FlowState *)flowState, componentIndex, outputIndex, eez::Value(value, eez::VALUE_TYPE_INT32));
}

extern "C" void flowPropagateValueUint32(void *flowState, unsigned componentIndex, unsigned outputIndex, uint32_t value) {
eez::flow::propagateValue((eez::flow::FlowState *)flowState, componentIndex, outputIndex, eez::Value(value, eez::VALUE_TYPE_UINT32));
}

#ifndef EEZ_LVGL_TEMP_STRING_BUFFER_SIZE
#define EEZ_LVGL_TEMP_STRING_BUFFER_SIZE 1024
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/eez/flow/lvgl_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ void flowOnPageLoaded(unsigned pageIndex);
void *getFlowState(void *flowState, unsigned userWidgetComponentIndexOrPageIndex);

void flowPropagateValue(void *flowState, unsigned componentIndex, unsigned outputIndex);
void flowPropagateValueInt32(void *flowState, unsigned componentIndex, unsigned outputIndex, int32_t value);
void flowPropagateValueUint32(void *flowState, unsigned componentIndex, unsigned outputIndex, uint32_t value);

const char *evalTextProperty(void *flowState, unsigned componentIndex, unsigned propertyIndex, const char *errorMessage);
int32_t evalIntegerProperty(void *flowState, unsigned componentIndex, unsigned propertyIndex, const char *errorMessage);
Expand Down

0 comments on commit 203fa27

Please sign in to comment.