aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Thread/Thread_ex.h
blob: ea75bffa30f48c7bdf8e72fb28b49ab6af5ed7de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef MODULES_THREAD_THREAD_EX_H_
#define MODULES_THREAD_THREAD_EX_H_

//typedef enum
//{
#define WINDER_DANCER HARDWARE_DANCER_TYPE__LeftDancer
#define POOLER_DANCER HARDWARE_DANCER_TYPE__MiddleDancer
#define FEEDER_DANCER HARDWARE_DANCER_TYPE__RightDancer
#define NUM_OF_DANCERS HARDWARE_DANCER_TYPE__RightDancer+1
//} DANCER_ENUM;

uint32_t ThreadPrepareState(void *JobDetails);
uint32_t ThreadPreSegmentState(void *JobDetails);
uint32_t ThreadSegmentState(void *JobDetails, int SegmentId);
uint32_t ThreadEndState(void *JobDetails);
uint32_t ThreadInitialTestStub();

//uint32_t MotorPidRequestMessage(HardwarePidControl* request);
uint32_t Winder_Init(void);
uint32_t Winder_Prepare(void);
uint32_t Winder_Presegment(void *JobDetails);
uint32_t Winder_End(void);



#endif
n> { get; } /// <summary> /// Gets a value indicating whether the navigation system is able to navigate to the previous view. /// </summary> bool CanNavigateBack { get; } /// <summary> /// Navigates to the previous view if <see cref="CanNavigateBack"/> is true. /// </summary> Task<bool> NavigateBack(); /// <summary> /// Navigates to the previous view.. /// </summary> RelayCommand NavigateBackCommand { get; } /// <summary> /// Navigates to the specified full path in command parameter. /// </summary> RelayCommand<String> NavigateToCommand { get; } /// <summary> /// Navigates to the specified PPC view. /// </summary> /// <param name="view">The view.</param> Task<bool> NavigateTo(NavigationView view); /// <summary> /// Navigates to the specified module. /// </summary> /// <typeparam name="T"></typeparam> Task<bool> NavigateTo<T>() where T : IPPCModule; /// <summary> /// Navigates to the specified module using the view path (e.g MainView.JobsView). /// </summary> /// <typeparam name="T"></typeparam> /// <param name="viewPath">The view path.</param> Task<bool> NavigateTo<T>(String viewPath) where T : IPPCModule; /// <summary> /// Navigates to the specified module using the view path (e.g MainView,JobsView). /// This method makes it easy to do stuff like NavigateTo(nameof(MainView),nameof(JobsView)); /// </summary> /// <typeparam name="T"></typeparam> /// <param name="viewPath">The view path.</param> Task<bool> NavigateTo<T>(params String[] viewPath) where T : IPPCModule; /// <summary> /// Navigates to the specified module and view by full path (e.g Jobs.JobsView). /// </summary> /// <param name="fullPath">The full path.</param> Task<bool> NavigateTo(String fullPath); } }