EPICS Base
7.0.6.1
|
Generic IOC state facility. More...
#include "dbCoreAPI.h"
Go to the source code of this file.
Typedefs | |
typedef struct dbState * | dbStateId |
Functions | |
DBCORE_API dbStateId | dbStateCreate (const char *name) |
Create db state. More... | |
DBCORE_API dbStateId | dbStateFind (const char *name) |
Find db state. More... | |
DBCORE_API void | dbStateSet (dbStateId id) |
Set db state to TRUE. More... | |
DBCORE_API void | dbStateClear (dbStateId id) |
Set db state to FALSE. More... | |
DBCORE_API int | dbStateGet (dbStateId id) |
Get db state. More... | |
DBCORE_API void | dbStateShow (dbStateId id, unsigned int level) |
Print info about db state. More... | |
DBCORE_API void | dbStateShowAll (unsigned int level) |
Print info about all db states. More... | |
This library provides a simple global flag facility that can be used to synchronize e.g. plugins with IOC-wide states, that may be derived from events (either soft events or hard events coming from specialized timing and event hardware).
A subset of this API is provided as IOC Shell commands to allow command line debugging.
Definition in file dbState.h.
DBCORE_API dbStateId dbStateCreate | ( | const char * | name | ) |
Creates a new db state with the specified 'name', returning the new id. If state with that name already exists, the existing state's id is returned.
Also provided as an IOC Shell command.
name | Db state name. |
DBCORE_API dbStateId dbStateFind | ( | const char * | name | ) |
name | Db state name. |
DBCORE_API void dbStateSet | ( | dbStateId | id | ) |
Also provided as an IOC Shell command.
id | Db state id. |
DBCORE_API void dbStateClear | ( | dbStateId | id | ) |
Also provided as an IOC Shell command.
id | Db state id. |
DBCORE_API int dbStateGet | ( | dbStateId | id | ) |
id | Db state id. |
DBCORE_API void dbStateShow | ( | dbStateId | id, |
unsigned int | level | ||
) |
Also provided as an IOC Shell command.
id | Db state id. |
level | Interest level. |
DBCORE_API void dbStateShowAll | ( | unsigned int | level | ) |
Also provided as an IOC Shell command.
level | Interest level. |