AMX 86 Procedures
K
A
DAK
289
ajsenw ajsenwPurpose Send a Message to a Task Mailbox (Wait for Ack)
To request AMX to send a message to a task at a given priority and to
begin execution of that task as soon as possible. The task making the
request is placed into the wait state until either:
1. the called task receives the message and mak es an ajwakc call, or
2. the called task receives the message and ends by making an ajend
call or by returning to AMX.
Used by n Task o IS P o Timer Procedure o Restart Procedure n Exit Procedure
Setup AMXID taskid;
int priority;
char msg[AMXMSZ];
int status;
.
.
status = ajsenw(taskid, priority, msg);
AX AASEND DX CX[14..0] ES:BX
CX[15]=1
Where taskid is the task id of the task to whom the message is to be sent.
priority is the priority of the message.
(0 = highest; 3 = lowest).
msg is an array name or pointer to AMXMSZ consecutive bytes that form the
message to be copied to the destination task. The message may be any
AMXMSZ byte structure. AMXMSZ is configured in the User Parameter
File.