Epson Research and Development
Page 75
Vancouver Design Center
Programming Notes and Examples S1D13706
Issue Date: 01/02/23 X31B-G-003-03
10.2.2 Advance HAL Functions
The advanced HAL functions include a level of access that most applications will never
need to access.
int seBeginHighPriority(void)
Description:
Writing and debugging software under the Windows operating system greatly simplifies
the development process for the S1D13706 evaluation system. One issue which impedes
application programming is that of latency. Time critical operations (i.e. performance
measurement) are not guaranteed any set amount of processor time.
This function raises the priority of the thread and virtually eliminates the question of
latency for programs running on a Windows platform.
Note
The application should not leave it’s thread running in a high priority state for long peri-
ods of time. As soon as a time critical operation is complete the application should call
seEndHighPriorty().
Parameters:
None.
Return Value:
The priority nest count which is the number of times seBeginHighPriority() has been
called without a corresponding call to seEndHighPriority().
int seEndHighPriority(void)
Description:
This function decreases the priority nest count. When this count reaches zero, the thread
priority of the calling application is set to normal.
After performing some time critical operation the application should call seEndHighPrior-
ity() to return the thread priority to a normal level.
Parameters:
None.
Return Value:
The priority nest count which is the number of times seBeginHighPriority() has been
called without a corresponding call to seEndHighPriority().