Method and equipment for realizing display screen interface switching based on state machine and semaphore
The invention discloses a method and equipment for realizing display screen interface switching based on a state machine and semaphore, and the method comprises the following steps: obtaining equipment parameters which need to be set according to equipment functions; designing a display interface co...
Saved in:
Main Authors | , , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
23.06.2023
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a method and equipment for realizing display screen interface switching based on a state machine and semaphore, and the method comprises the following steps: obtaining equipment parameters which need to be set according to equipment functions; designing a display interface corresponding to the settable parameter values; packaging the display interfaces by using function bodies, wherein one function body corresponds to one display interface; defining a state machine variable, initializing the state machine variable to be zero, updating values of a state machine along with switching of a display interface, and enabling the values of the state machine to be in one-to-one correspondence with the numbered function bodies; designing a relation graph of interface switching according to the classification of the equipment parameters and the sequence of parameter setting; four semaphores are defined, and different semaphores correspond to different keys; and defining corresponding task function |
---|---|
Bibliography: | Application Number: CN202310240737 |