From a46f4eb1f7c6df9406f3a7743e9a3fdbca8d2497 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Noah=20Piqu=C3=A9?= Date: Fri, 14 Jan 2022 15:41:22 +0100 Subject: [PATCH] update header --- .vscode/settings.json | 4 +++- Core/Application/VARH_VariableHandler.h | 14 ++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 691a8f6..64639f3 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "C_Cpp.errorSquiggles": "Disabled" + "C_Cpp.errorSquiggles": "Disabled", + "cortex-debug.armToolchainPath": "/Users/noahpique/Library/Application Support/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/arm-none-eabi-gcc/10.3.1-2.3.1/.content/bin", + "cortex-debug.openocdPath": "/Users/noahpique/Library/Application Support/Code/User/globalStorage/bmd.stm32-for-vscode/@xpack-dev-tools/openocd/0.11.0-2.1/.content/bin/openocd" } \ No newline at end of file diff --git a/Core/Application/VARH_VariableHandler.h b/Core/Application/VARH_VariableHandler.h index ad15c4d..b55091c 100644 --- a/Core/Application/VARH_VariableHandler.h +++ b/Core/Application/VARH_VariableHandler.h @@ -141,14 +141,20 @@ typedef struct BOOL VARH_boInitializeModule( VOID ); -// set data functions -VOID VARH_vSetVariableData( U8 u8Variable, VARH_UVariable uData ); -VOID VARH_vSetVariableDataFromSystem( U8 u8Variable, VARH_UVariable uData ); +// set data +VOID VARH_vSetVariableDataU32( U8 u8Variable, U32 u32Data ); +VOID VARH_vSetVariableDataS32( U8 u8Variable, S32 s32Data ); +VOID VARH_vSetVariableDataFloat( U8 u8Variable, FLOAT flData ); -// get data function +// set data from system +VOID VARH_vSetVariableDataFromSystemU32( U8 u8Variable, U32 u32Data ); +VOID VARH_vSetVariableDataFromSystemS32( U8 u8Variable, S32 s32Data ); + +// get data VARH_UVariable VARH_uGetVariableData( U8 u8Variable ); U8 VARH_uGetVariableFlags( U8 u8Variable ); +// reset data VOID VARH_vSetVariableToInitData( U8 u8Variable ); VOID VARH_vSetAllVariablesToInitData( VOID );