AMX 86 Procedures
K
A
DAK
229
ajevsig ajevsigPurpose Signal Event(s) in an Event Group
Used by n Task n IS P n Timer Procedure n Restart Procedure n Exit Procedure
Setup AMXID group;
unsigned int mask;
unsigned int value;
int status;
.
.
status = ajevsig(group, mask, value);
AX see note
Where group is the group id of an event group acquired with a call to ajevcre.
mask is a 16-bit mask identifying the event flags of interest in the group.
value is a 16-bit value which specifies the desired states for each of the
event flags selected by the mask. The states of flags not specified by
the mask can be either set or clear.
Results Interrupts are disabled and then restored to their state at the time of the
call.
Task switching is disabled and then restored to its state at the time of the
call.
Status is returned.
AEROK = Call successful
AERNME = Cannot signal the event(s)
Probably implies that no AMX message envelopes are
available for use.
AERNSG = Invalid event group id
An immediate task switch will occur if a task which was waiting for the
new event state is of higher priority than the current task.
Note Assembly language call is:
PUSH value
PUSH mask
PUSH group
CALL AAEVSIG
ADD SP,6
See Also ajevwat