SDC C-Project CF Review 프로그램
LYW
2021-05-26 5e3a8e2508c719bb48273d873b17b636c7cef4d7
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
 * private.h
 *
 * 32-bit Motion Control Device Driver
 * User-mode support library - private definitions
 */
#ifndef _PRIVATE_H
  #define _PRIVATE_H
 
/*
 * function codes that the calling thread can ask the worker thread to
 * perform
 */
 
typedef enum _MCFUNC { //  arg                 result
                       //  ---     ------
    InterruptTerm,     //  <null>    <null>
    InvalidFunction
} MCFUNC, *PMCFUNC;
 
/* we send this many interrupt request to the kernel at once to queue */
 
//  #define ALL_INTERRUPTS    8   // total available ints on pmac/starter set
//  #define INTERRUPT_THRESHOLD 3 // queue not less than these many ints
 
 
/*
 * the worker thread starts execution at this function
 */
DWORD MC_ThreadInit( DWORD );
 
/*
 * process a user request that needs to be handled on the
 * worker thread
 *
 * It returns the result of the operation in pResult, and returns
 * TRUE if the worker thread loop should terminate.
 *
 * This function will normally be called from the main
 * worker-thread event processing loop. However, it must be
 * called directly by the entrypoint functions if they
 * discover they are running on the worker thread (eg from a callback).
 * If this doesn't happen, we will enter deadlock with the worker thread
 * waiting for itself to signal an event.
 */
//BOOL MC_ProcessFunction(PUSER_HANDLE vh, MCFUNC Function, DWORD Param, LPDWORD pResult);
 
#endif