Structure/Constant Definitions
K
A
DAK
365
D. AMX 86 Structure and Constant DefinitionsD.1 AMX C Structures and Constants

AMX Launch Parameter (see AAENTR)

#define AMLPTMP 1 /* Temporary launch */
/* Default is permanent launch*/
#define AMLPVA 2 /* Vector table is alterable */
/* Default is non alterable */
/* table */
#define AMLPIE 4 /* Launch with interrupts */
/* enabled. Default is */
/* interrupts disabled */

AMX Task Definition Structure

struct amxtdts {
void (*amtdtst)(); /* task procedure pointer */
char amtdtag1; /* 4 char task tag */
char amtdtag2;
char amtdtag3;
char amtdtag4;
unsigned int *amtdtsp; /* task stack pointer */
unsigned int amtdtskz; /* size of task stack (bytes) */
unsigned short int amtdtat; /* task attributes */
short int amtdtpr; /* task priority */
unsigned short int amtdtslc; /* task time slice */
/* (system ticks) */
short int amtdtmb0; /* mailbox level 0 depth */
short int amtdtmb1; /* mailbox level 1 depth */
short int amtdtmb2; /* mailbox level 2 depth */
short int amtdtmb3; /* mailbox level 3 depth */
};

AMX Task Control Block Structure

struct amxtcbs {
char amtcbrsv[240]; /* private */
unsigned long amtcbusr[4]; /* user defined */
};