User manual

120
protected:
private:
};
After that it is possible to link objects of my_data_t class together in bi-directional list as
follows:
my_data_t *list_of_data = 0;
new_data *my_data_t = new my_data_t(&list_of_data);
C++ wrapper to work with bus requests
CHAPI protocol part relative to the new way of bus requests processing (see 4.9) is
wrapped by the C++ class called chapi_brq_t. Below is a list of public methods of this
wrapper:
Constructors:
chapi_brq_t();
chapi_brq_t(int ipl, chapi_brq_acknowledge_p brq_ack, void *arg1, int arg2 = 0);
where
ipl - priority at which created bus request sghould be processed;
brq_ack - bus request acknowledge procedure which will be called to acknowledge
bus request;
arg1, arg2 - arguments to be passed to bus request acknowledge procedure.
General public members:
bool connect(const struct __chapi_in *ci, int vector);
bool connect(const struct __chapi_in *ci, int ipl,
chapi_brq_acknowledge_p brq_ack, void *arg1 = 0, int arg2 = 0);
bool connect(const struct __chapi_in *ci, int vector, int ipl,
chapi_brq_acknowledge_p brq_ack, void *arg1 = 0, int arg2 = 0);
where
ci - CHAPI input context specified by the CHARON kernel;
vector - BRQ vector to use;