Acc g scaling with DSP
[inav.git] / src / main / drivers / display_widgets.c
bloba7fbc8e5e63f0cb310a83be56ba281462b07c174
2 #include "platform.h"
4 #if defined(USE_CANVAS)
6 #include "drivers/display_widgets.h"
8 int displayWidgetsSupportedInstances(displayWidgets_t *widgets, displayWidgetType_e widgetType)
10 return widgets->vTable->supportedInstances ? widgets->vTable->supportedInstances(widgets, widgetType) : 0;
13 bool displayWidgetsConfigureAHI(displayWidgets_t *widgets, unsigned instance, const widgetAHIConfiguration_t *config)
15 return widgets->vTable->configureAHI ? widgets->vTable->configureAHI(widgets, instance, config) : false;
18 bool displayWidgetsDrawAHI(displayWidgets_t *widgets, unsigned instance, const widgetAHIData_t *data)
20 return widgets->vTable->drawAHI ? widgets->vTable->drawAHI(widgets, instance, data) : false;
23 bool displayWidgetsConfigureSidebar(displayWidgets_t *widgets, unsigned instance, const widgetSidebarConfiguration_t *config)
25 return widgets->vTable->configureSidebar ? widgets->vTable->configureSidebar(widgets, instance, config) : false;
28 bool displayWidgetsDrawSidebar(displayWidgets_t *widgets, unsigned instance, int32_t data)
30 return widgets->vTable->drawSidebar ? widgets->vTable->drawSidebar(widgets, instance, data) : false;
33 #endif