From fb2d080fbbcea3a91e598b4ea8837a230de6a319 Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Tue, 6 Mar 2018 12:09:02 +0200 Subject: A new forlder for embedded software in our common structure --- .../Embedded_SW/Embedded/Modules/Control/control.h | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Software/Embedded_SW/Embedded/Modules/Control/control.h (limited to 'Software/Embedded_SW/Embedded/Modules/Control/control.h') diff --git a/Software/Embedded_SW/Embedded/Modules/Control/control.h b/Software/Embedded_SW/Embedded/Modules/Control/control.h new file mode 100644 index 000000000..ab259993a --- /dev/null +++ b/Software/Embedded_SW/Embedded/Modules/Control/control.h @@ -0,0 +1,30 @@ +/************************************************************************************************************************ + * control.c + **************************************************************************************************************************/ + +////////////////////////////////State machine operation//////////////////////////////////// +//the state machine operation is used to operate in runtime correct profile flow execution +//by recieved esign flow of the user from the UI +/////////////////////////////////////////////////////////////////////////////////////////// +#include "include.h" + +typedef uint32_t (* DeviceDataFunction)(uint32_t deviceID, uint32_t *Value); +typedef uint32_t (* ControlCBFunction)(uint32_t deviceID, uint32_t ReadValue); +typedef uint32_t (* DataReadCBFunction)(uint32_t deviceID, uint32_t Parameter); +typedef enum { + eNoControl = 0, + eOneMillisecond = 1, + eTenMilliSecond = 10, + eHunderdMillisecond = 100, + eOneSecond = 1000 +}CTRL_TIMING_ENUM; + + +void ControlInit(void); +void ControlStop(void); +void ControlStart(void); +int AddControlCallback(uint32_t deviceID, ControlCBFunction Callback, CTRL_TIMING_ENUM CtrlFrequency ); +int RemoveControlCallback(uint32_t deviceID, ControlCBFunction Callback ); +int RegisterDevice(uint32_t deviceID, DataReadCBFunction Callback, uint32_t Parameter); +int UnRegisterDevice(uint32_t deviceID, DataReadCBFunction Callback ); + -- cgit v1.3.1