4.3.1. Declaration of a private state data structure

Each model must store its state in a private data structure. Initialization and finalization macros are provided by ARMulif. These macros require the use of certain fields in this data structure.

To declare a state data structure, use the BEGIN_STATE_DECL and END_STATE_DECL macros as follows:

    /*
     * Create a YourModelState data structure
     */
    BEGIN_STATE_DECL(YourModel)
    	/*
     * Your private data here
     */
    END_STATE_DECL(YourModel)

This declares a structure:

    typedef struct YourModelState

This structure contains:

Copyright © 1999-2001 ARM Limited. All rights reserved.ARM DUI0058D
Non-Confidential